Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need some help getting this to work in Java. - In the main method of your driver create an ArrayList (Java) or List (C#)
I need some help getting this to work in Java.
- In the main method of your driver create an ArrayList (Java) or List (C\#) of Customer. Call the method menu passing it the arraylist/list. - In your driver class write a method called menu. It should take in an ArrayList (Java) or List (C\#) of Customers. - Print out the menu and read in the users choice (see below for exact text of menu). - If the user chooses 1 , prompt them for a name and date of birth. Insert into the ArrayList/List a new object of type NewTest with that data in it. - If the user chooses 2, prompt them for a name. Insert into the ArrayList/List a new object of type Renew with the data in it. If the user chooses 3 , prompt them for a name and the state they moved from. Insert into the ArrayList/List a new object of type Move with the data in it. - If the user chooses 4 , prompt them for a name and the nature of the violation they committed. Insert into the ArrayList/List a new object of type Suspended with the data in it. If the user chooses 5 , use a loop to print out the customers info for all customers in the queue. Note each type of customer has a getCustomerInfo method you can call, and it'll return the correct info. - The menu should keep prompting the user until they select 6. Example Runs: [User input in red] 1. Take test for new license 2. Renew existing license 3. Move from out of state 4. Answer citation/suspended license 5. See current queue 6. Quit 1 What is your name? Conor What is your date of birth? 09/09/03 1. Take test for new license 2. Renew existing licenseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started