Write a code using C++ that takes input from the console and displays output on the console. You will write a program that takes user input, does some basic arithmetic, and displays the results.
The program should prompt the user for the number of seconds and the number of miles traveled. The program should convert the given number of seconds into different units of time and using the given total distance should report the average speed. The output should give the time in years/days/hours/minutes/seconds and the average speed in both miles per hour (mph) and feet per second (ft/s). You should use the conversions:
* 1 mile = 5,280 feet
* 1 year = 365 days
* 1 day = 24 hours
* 1 hour = 60 minutes
* 1 minute = 60 seconds
Sample output should be something like the text below, where the user entered 123456 seconds and 42 miles:
Enter the total time of the journey (in seconds): 123456
Enter the total distance traveled (in miles): 42
You have been travelling for 0 years, 1 days, 10 hours, 17 minutes, and 36 seconds.
Your average speed is 1.225 mph or 1.796 ft/s.
The only difference could be the number of decimal places you report. You may assume all time units are plural, so it's OK to say "1 days" or "1 years" as above. You are only allowed to use the material we've learned so far, so you are not allowed to use any if statements or loops.
Comments: As with all programs in this course, your code should contain useful comments. In particular, your name and a brief description of what the program does should appear at the top of your source file. Here is an example template, which you can use in your assignment: