Question: Write a program named projectile.cpp that generates a table of projectile ranges, based on a variety of launch and ground angles . All other conditions

Write a program named

projectile.cpp

that

generates a table of projectile ranges, based on

a variety of

launch and ground angles

. All other conditions

are kept the same

(gravity = 9.8m/s, initial velocity = 50m/s).

Prompt the user for the following information:

Launch angle starting value

Lau

nch angle ending value

Launch angle interval

Ground angle starting value

Ground angle ending value

Ground angle interval

The

output

table must contain the following

features

:

Column and row titles (

Launch angle and Ground angle)

Column and row labels

Projectile range for each combination of launch and ground angles

o

If the projectile has negative range

(launch angle

, do not display

Proper formattingWrite a program named projectile.cpp that generates a table of projectile ranges,

( column alignment)

Ground angle end: 704 Ground angle interval: 74 Launch angle start: 152 Launch angle end: 804 Launch angle interval: 13- LAUNCH ANGLE 28 41 54 67 80 - - - - - - - - - - - - - - - - - - - - - - - - ---- - - - - - - - - - GROUND 15 ANGLE ------ 0 127.55 7 69.10 14 8.86 21 | 211.49 162.65 112.32 58.81 216.94 180.16 141.07 98.10 49.14 242.62 220.97 198.67 174.95 148.89 119.19 83.90 39.84 183.51 173.94 164.08 153.60 142.09 128.96 113.37 93.90 68.02 30.63 87.25 85.36 83.41 81.34 79.07 76.48 73.40 69.55 64.44 57.06 35 56 | 70

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!