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 free f
all 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 due to gravity. Use the equation: distance = acceleration x time-squared divided by 2
// Calculate the distance=acceleration x time-squared divided by 2
double dis=acc*(t*t)/2;
// print the distance
cout<<"distance is: "<<dis<<" feet."<<endl;
return 0;
}
Explanation:
Read the time in seconds from user and assign it to variable "t". declare and initialize variable "acc" with 32.Find the distance as "dis=acc*(t*t)/2". Print the distance.
It's actually mar zuckerburg. Mark is the CEO of Facebook and hit net worth is 54.6 billion. He launched Facebook with his buddies at Harvard university.
It depends on what the button looks like but sometimes you need to press it. If it is an actual computer press the power on button attached to the box that should be hooked up to the computer.