=====Sum and average all of the odd and even numbers entered by the user.
When the program runs it should look like this:
How many numbers will you enter? 3
Enter number 1: 20
Enter number 2: 25
Enter number 3: 44
The odd numbers are 25
The total of the odd numbers is 25, the average is 25
The even numbers are 20 44
The total of the even numbers is 64, the average is 32
|
Step #2The program asks the user to enter a number. Let's call this number n (Look at step 4 to find out where n comes from) System.out.print("Enter number "+ n + ": "); int num = scan.nextInt();
But wait! There are 2 different sums and 2 different strings!! Go on to step 3 to figure out how to deal with those. |
|
<-- Previous |