Question: C++ question Your program will prompt the user for an integer number (a number without decimal points) which indicates the number of days after 09/01/2017,

C++ question

Your program will prompt the user for an integer number (a number without decimal points) which indicates the number of days after 09/01/2017, starting at the distance 39.33 AU from the sun. You will calculate the distance of New Horizons from the Sun using the numbers from 09/01/2017 (assume velocity is constant) plus the user provided number of days and report: Updated distance in A.U. Distance in kilometers (1 AU = 149,598,000 km) on a line by itself Distance in miles (1 AU = 92,955,800 mile) on a line by itself Round trip time for radio communication in hours. Radio waves travel at the speed of light, listed at 299,792,458 meters/second, on a line by itself provide 2 decimal points of accuracy using std::fixed and std::setprecision (the later requiring #include). You would use them as follows: std::cout << std::fixed; std::cout << std::setprecision(2);

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!