Home /
Expert Answers /
Computer Science /
please-correct-this-raptor-flowchart-according-to-this-question-write-a-raptor-program-that-compute-pa690
(Solved): please correct this raptor flowchart according to this question Write a Raptor program that compute ...
please correct this raptor flowchart according to this question
Write a Raptor program that computes the height of a ball thrown into the air from 5 feet above the ground. Your program must: 1. Have a procedure called ballHeight which has an input parameter, seconds, an input parameter speed and one output parameter, height. 2. This procedure computes the height of the ball in feet using this formula: height=-16 seconds² + speed * seconds + initial_height. 3. The main program should call ballHeight within a loop which which passes the seconds staring at 0 and increments the seconds by 0.20 each iteration. 4. Display a table with time in seconds and height in feet. 5. The table should display the seconds and height to 2 decimal places. In Raptor, you can set the precision by calling the procedure Set_Precision (2). The table ends at the fifth of a second before the ball hits the ground. In other words, the height does not go negative. 6. 7. The seconds and distance should be output from within the loop in main, not from the procedure. 8. The heights will be different for different input speeds. 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 (input in bold) Please enter the speed at which the ball is thrown: 35 Time Height 0.00 5.00 0.20 11.36 0.40 16.44 0.60 20.24 0.80 22.76 1.00 24.00 1.20 23.96 1.40 22.64 1.60 20.04 1.80 16.16 2.00 11.00 2.20 4.56
mali CEH - ,,, Cut Selection 1 mais Tag E Send m 24000 Symbols Amigument Call Input Output B Selection Loop .. height 0 speed 35 - STI- 24000 Pl kh GET {3} ] - PUT 'Segit tellige brak FUT Log main ballHeight brali 30-31 - Toation Anyoot, wa hargar height-16 Ianced * # * 15. gada 1 kid >> ]80% • } 80% Activate Windov
"Please enter the speed at which the ball is thrown" GET speed Start IN Yes height -0 time-0 PUT "time height" PUT Loop time>2.20 NO ballHeight(time, height) PUT time + height time+time+0.20 End
main ballHeight W Start (in seconds, in height) height+ 16 seconds seconds + 35 seconds +5 * End