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)
1. Prompts the user to enter five decimal numbers
2. Print the five decimal numbers
3. Sum the decimal numbers and assign to a double variable called dblSum
4. Convert (cast) sum to an integer and save in an integer variable called intSum
5. Assign the average of the 5 numbers to a double variable avg
6. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!