Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INTRODUCTION: A projectile is launched with a velocity in m/s and at an angle alpha in degrees. See the illustration to the right. The Cartesian

image text in transcribed

image text in transcribed

INTRODUCTION: A projectile is launched with a velocity in m/s and at an angle alpha in degrees. See the illustration to the right. The Cartesian coordinates (x(t).y(t)) of the projectile as a function of time are computed by: x(t) = u * cos * t y(t) = u * sin * t--gt2 where v is velocity in m/s, tis time in seconds, and g is the gravitational constant 9.81 m/s2. The Polar coordinates (r(t),0(t)) of the projectile for the down range distance in meters and angle theta in degrees as a function of time are computed by r(t) = /x(t)2 + y(t) defined by the opposite coordinate y(t) divided by the adjacent coordinate x(t) arctan(z) where z is Note: To compute the angle theta (6) using arctan, use either the atan or the atan2 function. Review the PDF file on basic math functions for the atan and atan2 option:s ASSIGNMENT: Write a Cprogram that will read from the keyboard the velocity in m/s, the angle alpha in degrees, and the time in seconds. After entering the input values, the program will compute the Cartesian coordinates and the Polar coordinates. Print the results to the computer screen using the format given below. Use your PC's cursor to determine the horizontal and vertical spacing from the output format given below OUTPUT FORMAT: PROJECTILE POSITION CALCULATIONS Enter projectile velocity in m/s:x Enter projectile angle in degrees: x Enter projectile time in seconds x RESULTS velocity of the projectile = x m/s Angle of the projectile = .x deg Time of the projectile Cartesian Polar r(t) theta(t) (meters) (meters) (meters) (degrees) x(t)

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

Students also viewed these Databases questions

Question

3. Identify opportunities to improve this process.

Answered: 1 week ago

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago