Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write the above in C program 2. The height h of a ball thrown upward at an angle A with initial velocity vo is given

image text in transcribed

write the above in C program

2. The height h of a ball thrown upward at an angle A with initial velocity vo is given by the following formula: Suppose in a given situation a table of values of time t and height h are to be printed in a table beginning at time 0 and continuing at intervals of 0.05 second until the ball reaches the ground. Use preprocessor commands or declare constants to define g with a value of 9.81 and pi with a value of 3.14159265. Prompt the user to input first the initial velocity v0 (a value between 10 and 15 meters per second inclusive) and then the angle of launch (a value between 30 and 60 degrees inclusive). Use while or do while data validation loops to assure that the initial velocity and angle of launch are in the proper range Use a while loop to print a labeled table of values of time t and height h, beginning at time 0 and continuing at intervals of 0.05 second until the ball reaches the ground (Remember to convert the angle to radians to implement the equation.) Place time in the column on the left and height in the column on the right. Do not print any negative values of height. Use 2 digits after the decimal point for time and 2 digits after the decimal point for height

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Structure Of The Relational Database Model

Authors: Jan Paredaens ,Paul De Bra ,Marc Gyssens ,Dirk Van Gucht

1st Edition

3642699588, 978-3642699580

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of the application procedure.

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago

Question

Which personal relationships influenced you the most?

Answered: 1 week ago