/fastestRacers

Java 8 API

Primary LanguageJava

There are 2 log files start.log and end.log that contain start and end data of the best laps for each racer of Formula 1 - Monaco 2018 Racing. (Start and end times are fictional, but the best lap times are true). Data contains only the first 20 minutes that refers to the first stage of the qualification.

Q1: For the first 20 minutes (Q1), all cars together on the track try to set the fastest time. The slowest seven cars are eliminated, earning the bottom grid positions. Drivers are allowed to complete as many laps as they want during this short space of time.

Top 15 cars are going to the Q2 stage. If you are so curious, you can read the rules here https://www.thoughtco.com/developing-saga-of-formula1-qualifying-1347189

The third file abbreviations.txt contains abbreviation explanations.

Task : read data from 2 files, order racers by time and print report that shows the top 15 racers and the rest after underline, for example:

  1. Daniel Ricciardo | RED BULL RACING TAG HEUER | 1:12.013
  2. Sebastian Vettel | FERRARI | 1:12.415
  3. ...

  1. Brendon Hartley | SCUDERIA TORO ROSSO HONDA | 1:13.179
  2. Marcus Ericsson | SAUBER FERRARI | 1:13.265
  3. ...