1. Input an integer value altitude and use a loop to write your own graphics pro
ID: 3783669 • Letter: 1
Question
1. Input an integer value altitude and use a loop to write your own graphics program 'fall.cpp' that produces a graphic representation of falling object (e.g. circle). An object has initial downward velocity 0. Each second, it's velocity increases by 32 ft/sec. Plot the descent of the falling object. Note that terminal velocity is 174 ft/sec so the object's velocity cannot exceed that speed. Now modify your program to read an integer variable secondstoopen to open a parachute after n seconds. Assume the velocity decreases by 100 ft/sec after the chute opens until the downward velocity hits 17 ft/sec. Note that outside the bottom of the loop is the code for where the chutist has landed ... put a message there.
(use C++ code please)
Explanation / Answer
//main.cpp
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.