Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The second page is a template for the assignment. All variables used must appear in description of variables table , including syombolic constants (type symbolic)

The second page is a template for the assignment. All variables used must appear in description of variables table , including syombolic constants (type "symbolic") . And please don't provide c++ code . This is a C program. Thank you. image text in transcribed
image text in transcribed
INTRODUCTION The range of a projectil may be calculated given its initial velocity, v, and the angle at which the projectile is fired.. The range is computed from the equation u/sin(2 * ) where R is the range, the angle 2*0 is in radians, and g (32.2 ft/sec') is the gravitational constant. ASSIGNMENT: Write a C program that asks the user to enter the initial launch angle in degrees and launch velocity in f/sec. Then compute the range of the projectile and print the value to the screen You will need to convert the angle from degrees to radians to use the sin() function in C. Hint: remember that radians = 180 Define g and (3.14159) as symbolic constants in your program. Use the "Code Sections.c" template on Blackboard to write your code. Your program output will look like the illustration shown below. Use your PC's cursor to determine the horizontal and vertical spacing for the output format. OUTPUT FORMAT RANGE OF A PROJECTILE Enter the launch angle in degrees: x Enter the launch velocity in ft/sec: x RESULTS Launch angle xxx.x degrees Launch angle xxx.x radians Launch velocityxx.xx ft/sec Projectile range xxx.xx ft To work a hand example, use an initial velocity of 1000 ft/sec and a launch angle of 30. SUBMITTING ASSIGNMENTS: Once you have your program working, exit the C compiler that you are using. program file name conforms to the following specifications: Make sure that your source

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

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago