Can you hep me create three different classes in C++ in the following question? (Important: Do not use the header file chrono or elements like ‘other’.)  (Note: The sensor class can have functions to determine if two sensors are adjacent and calculate the speed between them, while the time stamp class can have functions to calculate the time elapsed between two time stamps.) Racer class should have:
1. This is a class that contains data related to a race. The private data includes the racer number (an integer) and sensor data. The sensor data includes the sensor number (an integer), mile marker for the sensor (a double), and time stamp for each sensor (when the racer passed the sensor) with hour, minute, second, and millisecond. The class also has instance variables that hold a racer's total race time, total race distance, and total race speed. 2. The class has a default constructor. 3. The class has a copy constructor that ensures any vectors contained in the class are copied. 4. The class has set and get functions for its private data. 5. The class has a "get" function that calculates and returns the racer's total time to complete the race. 6. The class has an overloaded operator< that compares two racers based on their total race time, returning true if the first racer's time is less than the second racer's time. 7. The class has an overloaded operator=. 8. The class has an overloaded operator>> that reads a Racer object from an input file. 9. The class has an overloaded operator<< that prints a Racer object to an output stream in a specific format, which includes the racer's name, racer number, and race time. If the racer is suspected of cheating, an asterisk is appended to their name in the output. The format is: John Smith 789 9:50:15:12 
Ask the user to provide the name of a text file containing the race log, where the fields are separated by semicolons. If the file is not found or is empty, display an appropriate error message. The gun time, which indicates when the race officially began, is located in the first line of the file. The start times for each racer (i.e. their first sensor) may differ from the gun time since not every racer crosses the starting line at the same time. The input file is free of errors and the time values are in military format and do not exceed a single day. The input file follows this format: hour:minute:second:millisecond;total number of sensors;total number of miles in the race; racer name;racer number;sensor number;sensor mile marker;sensor time[:more sensor info]. Here is an example input file for a race spanning 12.5 miles (~20km), consisting of 5 sensors and 9 racers. 9:0:0:0;5;12.5 John Smith;789;0;0;9:1:30:0;1;2.5;9:15:45:45;2;5;9:32:15:59;3;7.5;9:50:15:12;4;10;10:5:30:0 Jane Doe;456;0;0;9:0:0:0;1;2.5;9:12:39:0;2;5;9:29:33:0;3;7.5;9:43:12:2;4;10;10:1:59:45 Bob Johnson;321;0;0;9:12:1:0;1;2.5;9:40:30:0;2;5;10:7:45:9;3;7.5;10:31:3:25;4;10;11:2:59:30 Sarah Lee;111;0;0;9:9:12:9;1;2.5;9:33:45:0;2;5;9:57:59:0;3;7.5;10:21:30:30;4;10;10:45:15:45 David Brown;222;0;0;9:15:0:0;1;2.5;10:00:0:0;2;5;10:45:0:0;3;7.5;11:30:0:0;4;10;12:15:0:0 Lucy Chen;333;0;0;9:0:0:0;1;2.5;9:7:23:0;3;7.5;9:21:45:1;4;10;9:55:15:30 Mark Davis;444;0;0;9:1:0:12;1;2.5;9:3:45:0;2;5;9:9:32:1;3;7.5;9:15:32:15;4;10;9:25:59:45 Emily White;555;0;0;9:0:30:0;1;2.5;9:10:0:0;2;5;9:27:0:0;3;7.5;9:40:30:0;4;10;10:0:0:0 Oliver Green;666;0;0;9:2:30:0;1;2.5;9:20:0:0;2;5;9:37:0:0;3;7.5;9:50:0:0;4;10;10:10:0:0

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Can you hep me create three different classes in C++ in the following question? (Important: Do not use the header file chrono or elements like ‘other’.)  (Note: The sensor class can have functions to determine if two sensors are adjacent and calculate the speed between them, while the time stamp class can have functions to calculate the time elapsed between two time stamps.) Racer class should have:
1. This is a class that contains data related to a race. The private data includes the racer number (an integer) and sensor data. The sensor data includes the sensor number (an integer), mile marker for the sensor (a double), and time stamp for each sensor (when the racer passed the sensor) with hour, minute, second, and millisecond. The class also has instance variables that hold a racer's total race time, total race distance, and total race speed. 2. The class has a default constructor. 3. The class has a copy constructor that ensures any vectors contained in the class are copied. 4. The class has set and get functions for its private data. 5. The class has a "get" function that calculates and returns the racer's total time to complete the race. 6. The class has an overloaded operator< that compares two racers based on their total race time, returning true if the first racer's time is less than the second racer's time. 7. The class has an overloaded operator=. 8. The class has an overloaded operator>> that reads a Racer object from an input file. 9. The class has an overloaded operator<< that prints a Racer object to an output stream in a specific format, which includes the racer's name, racer number, and race time. If the racer is suspected of cheating, an asterisk is appended to their name in the output. The format is: John Smith 789 9:50:15:12 
Ask the user to provide the name of a text file containing the race log, where the fields are separated by semicolons. If the file is not found or is empty, display an appropriate error message. The gun time, which indicates when the race officially began, is located in the first line of the file. The start times for each racer (i.e. their first sensor) may differ from the gun time since not every racer crosses the starting line at the same time. The input file is free of errors and the time values are in military format and do not exceed a single day. The input file follows this format: hour:minute:second:millisecond;total number of sensors;total number of miles in the race; racer name;racer number;sensor number;sensor mile marker;sensor time[:more sensor info]. Here is an example input file for a race spanning 12.5 miles (~20km), consisting of 5 sensors and 9 racers. 9:0:0:0;5;12.5 John Smith;789;0;0;9:1:30:0;1;2.5;9:15:45:45;2;5;9:32:15:59;3;7.5;9:50:15:12;4;10;10:5:30:0 Jane Doe;456;0;0;9:0:0:0;1;2.5;9:12:39:0;2;5;9:29:33:0;3;7.5;9:43:12:2;4;10;10:1:59:45 Bob Johnson;321;0;0;9:12:1:0;1;2.5;9:40:30:0;2;5;10:7:45:9;3;7.5;10:31:3:25;4;10;11:2:59:30 Sarah Lee;111;0;0;9:9:12:9;1;2.5;9:33:45:0;2;5;9:57:59:0;3;7.5;10:21:30:30;4;10;10:45:15:45 David Brown;222;0;0;9:15:0:0;1;2.5;10:00:0:0;2;5;10:45:0:0;3;7.5;11:30:0:0;4;10;12:15:0:0 Lucy Chen;333;0;0;9:0:0:0;1;2.5;9:7:23:0;3;7.5;9:21:45:1;4;10;9:55:15:30 Mark Davis;444;0;0;9:1:0:12;1;2.5;9:3:45:0;2;5;9:9:32:1;3;7.5;9:15:32:15;4;10;9:25:59:45 Emily White;555;0;0;9:0:30:0;1;2.5;9:10:0:0;2;5;9:27:0:0;3;7.5;9:40:30:0;4;10;10:0:0:0 Oliver Green;666;0;0;9:2:30:0;1;2.5;9:20:0:0;2;5;9:37:0:0;3;7.5;9:50:0:0;4;10;10:10:0:0
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education