Question: Qn 4 (20 points) Write a program that prompts the user to input five decimal numbers. The program should then add the five decimal numbers,

Qn 4 (20 points) Write a program that prompts the user to input five decimal numbers. The program should then add the five decimal numbers, convert the sum to the nearest integer, and print the result. Note: Save the file as Assign1Qn4XX.java. Note that for your submission, you need to replace XX with your name. Please follow the instructions mentioned in the Assignment. Below is an example. Source Code: * Assign 1 Qn4 Yuehuaw.java * Describe your program here * @author Last Name, First Name * Cassignment CSCI 428 Assignment 1-Qn4 * @date 1/12/2021 public class Assign1Qn4 Yuehuaw { Java code } Screen shot of the output: Problems @ Javadoc Declaration Console X
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
