This assignment is called Text Problems

profileTopsolutions
 (Not rated)
 (Not rated)
Chat

This assignment is called Text Problems

Write a program that reads numbers from cin and then sums them, stopping when 0 has been
entered. Construct three versions of this program, using the while , do - while , and for loops.

• Add the following to your program:

o Add a counter within the while loop that keeps up with the number of inputs that are entered.
o Add a comment that determines if the total value is less than 100 or greater than 100. See the sample output.
o Use switch statements to determine the total number of inputs.

    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      answer.zip
    • attachment
      text_problems.zip