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 < ground angle)
, do not display
Proper formatting
( column alignment)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
