Question: C # Done Q5(1).docx MGIS 2320 - 25 Write a console application to total a set of numbers indicated and provided by a user, using
Done Q5(1).docx MGIS 2320 - 25 Write a console application to total a set of numbers indicated and provided by a user, using a while loop or a do...while loop according to the user's menu choice as follows: Example Example Menu Menu 1. To total numbers using a while loop 1. To total numbers using a while loop 2. To total numbers using a do...while loop 2. To total numbers using a do...while loop Enter your menu choice: 1 Enter your menu choice: 2 How many numbers do you want to add: 2 How many numbers do you want to add: 2 Enter a value for number 1: 4 Enter a value for number 1: 4 Enter a value for number 2: 5 Enter a value for number 2: 5 The total is: 9 The total is: 9 Example Example Menu Menu 1. To total numbers using a while loop 1. To total numbers using a while loop 2. To total numbers using a do...while loop. 2. To total numbers using a do...while loop. Enter your menu choice: 1 Enter your menu choice: 2 How many numbers do you want to add: 4 How many numbers do you want to add: 4 Enter a value for number 1:3 Enter a value for number 1:3 Enter a value for number 2:2 Enter a value for number 2:2 Enter a value for number 3: 5 Enter a value for number 3:5 Enter a value for number 4:1 Enter a value for number 4:1 The total is: 11 The total is: 11 Requirements 1. All the values above are only examples. 2. Menu choice 1 will total numbers provided by the user using a while loop. 3. Menu choice 2 will total numbers provided by the user using a do... while loop. 4. The message "Enter a value for number #" must include a sequence number i.e. 1, 2, 3, 4, 5, 6, ...)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
