Question: This program inputs three numbers from a user, calculates the sum of the numbers, and prints the answer. Match the items below based on the
This program inputs three numbers from a user, calculates the sum of the numbers, and prints the answer. Match the items below based on the following code. Assume that the user enters a for the first number, a for the second number and a for the third number:
public class sumThreeNums
public static void mainString args
Create a Scanner object
Scanner input new Scanner
System.in;
Prompt the user to enter three numbers
System.out.printEnter three numbers: ;
double number input, nextDouble;
double number input, nextDouble;
LINE IS MISSING HERE
double sum number number number ;
System.out.printSum sum;
double number input.nextDouble;
Sum
double sum number number number ;
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
