Question: 2. Create a new file projectileDist.cpp which will contain a program to compute the horizontal distance travelled by a projectile shot at a 45 degree

 2. Create a new file projectileDist.cpp which will contain a program

2. Create a new file projectileDist.cpp which will contain a program to compute the horizontal distance travelled by a projectile shot at a 45 degree angle with an initial velocity v on earth. The program should read in the initial velocity v (in meters per second.) The formula for the horizontal distance travelled is: distance- vlg where g -9.81 msters p with he Write your program using the program template given for Part 1 (fallMars.cpp) of this assignment. Change "File" on the first line to say projectileDist.cpp instead. Make any other appropriate changes to your program including the "Creation Date", "Place Your Comment Here", and "Place Your Solution Here". Use single line comments where appropriate. Your program must produce exactly the same output as illustrated in projectileDist.exe on the same inputs values. Compile and run your program and check it against projectileDist.exe

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!