Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++. The first 2 pictures are the assignment. The parts in bold are what should show on the user interface. the 3rd picture is something
c++.
The first 2 pictures are the assignment. The parts in bold are what should show on the user interface. the 3rd picture is something the teacher wrote up for clarification, and the last picture is my code.
I feel like I'm doing this entirely wrong. I'm not sure how to do the loop within the loop, and how to code it to be able to enter an arbitrary number of values to sum.
Programming Assignment Four: Write a C++ program which, when executed by the computer, sums integer values. The program should be able to sum an arbitrary number of integer values. Design and implement a loop to gather integer value after integer value and summing each time a new value is entered. There should also be a user loop. Notice that Programming Assignment Four has a user loop and within the user loop there is another loop that is used to gather the integers to be summed. The behavior should be as follows. How many integer values would you like to sum? 3 Enter an integer value: 1 Enter an integer value: 4 Enter an integer value: 2 The sum is 7 Would you like to go again (y)?y How many integer values would you like to sum? 2 Enter an integer value: 1 Enter an integer value: 1 The sum is 2 Would you like to go again (y)? yStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started