Please write Java programming code not C++
Qn1. (10 points) Write a program that uses whlle loops to perform the following steps: Prompt the user to input two integers: firstNum and secondNum: (firstNum must be less than secondNum ) Output all the odd numbers between firstNum and secondNum inclusive Output the sum of all the even numbers between firstNum and secondNum inclusive. Output all the numbers and their squares between 1 and 10. Output the sum of the squares of all the odd numbers between firstNum and secondNum inclusive. Output all the uppercase letters
Note: Save the file as LablOnlXXjava. Please replace XX with your name initial and include the source code of the program and the screenshots of the program outputs:
Qn2. (5 points) Redo the Qnl a,b, and c using for loops
Note: Save the file as Lab2Qn2XKjava. Please replace XI with your name initial and include the source code ofthe program and the screenshots of the program outputs.
Qn3. (5 points) Redo the Qnl.d,e, and f using do_while loops_
Note: Save the file as LablQn3XXjava Please replace XX with your name initial and include the source code of the program and the screenshots of the program outputs.