WeBuyCars is car dealership in South Africa. They buy cars from customers and sell them as well. You have been hired as the Java developer for WeBuyCars and you have been provided with a text file called cars.txt containing five cars up for sale by WeBuyCars. Below/attached is a screenshot of the text file: The WeBuyCars software development division has given you the following information to explain what each section of the text file (separated by commas) entails: (i) Car ID (ii) Car Name e.g Volvo S60 (iii) Car Year of Manufacture e.g 2017 (iv) Car Mileage e.g 51070km (v) Car Price e.g R366 950
Study the scenario and complete the question(s) that follow:
WeBuyCars is car dealership in South Africa. They buy cars from customers and sell them as well. You have been hired as the Java developer for WeBuyCars and you have been provided with a text file called cars.txt containing five cars up for sale by WeBuyCars. Below/attached is a screenshot of the text file:
The WeBuyCars software development division has given you the following information to explain what each section of the text file (separated by commas) entails:
(i) Car ID
(ii) Car Name e.g Volvo S60
(iii) Car Year of Manufacture e.g 2017
(iv) Car Mileage e.g 51070km
(v) Car Price e.g R366 950
Develop a Java program for WeBuyCars using the information provided in thescenario above. The program must consist of a class called Car to handle the car details. The program should read the car details from the cars.txt file, and then use a LinkedList to store the car details.
Step by step
Solved in 4 steps with 1 images