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

Write a program that does the following 1.Prompt the user with the following pro

ID: 3622025 • Letter: W

Question

Write a program that does the following

1.Prompt the user with the following prompt and then input two integers from the user:
input two numbers ( first number must be less than second) ?
2.Output the header odd numbers: and then output all the odd numbers from the first number input to the sencond number input by the user.
3.Output the sum of all the even numbers from number one to number two as shown in the sample below
4.Output the heading squares from 1 to 10: as shown below followed by the numbers 1 to 10 followed by the square of that number.
5.Output the sum of the square of each odd number from number one to number two as shown below.
6.use a loop to output all the uppercase characters as shown below.
Each step listed above must be accomplished with a loop. You can't just output the numbers or output ABC...XYZ for step 6.

To run the automated test, you must have the same labels for the data as the sample run below.

Here is a sample Run (make your code work exactly like this):

input two numbers ( first number must be less than second) ?
1 5
odd numbers:
1
3
5
sum of evens: 6
squares of 1 to 10
1 1
2 4
3 9
4 16
5 25
6 36
7 49
8 64
9 81
10 100
Sum of odds squared: 35

A to Z:
ABCDEFGHIJKLMNOPQRSTUVWXYZ



Link to test your program and to get sample .jar program:



Explanation / Answer

please rate. import java.util.Scanner; public class BasicArithmetic { public static void main(String args[]){ try{ Scanner scan = new Scanner(System.in); System.out.println("input two numbers ( first number must be less than second) ? "); int a = scan.nextInt(); int b = scan.nextInt(); int i = a%2==0?a+1:a; System.out.println("odd numbers: "); while(i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote