Create a C# application for MotorHub using Visual Studio. The application must allow the user to enter the car details and store them. Your application must consist of a class for handling the car details. The car details that you need to capture are the Inventory Number, Name, Model, Year, Mileage and Price. The class must also consist of a default constructor which initialises the public properties. The class must also contain a constructor which sets the properties to values received from the main form. The application should accept values from a user which will be typed into the textboxes.

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...
icon
Related questions
Question

Create a C# application for MotorHub using Visual Studio. The application must allow the user to enter the car details and store them. Your application must consist of a class for handling the car details. The car details that you need to capture are the Inventory Number, Name, Model, Year, Mileage and Price. The class must also consist of a default constructor which initialises the public properties. The class must also contain a constructor which sets the properties to values received from the main form. The application should accept values from a user which will be typed into the textboxes.

 

When a user enters the car details and clicks the “Add Car” button, a new Car object must be created and stored in an ArrayList. At the same time, a method must update the ListBox with the inventory number. This will allow the user to select an inventory number and the car details will be displayed in the textboxes. Ensure that only numerical values are entered for the Year, Mileage and Price. 
A user should be able to add more cars and their inventory numbers to the ListBox using the Add Car button. The application should have a “Remove Car” button, which will remove the car selected from the ListBox. When a new non-numerical number is entered for either the year, mileage or price, the application should display a message to the user informing them of this.

When the Remove Car is clicked and there are no items in the ListBox, an error message must be displayed to the user to inform them of this. 

// Can you please read the question carefully because i'm sending this question for the second time, because the first solution was no where close to being correct-it did not even contain an array, a method to update the listbox and an error message if a user entered a non numeric answer in the text box for mileage, price and price.

 

Motortub Car inventory App
Menu
Welcome to MotorHub Inventory App
Inventory Namber
INVO)
herty Nanter N201
Car Niame
Vagen
Car Madel
Pale
Year
2015
ege
55000
Pce and
170000
Add Ca
Remove Car
Transcribed Image Text:Motortub Car inventory App Menu Welcome to MotorHub Inventory App Inventory Namber INVO) herty Nanter N201 Car Niame Vagen Car Madel Pale Year 2015 ege 55000 Pce and 170000 Add Ca Remove Car
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY