Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

last digit of student id is 4. 1. Write a C++ program that shows the height of a projectile launched straight up for N seconds

last digit of student id is 4. image text in transcribed
1. Write a C++ program that shows the height of a projectile launched straight up for N seconds from launch time (time zero) until the projectile hits the ground, where N is equal to the last digit of your student ID number. If the last digit of your student number is 0 , use N=1 instead. The last entry in the table should show a projectile height of 0.0. The height after t seconds is given by s=v0t21gt2 where v0 is the launch velocity in m/s, and the gravitational constant g is 9.8 m/s2. The program should prompt the user for the launch velocity. Here is a sample format for your table given a launch velocity of 20m/s with the height printed out every second. 25 Marks

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

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions