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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

 

cars.txt - Notepad
File Edit Format View Help
320, Volvo S60 D4,2017,51070,366950
321, BMW X6,2018,5234,900500
322, Audi A1 Sportback, 2017,23328,259995
323, Lexus RX 350 Xe,2020,162000,219950
324, VW Polo, 2016,100500,109990
Ln 1, Co 100% wWindows (CRLF)
UTF-8
Figure 2- Cars file
Transcribed Image Text:cars.txt - Notepad File Edit Format View Help 320, Volvo S60 D4,2017,51070,366950 321, BMW X6,2018,5234,900500 322, Audi A1 Sportback, 2017,23328,259995 323, Lexus RX 350 Xe,2020,162000,219950 324, VW Polo, 2016,100500,109990 Ln 1, Co 100% wWindows (CRLF) UTF-8 Figure 2- Cars file
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Software products
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education