Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ sivecsary edu/supernova 7/files/robbinsicsC270 LECTUREREVENN/Chapter%202.pdf name,date, LAB #6 first line REMINDER: comments to the user and the programmer are expected here. USE MANIPULATORS SETWO, SETPRECISION(3

C++ image text in transcribed
image text in transcribed
sivecsary edu/supernova 7/files/robbinsicsC270 LECTUREREVENN/Chapter%202.pdf name,date, LAB #6 first line REMINDER: comments to the user and the programmer are expected here. USE MANIPULATORS SETWO, SETPRECISION(3 or 4), SCIENTIFIC BE SURE/ ABTRACT IS IN THE SOURCE CODE / (IE what it is all about!) We are launching a projectile as part of Napoleon's army from one of our giant cannons. We need to study the canons ability to be sure we can hit the target. We have a castle at 1200 meters with a 30 meter wall from where we are setting up our cannon. We know if we aim the cannon at some angle theta, 0, in degrees, at a initial muzzle velocity vo (u in image below) known to be 128 m/s for our canon, then the Range (how far it will go) in meters is given by a horizontal range vo sin(20)/g (r in image below) with g as a constant-9.8 m/s BE SURE YOU ANSWER EACH PARTI LABEL THEM The maximum height( h in image below) is given by o sin2 (8)/(2g) . And the time for the complete motion 2Vo sin(9Vg . (you have to convert to radians to use the sin()) be sure output section shows the original angle in degrees LABEL EACH OF THE FOLLOWING PARTS IN YOUR OUTPUT SECTION PART 1. Write the program that inputs the Angle in degrees. THIS ANGLE SHOULD BE IN OUTPUT! .Be sure to request input and let the user know why You are asking for the data with "cout statements Then Output: Range, Max height and time of journey for all cases: make it clear in output as to what the values mean! First run a hand calculation for some angle and then test it as part of the Run For two more arbitrary angle input cases. Be sure your test angle from the hand calculation gives good answers before proceeding. SHOW HAND CALC!! Copy output screen as usual OUTPUT EXPECTED PART 1: FIRST TEST RUN AND TWO MORE SENSIBLE RUNS 90 AND 180 DEGREES DO NOT MAKE SENSE UNLESS YOU WANT TO KILL YOUR OWN TROOPS AND YOUR HAND CALCULATION FOR TH FIRST angle. See NEXT PAGE FOR FURTHER INTSRUCTIONS ON LAB#6 Lab #6 continued PART 2.Run the program again for the given muzzle velocity to find the angle for the maximum Range. Don't copy these runs. Run it a few times for yourself to see the angle you get is the maximum range. Then Show the output for the maximum case, as well as an 1 degree before the maximum angle and 1 degree after to show you really have the maximum range!. Be sure to note the max range and what the sivecsary edu/supernova 7/files/robbinsicsC270 LECTUREREVENN/Chapter%202.pdf name,date, LAB #6 first line REMINDER: comments to the user and the programmer are expected here. USE MANIPULATORS SETWO, SETPRECISION(3 or 4), SCIENTIFIC BE SURE/ ABTRACT IS IN THE SOURCE CODE / (IE what it is all about!) We are launching a projectile as part of Napoleon's army from one of our giant cannons. We need to study the canons ability to be sure we can hit the target. We have a castle at 1200 meters with a 30 meter wall from where we are setting up our cannon. We know if we aim the cannon at some angle theta, 0, in degrees, at a initial muzzle velocity vo (u in image below) known to be 128 m/s for our canon, then the Range (how far it will go) in meters is given by a horizontal range vo sin(20)/g (r in image below) with g as a constant-9.8 m/s BE SURE YOU ANSWER EACH PARTI LABEL THEM The maximum height( h in image below) is given by o sin2 (8)/(2g) . And the time for the complete motion 2Vo sin(9Vg . (you have to convert to radians to use the sin()) be sure output section shows the original angle in degrees LABEL EACH OF THE FOLLOWING PARTS IN YOUR OUTPUT SECTION PART 1. Write the program that inputs the Angle in degrees. THIS ANGLE SHOULD BE IN OUTPUT! .Be sure to request input and let the user know why You are asking for the data with "cout statements Then Output: Range, Max height and time of journey for all cases: make it clear in output as to what the values mean! First run a hand calculation for some angle and then test it as part of the Run For two more arbitrary angle input cases. Be sure your test angle from the hand calculation gives good answers before proceeding. SHOW HAND CALC!! Copy output screen as usual OUTPUT EXPECTED PART 1: FIRST TEST RUN AND TWO MORE SENSIBLE RUNS 90 AND 180 DEGREES DO NOT MAKE SENSE UNLESS YOU WANT TO KILL YOUR OWN TROOPS AND YOUR HAND CALCULATION FOR TH FIRST angle. See NEXT PAGE FOR FURTHER INTSRUCTIONS ON LAB#6 Lab #6 continued PART 2.Run the program again for the given muzzle velocity to find the angle for the maximum Range. Don't copy these runs. Run it a few times for yourself to see the angle you get is the maximum range. Then Show the output for the maximum case, as well as an 1 degree before the maximum angle and 1 degree after to show you really have the maximum range!. Be sure to note the max range and what the

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions

Question

What is the role of suppliers in JIT systems?

Answered: 1 week ago