brainfrz

Untitled

Oct 1st, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. You will ask the User to enter a value between 1 and 100, inclusive. This will be the ending value for the counter controlled WHILE loop.
  2.  
  3. Within this loop, do the following:
  4. 1. Prompt the User to enter a number.
  5. 2. Count each time a number is entered and stop the loop when you reach the number the User entered. This will be the loop counter.
  6. 3. Compute two running totals within the loop:
  7. 1. A running total of the odd counter values.
  8. 2. A running total of the even counter values.
  9.  
  10. Print out each running total after this loop is done executing.
  11. Include Input, Output, Additional Variables (if any), Formulas (if any), Initial Algorithm, and Refined Algorithm.
  12. Create a flowchart from your algorithm.
  13. Submit in the dropbox.
Advertisement
Add Comment
Please, Sign In to add comment