Question: CODE IN JAVA Write a program named GPWins that stores and retrieves the names of Grands Prix won by F1 drivers in 2020. Initialize parallel
CODE IN JAVA

Write a program named GPWins that stores and retrieves the names of Grands Prix won by F1 drivers in 2020. Initialize parallel arrays with the following information (i.e., hardcore the data upon initialization): Driver Wins Hamilton Germany, Canada, Mexico, Singapore Verstappen Canada, Austria, France, China Perez Bahrain Norris Russia, Australia Sainz Spain, Vietnam Chandhok Brazil Ocon Belgium, Italy a) Prompt the user to enter a driver's name and display the corresponding list of grand prix wins. Inform the user if their input does not exist in the list. The driver's name should not be case sensitive Sample output: System: User: System: Enter a driver name: Hamilton Germany Canada Mexico Singapore b) Prompt the user for n and display the nth G.P. win of that driver, if applicable. Assume that the wins are listed in chronological order. Sample output 1: System: User: System: Enter n (1 - 7): 11 Win #1: Hamilton: Germany Verstappen: Canada Perez: Bahrain Norris: Russia Sainz: Spain Chandhok: Brazil Ocon: Belgium Sample output 2: System: User: System: Enter n (1 - 7): 3 Win #3 Hamilton: Mexico Verstappen: France
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
