Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Write a program that uses while loops to perform the followingsteps: . A. Pro

ID: 3607771 • Letter: 1

Question

1. Write a program that useswhile loops to perform the followingsteps: . A. Prompt the user to input twointegers: firstNum and secondNum. (firstNum mustbe less than secondNum). B. Output all the odd numbers betweenfirstNum and secondNum inclusive. C. Output the sum of all the evennumbers between firstNum and secondNum inclusive. D. Output all the numbers and theirsquares between 1 and 10. E. Output the sum of the squares ofall the odd numbers between firstNum and secondNum inclusive. F. Output all the uppercaseletters. . 2. Rewrite theprogram using for loops. . 3. Rewrite theprogram using do...whileloops. 1. Write a program that useswhile loops to perform the followingsteps: . A. Prompt the user to input twointegers: firstNum and secondNum. (firstNum mustbe less than secondNum). B. Output all the odd numbers betweenfirstNum and secondNum inclusive. C. Output the sum of all the evennumbers between firstNum and secondNum inclusive. D. Output all the numbers and theirsquares between 1 and 10. E. Output the sum of the squares ofall the odd numbers between firstNum and secondNum inclusive. F. Output all the uppercaseletters. . 2. Rewrite theprogram using for loops. . 3. Rewrite theprogram using do...whileloops. . 3. Rewrite theprogram using do...whileloops.

Explanation / Answer

please rate - thanks part 1) import java.util.Scanner; public class Malik5_9while { public static void main(String []args) {Scanner input=new Scanner(System.in); int i,sum=0,sqsum=0, firstnum=1,secondnum=0; char ch; while(!(firstnumfirstnum {System.out.println("Enter starting number: ");    firstnum=input.nextInt();    System.out.println("Enter ending number(must be >starting number): ");    secondnum=input.nextInt();    } i=firstnum; System.out.println("The odd numbers between "+firstnum+" and"+secondnum+" are:"); while(i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote