AdderAA.java This program will allow the user to select how many numbers they’d like to add together, and then enter those numbers to be totaled. The program should run in a continuous loop unless the user enters zero at the menu (in this case the program should end). A negative menu answer should give an “invalid response.” Your code should catch input mismatches. There will be multiple loops and probably an if/else structure required to accomplish this. You cannot use a break statement or any other non-logical way such as System.exit to exit a loop. This will result in a loss of major points. The example below is one continuous run of the program. Your program should run the test case exactly as it appears below, and should work on any other case in general. Output Example This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program. >>>3 Enter your number: 4.0 Enter your number: 3.2 Enter your number: -1.0 The sum of your numbers is 6.2. This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program. >>>-20 Invalid response. This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program. >>>2 Enter your number: 1.5 Enter your number: 34.5 The sum of your numbers is 36.0. This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program. >>>0 Goodbye. in java

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 7E: (Simulation) Write a program to simulate the roll of two dice. If the total of the two dice is 7 or...
icon
Related questions
Question

AdderAA.java

This program will allow the user to select how many numbers they’d like to add together, and then enter those numbers to be totaled. The program should run in a continuous loop unless the user enters zero at the menu (in this case the program should end). A negative menu answer should give an “invalid response.” Your code should catch input mismatches. There will be multiple loops and probably an if/else structure required to accomplish this. You cannot use a break statement or any other non-logical way such as System.exit to exit a loop. This will result in a loss of major points. The example below is one continuous run of the program.

Your program should run the test case exactly as it appears below, and should work on any other case in general.

Output Example

This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program.

>>>3

Enter your number: 4.0

Enter your number: 3.2

Enter your number: -1.0

The sum of your numbers is 6.2.

This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program.

>>>-20

Invalid response.

This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program.

>>>2

Enter your number: 1.5

Enter your number: 34.5

The sum of your numbers is 36.0.

This program will add numbers together. Tell me how many numbers you’d like to add or type 0 to end the program.

>>>0

Goodbye.

in java

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,