n this assignment you are asked to build a simple application to keep track of ca puild a "Car" class with the following private fields: model (string), year (int), cole double). Provide properties in order to access these fields. Provide a constructo an be used to populate all of the fields. Provide Getlofel) method that returns a nodel, year, color, and mileage, appropriately formatted. Also, provide a "ÇarD nanagement) class that features two static methods: şave(List), and þad() ccept a list of car objects and save their field values to a file called "carlist.txt". ead the "carlist.bxt" file and generate (and return) a list of "car" type objects po alues read from the file. The file should look like follows:
n this assignment you are asked to build a simple application to keep track of ca puild a "Car" class with the following private fields: model (string), year (int), cole double). Provide properties in order to access these fields. Provide a constructo an be used to populate all of the fields. Provide Getlofel) method that returns a nodel, year, color, and mileage, appropriately formatted. Also, provide a "ÇarD nanagement) class that features two static methods: şave(List), and þad() ccept a list of car objects and save their field values to a file called "carlist.txt". ead the "carlist.bxt" file and generate (and return) a list of "car" type objects po alues read from the file. The file should look like follows:
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question

Transcribed Image Text:BTM 380
Assignment # 2
In this assignment you are asked to build a simple application to keep track of car inventory. You should
build a "Car" class with the following private fields: model (string), year (int), color (string), and mileage
(double). Provide properties in order to access these fields. Provide a constructor with parameters that
can be used to populate all of the fields. Provide Getlotel) method that returns a string consisting of a
model, year, color, and mileage, appropriately formatted. Also, provide a "ÇarDM" (DM stands for data
management) class that features two static methods: şave(List<Car>), and Iþad(). The first one should
accept a list of car objects and save their field values to a file called "carlist.txt". The second one should
read the "carlist.txt" file and generate (and return) a list of "car" type objects populating their fields with
values read from the file. The file should look like follows:
carlist.txt - Notepad
File Edit Format View Help
Accord
Blue
2016
Passat
white
20000
2014
As a result of reading this file (as an example), a list of two car objects would be generated: one for Blue
Accord, 2016 with 0 mileage; and the second one for White Passat, 2014 with the mileage of 20000.
Your main form should look like this:
Car Management
Add Car
View Cars
Save

Transcribed Image Text:When it loads, the list of car objects should be created by reading from the above file. When Add Car
button is clicked the following screen should appear:
a Add a New Car
Model:
Year:
Çolor.
Mleage:
Cancel
Add
When the user fills out new car information and clicks "Add", the new car object is created, the form is
closed, so that the main form is shown again, and the newly created car object is added to the list of
cars. When "View cars" button is clicked, the following form shows, displaying all car objects currently in
the list (use Getlotel) function here. You will also have to send the list of cars from the main form to tis
form. To do this in the view form have a public variable for list of cars, and assign to it the list of cars
from the main form).
ag View Cars
Model: Accord, Year.20166 Year. 20166, Color: Blue, Mieage: 0
Model: Passat, Year:2014 Year: 2014, Color: White, Mileage: 20000
Close
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 10 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY