C Programing – General Preprocessing items: Use mnemonic variables of 3 characters or more. Use void

C Programing

– General Preprocessing items: Use mnemonic variables of 3 characters or more. Use void main (void) or void main ( ) in your program and leave off the return 0. Use double as the choice for all floating point values. Add heading items using as printf statement. Watch for instructions that specify a symbolic constant and assign that symbolic constant in all capital letters and using the #define.

Problem:
Write a program that calculates the distance from the roof top to the ground for a free falling ball that is only influenced by gravity as it falls. The program should ask the user to input the height of the building. It is great weather on the roof, so the initial velocity is 0 meter / second. This gives a distance equation shown below and a Velocity equation shown below. The program should assign the value of gravity as a symbolic constant. Gravity = 9.81 meters / seconds-squared. The program must use the built in function(s),such as A????1powA????1 and or A????1sqrtA????1, from the Math header file (library) to calculate values. The program should calculate the time and print the answer to show 5 decimal place(s). The program should calculate the velocity and print the answer to show 4 decimal place(s). The program lets the user know how many valid tries and how many error tries were completed. The program continues until it is told to stop when -999 is entered. Use the given data and reproduce the sample output as a comment in your program.

Looking for a similar assignment? Get 15% discount on your first order with us
Our experts will take care of your task no matter the deadline!
Use the following coupon
"SAVE15"

Order Now