The Accumulator Step 1: Start Raptor and save your document as Lab 5-2Accumulator. The .rap file extension will be added automatically. Step 2: The next loop to code is the pseudocode from Step 10, Lab 5.1. This loop will take in a number and accumulate the total. The complete pseudocode is below: Declare Integer counter Declare Integer total = 0 Declare Integer number For counter = 1 to 5 Display "Enter a number: " Input number Set total = total + number End For Display "The total is total: ", total Step 3: Click the Loop symbol and add it between the Start and the End symbol. Above the Loop symbol, add three assignment statements. Set a variable named counter to 1, a variable named total to 0, and a variable named number to 0. Step 4: Double click the Diamond symbol and add the condition that will execute the loop through 5 iterations. Step 5: Add an input statement if the loop is NO. This statement will ask the user to enter a number. Step 6: Add an assignment statement that will accumulate the total such as total = total + number. Step 7: Add an assignment statement that will increment the counter variable by 1. Step 8: Add an output statement outside of the loop if the condition is YES. This should display total. Step 9: Execute your flowchart to see if your output matches the following. If not, repeat the steps to identify the error and execute again. Input values are: 13 23 24 52 18 The expected output is: The total is 130 ----Run finished---- Step 10: Paste your finished flowchart in the space below.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 5E
icon
Related questions
Question
The Accumulator Step 1: Start Raptor and save your document as Lab 5-2Accumulator. The .rap file extension will be added automatically. Step 2: The next loop to code is the pseudocode from Step 10, Lab 5.1. This loop will take in a number and accumulate the total. The complete pseudocode is below: Declare Integer counter Declare Integer total = 0 Declare Integer number For counter = 1 to 5 Display "Enter a number: " Input number Set total = total + number End For Display "The total is total: ", total Step 3: Click the Loop symbol and add it between the Start and the End symbol. Above the Loop symbol, add three assignment statements. Set a variable named counter to 1, a variable named total to 0, and a variable named number to 0. Step 4: Double click the Diamond symbol and add the condition that will execute the loop through 5 iterations. Step 5: Add an input statement if the loop is NO. This statement will ask the user to enter a number. Step 6: Add an assignment statement that will accumulate the total such as total = total + number. Step 7: Add an assignment statement that will increment the counter variable by 1. Step 8: Add an output statement outside of the loop if the condition is YES. This should display total. Step 9: Execute your flowchart to see if your output matches the following. If not, repeat the steps to identify the error and execute again. Input values are: 13 23 24 52 18 The expected output is: The total is 130 ----Run finished---- Step 10: Paste your finished flowchart in the space below.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning