Question: In Java import java.util.Scanner; public class RaceDriver { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); System.out.print(Please enter how many Skater you
In Java

![main(String[] args) { Scanner stdIn = new Scanner(System.in); System.out.print("Please enter how many](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f5a73b80e06_16266f5a73ad0a57.jpg)




import java.util.Scanner;
public class RaceDriver { public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in); System.out.print("Please enter how many Skater you want to enter:"); SkateRace sRace = new SkateRace(stdIn.nextInt());
System.out.println("Welcome to Skate Race Program ");
//toDo }
private static void phase1(Scanner stdIn, SkateRace sRace) {
//ToDO
}
private static void phase2(Scanner stdIn, SkateRace sRace) {
//ToDO }
protected static Skater findLeader(SkateRace sRace) {
//ToDO }
private static void phase3(Scanner stdIn, SkateRace sRace) {
//ToDO
} }
public class Skater { //ToDO }
public class SkateRace {
//ToDO public void removeSkater(String name) { for (int i = 0; i
break; } } }
}
2 Program tasks You will write a program that keeps track of the race results and can print reports of the standings at any time (you can use the toString method in SkateRace to return a string that represents the current stand- ing). UML diagrams for your classes appear below. Notice that the SkateRace class holds an Array of Skaters. Your program should ask the user to enter how many skators he wants to enter. The program then will have three phases: 1. The first phase corresponds to the first half of the race. Your program will read in the name, State, and first race time for a series of skaters. After each entry, your program will print the current leader (the skater who has the lowest time in the array so far The phase will end once the user enters all the skaters in to the array. The complete standings will be printed along with the leader who has the lowest race time(assume each racer has a unique race time 2. The second phase corresponds to the second half of the race. The program will read in the name and second race time of the skaters and print the leader after each update. The phase will end once the user done updating and the complete standings will be printed. 3. In the third phase, your program will read in the names of any skaters that have been disqualified and remove them from the race. Your program will also print the overall standings at the end of the race
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
