Create a C++ program that establishes the average speed of yachts in a race over a distance course of up to 100 nautical miles. This program will be used by a shore-based official race observer that enters the start time for the race and then finish times as each yacht crosses the finish time and completes the race. The program should be able to calculate the elapsed race time and average velocities of different yachts as they cross the finish line with different
finish times. They race over a pre-set and common course distance (this is entered before the race starts) and the time taken to travel over that course and arrive at the finish line.
The race start time must be during the hours from 08:00 (24 hour time) to 17:00. The race takes as long as necessary up to a maximum of 24 hours after the start time. After this time any yacht that does not cross the finish line is deemed to have NOT finished the race. Speed of vessels on water is calculated in knots, or nautical miles per hour. One nautical mile is equal approximately 1.8 km. However for the general public, conversion is needed, your
program should provide calculated results in knots and simultaneously in km/hour.
1. A function that announces the program and prints out the instructions for the user at the start and each time a new race is defined by setting a new Course Distance (in nautical miles) or a new Race Start Time
2. A function that calculates speed in knots from the finish time less the start time and the course distance
3. Functions that recalculate and display the speeds in nautical miles/h and km/h. Conversion to Statute miles per hour is optional but may be useful for some people.
4. A function that accepts user input from the menu choices, validates them, gives meaningful error
messages, and calls other functions to implement each command (multi-way selection or a switch statement should be used). 4
5. A function that can verify that a 24 hour time is correct and legal.
6. A function that can subtract time in 24 hour format.
New to the c++, I'm suppose to solve this problem using functions i just need a guidance start for this problem.
thanks.