Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can anyone help me understand how to write this THE LABS Lab theme: A Car Rental Company Data fields for the labs below: Data for
Can anyone help me understand how to write this
THE LABS Lab theme: A Car Rental Company Data fields for the labs below: Data for a car: VIN (17 digit String) Make (Ford, Chevrolet, Toyota, Honda) Model (String) Year of manufacture (int) Size (Compact, Sedan, SUV, Van) Data for a car renter: Customer Name Car's VIN Rental date Rate \# of days rented Options for rental cars: Gas refill option: +0 time units Fastrack toll device: +1 time unit Browse lot to choose car: +3 time units Number of drivers: +2 (Drivers-1) time units 1. Introductory lab-Java refresher with ArrayList Create a list that can hold the available cars. Put ten cars in the list. Randomly (?) add and remove them. Use OnlineShopper to see how to put data into the program. The rest of the labs should use this idea and this code instead of asking for user input. No program should be interactive unless the lab explicitly specifies that. You will need this import: import java.util.ArrayList; Instantiate the ArrayList like this: ArrayList myList = new ArrayList 0; It would be good to name the list someting else. Store something relevant to cars in the ArrayListStep 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