Question: Objective: Repetition (loops) structures using the Raptor Program Assignment: Use the Raptor program to complete the program below. Specification: Use the Raptor Loop function for

Objective: Repetition (loops) structures using the Raptor Program Assignment: Use the Raptor program to complete the program below. Specification: Use the Raptor Loop function for the following problems. Parts 1, 2 and 3 must be in one Raptor program. Part 1 Create a program to calculate the squared value for each number in a sequential set of numbers from 1 to n, where n is the total count of numbers to be squared that is entered by the user. 1) Ask the user to enter a number count from 1 to 25. 2) Calculate the squared value for each number in the set 3) Output a table with the number and its squared value under a heading. 4) Create this using Pre-Test Loop Example: Please enter a number between 1 and 25: 3 Number Square =============================== 1 1 2 4 3 9 Part 2 Same as the program in Part 1 but use a Post-Test loop.

Part 3 Modify the program to accept any number from the user and calculate the squared value. Output the number and the squared value in a table. Continue to ask for a number until the User indicates they are finished by entering a Sentinel. The Sentinel can be a number or a text word. Once the sentinel is received, the program will exit the loop and calculate the total sum of all the squared numbers and output this below the table. Example: Please enter any number to be squared (Enter -99 to exit): 3 Number Square ================= 3 9 Please enter any number to be squared (Enter -99 to exit): 7 Number Square ================= 3 9 7 49 Please enter any number to be squared (Enter -99 to exit): -99 ------Run Complete

Please include a flowchart image, if possible. Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!