Write a program that reads three whole numbers Solution

Write a program that reads three whole numbers and displays the average of the three numbers.

Input Notes: Three whole numbers (non-negative integers ) are entered at the console.

Output Notes (Prompts and Labels): The program prompts for the three integers with these strings : "Enter the first integer .", "Enter the second integer .", "Enter the third integer .".
The program then prints The average of NUMBER1, NUMBER2, and NUMBER3 = AVG
where NUMBER1 is the first integer value entered and NUMBER2 and NUMBER3 the subsequent integers , and AVG is the computed average value .

SPECIFICATION OF NAMES: Your application class should be called Average3



Powered by