Question
Coding Exercise: A Feat With Feet For this program the input is a floating-point number representing a height measured in feet. Write a program that
Coding Exercise: A Feat With Feet
For this program the input is a floating-point number representing a height measured in feet. Write a program that will output the equivalent height in centimetres using the conversion formula 1 foot = 30.48 cm. For example, if the input is 0.5, then the output should be 15.24.
Coding Exercise: Gravity
A parcel is thrown downward at a speed of v m/s from an airplane at altitude 11000 m. As it falls, its distance from the ground is given by the formula -4.9t2 - vt + 11000, where t is the time in seconds since it was dropped. Write a program to output the time it will take to reach the ground. The input to your program is the positive floating-point number v. The required time is given by the quadratic formula
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started