C++ Program Assignment | Homework For You

Problem: Write a C++ program that will allow a user to access the results from a time-trial bike race. The race consists of laps around a 6.1 mile course, and the racers try to complete as many laps as they can within 6 hours. Only complete laps count. Your program will read in the race results from a file and display the data in the format requested. Your program will be provided with a dataset in a file containing the following information for each racer:Homework For You
1) Bib number – a positive integer
2) Racer’s name – a string (may include spaces)
3) Distance covered by the racer (equal to the number of laps completed times 6.1) 3) Recorded time – a string in “05:23:32” format The number of laps is not provided and does not need to be computed. The program should first read the results from a text file named “dataset.txt”. It will contain up to 100 results. See the sample file on the class website. Then, it should offer the user a menu with the following options:
1. Display Results sorted by bib number
2. Display Results sorted by distance, then time
3. Lookup a bib number given a name
4. Lookup a result by bib number
5. Quit the Program The program should perform the selected operation and then re-display the menu. Do not change the menu numbers associated with the operations.
Display an error message if the user enters an inappropriate number. For options 1 and 2, display the results for each racer on a single, separate line. The results should include the Bib number, the name, the distance, the time, and the average speed in miles per hour (distance/time in hours). The values should line up in columns (use setw). Headers for the table are optional. For options 3, output the bib number with a label, and for option 4, output the results for the racer on a single line. For options 3 and 4, if the racer is not found display an appropriate message. Get Computer Science homework help today

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Calculate the price
Make an order in advance and get the best price
Pages (550 words)
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Homework Writing Services
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Healthcare & Medical
Good work
Customer 463469, October 22nd, 2022
English 101
Good response. Next time, properly capitalize headings in the requested style.
Customer 460641, March 30th, 2022
Customer 463869, May 25th, 2023
i requested peer reviewed nursing journals as part of my paper, however, I never received them after I requested them twice. If I had received these journals, I would have scored the quality of the paper an 10/10!!!
Customer 461063, October 30th, 2022
Customer 463647, April 28th, 2023
This paper was beautifully written, and I am truly thankful to customer service for ensuring that I received a quality paper.
Customer 452455, May 19th, 2023
Thank you for the beautifully written paper and amazing customer service.
Customer 452455, May 26th, 2023
Good work. Looking foward to future contributions.
Customer 463463, October 29th, 2022
Good work.
Customer 456821, June 22nd, 2022
Customer 462657, March 6th, 2022
Computer science
Didn't find until the last minute that I needed to pay extra money for an extra page, which caused my stuff to be turned in late...
Customer 452515, March 25th, 2020
I'm beyond grateful for this paper to be completed on time. I recently had a major surgery on my chest and sternum and was in so much pain and didn't want to fail from one paper. The work is awesome!!!! Very knowledgeable and informative, just excellent.
Customer 454165, March 17th, 2020
Customer reviews in total
Current satisfaction rate
3 pages
Average paper length
Customers referred by a friend
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat