Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021) 1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo (see Figure 1). 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 be created and stored in an ListBox with the details and clicks the “ ArrayList Add Car ” button, a new Car object must . At the same time, a method must update the inventory and the car number. This will allow the user to select a n inventory number details will be displayed in the textboxes. Ensure that only numerical values are entered for the Year, Milea ge and Price . Figure 2 below shows a successful car details: addition of the Figure 2 Car Details AddedB11Assignment Block 1 2021 | V1.0 Page 7 of 13 ITCPA2 A user should be able to add more cars the Add Car and their inventory numbers button. The application should have a “Remove Car to the ListBox using ” button, which will remove the car selected from the ListBox . When a new noneither the year, mileage or price numerical number is entered for , the application should display a message to the user informin g them of this as shown in Figure 3 below: Figure 3When a nonnumerica l number is enteredB11Assignment Block 1 2021 | V1.0 Page 8 of 13 ITCPA2 When the Remove Car is clicked and there are no items in the ListBox must be displayed to the user to inform them of this. This is as , a n error message shown in Figure 4 below: Figure 4When the listbox is emptyB11Assignment Block 1 2021 | V1.0 Page 9 of 13 ITCPA2 The application should also have a menu, with submenu options: About and Exit. The About menu should show the application’s developer name as well as the date the application was develop ed shown below: Figure 5About BoxB11Assignment Block 1 2021 | V1.0 Page 10 of 13 ITCPA2 When the Exit menu option is clicked, it should display a confirmation dialog box where the user has to confirm whether or not they would like to terminate the application: Figure 6 – Confirmation Dialog Box When Yes is clicked, the application must terminate, but when No is clicked, the application must remain open. (75 Marks) 1.2 Mention five things that you can include in the application to improve its functionality. (5 Marks) Once you are done with the assignment, zip and upload all your code, together with the assignment documentation.
Study the scenario and complete the question(s) that follow: MotorHub Inventory Application MotorHub is a new and upcoming car dealership based in South Africa. They will be selling new and second-hand cars of all types. When they receive stock of a new car to sell, they fill in an inventory form that consists of the car details, such as car model and year of manufacture. This is a tedious process as it involves a lot of paperwork. The MotorHub management have decided to digitise this process by implementing an application that will be used for the inventory process instead of the traditional paper process that they have been using. You have been contacted by the management team to assist them in developing this application. Source: Makura S.M (2021)
1.1 Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub Car Inventory App”. It must consist of a car logo (see Figure 1). 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 be created and stored in an ListBox with the details and clicks the “ ArrayList Add Car ” button, a new Car object must . At the same time, a method must update the inventory and the car number. This will allow the user to select a n inventory number details will be displayed in the textboxes. Ensure that only numerical values are entered for the Year, Milea ge and Price . Figure 2 below shows a successful car details: addition of the Figure 2 Car Details AddedB11Assignment Block 1 2021 | V1.0 Page 7 of 13 ITCPA2
A user should be able to add more cars the Add Car and their inventory numbers button. The application should have a “Remove Car to the ListBox using ” button, which will remove the car selected from the ListBox . When a new noneither the year, mileage or price numerical number is entered for , the application should display a message to the user informin g them of this as shown in Figure 3 below: Figure 3When a nonnumerica l number is enteredB11Assignment Block 1 2021 | V1.0 Page 8 of 13 ITCPA2
When the Remove Car is clicked and there are no items in the ListBox must be displayed to the user to inform them of this. This is as , a n error message shown in Figure 4 below: Figure 4When the listbox is emptyB11Assignment Block 1 2021 | V1.0 Page 9 of 13 ITCPA2
The application should also have a menu, with submenu options: About and Exit. The About menu should show the application’s developer name as well as the date the application was develop ed shown below: Figure 5About BoxB11Assignment Block 1 2021 | V1.0 Page 10 of 13 ITCPA2
When the Exit menu option is clicked, it should display a confirmation dialog box where the user has to confirm whether or not they would like to terminate the application: Figure 6 – Confirmation Dialog Box When Yes is clicked, the application must terminate, but when No is clicked, the application must remain open. (75 Marks) 1.2 Mention five things that you can include in the application to improve its functionality. (5 Marks) Once you are done with the assignment, zip and upload all your code, together with the assignment documentation.
Step by step
Solved in 2 steps