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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education