Question: Write a program that allows the user to enter a time in seconds and then outputs how far an object would drop if it is

Write a program that allows the user to enter a time in seconds and then outputs how far an object would drop if it is in freefall for that length of time Assume that the object starts at rest, there is no friction or resistance from air and there is a constant acceleration of 32 feet per second squared due to gravity. Use the equation acceleration (time) 2 distance Note that the used to indicate exponentiation is not an actual operator in C++ I just used it here in English to desribe what you are doing. You should use 2 loops in your program. The outer loop will be used to control whether or not the computation is run addtional times, to allow multiple inputs to be given. Data checking The inner loop will be used to verify the data is valid for the computation to take place Assume a time of 0 or a positive time will be acceptable. Any negative time should generate a warning to the user that the time is not valid, and no computation for that inappropriate value should take place. We will discuss data checking in class, and you can also consult the web page I have that addresses this See http://web.mst.edu/-davem/CSc74/programs/dowhile.ba sics. fs2007 When your program asks for input, for values to use 10



Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!