Question
I have this assignment that I did in c++ already but I need it done in Raptor and I don't really understand that program. Write
I have this assignment that I did in c++ already but I need it done in Raptor and I don't really understand that program.
Write a program that computes how many feet an object falls in 1 second, 2 seconds, etc., up to 12 seconds. First create a Raptor flowchart. For this assignment you will need to switch to intermediate mode. Your Raptor program should:
1. Have a procedure called FallingDistance which has one input parameter, seconds, and one output parameter, distance.
2. Compute the distance in feet an object falls using this formula: d = gt2 (where g = 32.2)
3. The main program should call FallingDistance within a loop which passes the values 1 through 12 as arguments.
4. Print a table with seconds and falling distance in feet. Once your Raptor flowchart executes correctly, upload your .rap file.
Sample Output (This program has no input)
Seconds Distance
================
1 16.1000
2 64.4000
3 144.9000
4 257.6000
5 402.5000
6 579.6000
7 788.9000
8 1030.4000
9 1304.1000
10 1610
11 1948.1000
12 2318.4000
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started