Computers and Technology

Your program will calculate the distance an object travels (in meters) on earth for a specified number of seconds. you will also calculate the distance traveled on the moon (in meters) for the specified number of seconds.

your program must have the main function and, at least, the following four additional functions. the signatures for these functions must be as follows:

double readseconds()
double calculateearthdistance(double seconds)
double calculatemoondistance(double seconds)
void displayresults(double seconds, double earthdistance, double moondistance)
the readseconds function will be an input function that will read in a double value from cin and return that value back to main.

the calculateearthdistance function will calculate the distance an object falls (on earth) during the specified number of seconds.

the calculatemoondistance function will calculate the distance an object falls (on the moon) during the specified number of seconds.

the displayresults function that will display the number of seconds an object has fallen as well as the distance the object has fallen on the earth and on the moon.

you can have additional function is needed.

here is a summary of the processing that is required in the various functions:

double readseconds()

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:30, icantspeakengles
Aconstruction company is creating a powerpoint presentation describing how they calculate costs during each construction step. they plan to email this presentation to clients. the individual clients will be watching the presentation slide show on their own personal computers. what is the most important formatting step the company should take to make the text readable and pleasing to the eye?
Answers: 2
image
Computers and Technology, 22.06.2019 15:00, vladutraileanu7599
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, caseypearson377
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
image
Computers and Technology, 23.06.2019 06:00, tchloe448
What makes myhexadecimalnumber a child of mynumber? which methods does myhexadecimalnumber inherit directly from the mynumber class? what can an instance of the mynumber class do? what can an instance of the myhexadecimalnumber class do? which methods are overridden? why are they overridden? how many examples of overloading are there? why was this done? where is the super keyword used? what is it doing? why isn’t the incoming value set immediately in the second myhexadecimalnumber constructor? how many examples can you find of an inherited method being called?
Answers: 1
Do you know the correct answer?
Your program will calculate the distance an object travels (in meters) on earth for a specified numb...

Questions in other subjects: