Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- Within this loop, do the following:
- 1. Prompt the User to enter a number.
- 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.
- 3. Compute two running totals within the loop:
- 1. A running total of the odd counter values.
- 2. A running total of the even counter values.
- Print out each running total after this loop is done executing.
- Include Input, Output, Additional Variables (if any), Formulas (if any), Initial Algorithm, and Refined Algorithm.
- Create a flowchart from your algorithm.
- Submit in the dropbox.
Advertisement
Add Comment
Please, Sign In to add comment