Question: Write a program that does the following: ( java ) 1 . Prompts the user to enter five decimal numbers 2 . Print the five
Write a program that does the following: java
Prompts the user to enter five decimal numbers
Print the five decimal numbers
Sum the decimal numbers and assign to a double variable called dblSum
Convert cast sum to an integer and save in an integer variable called intSum
Assign the average of the numbers to a double variable avg
Print the five numbers and the avg as integers
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
