Question: WRITE RAPTOR PROGRAM THAT COMPUTES COSC 1436 Lab #06 Flowchart Write a Raptor program that computes how many meters an object falls in 1 second,

COSC 1436 Lab #06 Flowchart Write a Raptor program that computes how many meters an object falls in 1 second, 2 seconds, etc., up to 15 seconds. Your program must: 1. Have a procedure called Falling Distance which has one input parameter, seconds, and one output parameter, distance. 2. Compute the distance in meters an object falls using this formula: d = 1 gt? (where g = 9.813 3. The main program should call Falling Distance within a loop which passes the values 1 through 15 as arguments. 4. Print a table with seconds and falling distance in meters. 5. The seconds and distance should be output from within the loop in main. Test your program to make sure it works properly. Make sure your name is in a comment inside the program and then upload just the rap file. Sample Output (This program has no input) Seconds Distance 1 2 3 4.9050 19.6200 44.1450 78.4800 122.6250 176,5800 342 PM 100% + @ ong 5. The seconds and distance should be output from within the loop in main. OLDIG WOONS Test your program to make sure it works properly. Make sure your name is in a comment inside the program and then upload just the .rap file. Sample Output (This program has no input) Seconds Distance 2 6 8 9 10 4.9050 19.6200 44.1450 78.4800 122.6250 176.5800 240.3450 313.9200 397.3050 490.5000 593.5050 7063200 828.9450 961.3800 1103.6250 12 13 14 15 Your device will restart to outside of active hours Leave it on and plugged in to adjust your active hours you want reminders, Restart now
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
