), and Iþad(). The first one shouldaccept a list of car objects and save their field values to a file called "carlist.txt". The second one shouldread the "carlist.txt" file and generate (and return)...


BTM 380<br>Assignment # 2<br>In this assignment you are asked to build a simple application to keep track of car inventory. You should<br>build a ), 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 "/>
Extracted 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), 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
When it loads, the list of car objects should be created by reading from the above file. When Add Car<br>button is clicked the following screen should appear:<br>a Add a New Car<br>Model:<br>Year:<br>Çolor.<br>Mleage:<br>Cancel<br>Add<br>When the user fills out new car information and clicks

Extracted 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
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here