Question: MAKE A JAVA ALGORITHM FOR THIS PROBLEM Make a program that does the following: a. Prompts the user to input five decimal numbers b. Prints
MAKE A JAVA ALGORITHM FOR THIS PROBLEM
Make a program that does the following:
a. Prompts the user to input five decimal numbers
b. Prints the five decimal numbers
c. Converts each decimal number to the nearest integer
d. Adds the five integers
e. Prints the sum and average of the five integers

Output Input five decimal numbers 12.35 18.45 14.20 2.3 5.3 You input 12,18,14,2 and 5 The sum of 5 integers is 51 and the average is 10.2.
Step by Step Solution
There are 3 Steps involved in it
Answer code is as follow import javautilScanner public class DecimalToInteger public static ... View full answer
Get step-by-step solutions from verified subject matter experts
