1. Prompt the user fordesired altitude and a number of time steps. 2. Cause the
ID: 3616425 • Letter: 1
Question
1. Prompt the user fordesired altitude and a number of time steps.
2. Cause the balloon toascend to one-third of the specified altitude, then cruise forone-quarter of the timesteps.
3. Repeat step 2 twicemore (ascend one-third, cruise one-quarter, ascend one-third,cruise one-quarter).
4. Descend halfway to theground, cruise for the remaining time steps, and thendescend back to the ground.
5. After the first ballonflight, the program should ask the user if he/she would liketo continue.