[Solved]Following Projects Future Projects Course Include Main Method Files Submit Definitions Ass Q37158933
For the following projects (and all future projects inthis course):
- Do not include a main method in the files yousubmit – just the definitions of the assigned functions. Iwill compile your code with my own main method for testing, andthere can only be one main method in a program. You will of courseneed to have a main method for testing purposes – just make sureyou comment it out (or delete it) before submitting your file.
- Do not use any global variables. Globalvariables and their drawbacks are discussed on pages 357-9 of thetextbook.
- If the assignment description doesn’t specify a return valuefor a function, then it should have a return type ofvoid.
Project 4.a
The following formula can be used to determine the distance anobject falls due to gravity in a specific time period:
where d is the distance in meters, g is 9.8, and t is the timein seconds that the object has been falling. Write a function namedfallDistance that takes the falling time as an argument.The function should return the distance in meters that the objecthas fallen in that time. For example if the function is passed thevalue 3.2, then it should return the value 50.176.
The file must be named: fallDistance.cpp
Expert Answer
Answer to For the following projects (and all future projects in this course): Do not include a main method in the files you submi… . . .
OR

