ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 10 Weeks Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 May 2017 My Price 8.00

Write a program that reads numbers

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

 

Note. Only use the while loop, not the do-while or for loops.

Add the following to your program:

  • A counter within the while loop that keeps track of the number of inputs entered
  • A comment that determines if the total value is less than 100 or greater than 100, as in the sample output
  • Switch statements to determine the total number of inputs

Refer to the following sample output.

Enter numbers, one per line. Enter 0 to end:

7

8

6

5

5

9

8

0

Thank you. The total was 48.

The total number of inputs read: 8

The total is less than 100.

Click the Assignment Files tab to submit your assignment.

 

 

Please dont plagiarize

Answers

(11)
Status NEW Posted 27 May 2017 03:05 AM My Price 8.00

-----------

Not Rated(0)