Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Visual Studio Code, C# You will create a program that allows an employee of a rental car agency to create an inventory of cars and

Visual Studio Code, C#

image text in transcribedimage text in transcribedimage text in transcribed

You will create a program that allows an employee of a rental car agency to create an inventory of cars and manage them. The application will allow the employee to find cars, manage cars, and create a rental transaction for a customer. 1. Implement the MVC Design Pattern: a) Create classes to represent the necessary components for this program. You will need to create an instance of these classes and use them in the Form classes. When you write these classes, keep in mind that the classes should be written so that it can be used in any other program regardless of the user interface. This means you shouldn't rely on GUI controls in these classes. The methods of these classes are passed any inputs the methods of the classes that require them and deliver any output that the GUI will display on its own. 2. Create a form to allow the employee to add cars to the inventory: a) The new car form needs controls to allow the user to enter information for a car that will be added to the rental agency's inventory of cars. This form will add a new car to a collection of cars managed by the application. b) Add form controls for the user to enter the car's category (economy, luxury, sport, SUV, van, pickup, etc...), car manufacturer, model of car, year, mileage, rental cost per day, availability (rented or available), description, location on the lot (parking spot), and an image. c) Add a drop-down box or radio button group to allow the user to select the car's category. d) The product's image will simply involve a string containing the URL of an image on the Web. You can load an image into a PictureBox from an URL: PictureBox.Load(theUrIString); e) Add a button to allow the user to store the new car in the inventory. The store operation will involve creating an object that represents a car with the form data and store the item in a collection managed by the program. f) Add a button to allow the user to view all cars in their inventory. This button should redirect the user to a form that contains search tools and controls that display the list of cars and information for them. 3. Create a rental car display form: a) This form will allow a user to view the entire inventory of rental cars and the cars' information. The items that are displayed will come from the collection of cars managed by this application. b) Allow the user to view all cars in the inventory. Display summary information like the car manufacturer, model of car, category, availability, and price per day. The detailed information for the car should be displayed when a user selects a car from the list and chooses to see more detailed information for the car. i. When the user selects a car from the inventory list, the program must display all the information for that car including the image. ii. You should use a ListView control with multiple columns to handle the display, but feel free to experiment with other controls for this display. c) The form must contain a search tool that allows the user to select a car based on the category, find all cars that match the criteria and are still available for rent, and display the cars along with their summary information. d) Extra credit: include at least two more searches of your choosing, which can allow the user to search for items based on other criteria. 4. Save \& Restore the rental car inventory: a) When the program exits, the program must save the car inventory (collection of cars) to a text file. You will need to save enough data to recreate the car with all the car data the next time the program runs. b) When the program starts, the program must use the previously save text file to create the rental car inventory with all the cars and their information. If the text file doesn't exist, then you should create an empty collection. c) You should find the appropriate form events to save and restore the collection. 5. Rent a car: a) Allow the user to rent a car and record the transaction. i. Allow the user to enter customer information like contact information, driver license information, and insurance information. ii. Allow the user to select a car they wish to rent and the number of days for the rental. iii. Create a rental transaction object that contains all the customer information, the current date of the rental, the current time for the rental, cost, etc.... iv. Calculate the total cost for the rental with tax and display a receipt for the rental transaction on a separate form. The receipt should include the car the user selected for rental, subtotal before tax, tax amount, and the total cost. 6. Return a car: a) Allow the user to return a car, which changes the car's availability. b) Allow the user the ability to note any damage found, and update the mileage of the car. 7. You need to properly name all your controls, variables, the class, and all other elements regarding this project. See the lecture slides on Coding Style. Also, you need to put thought into the user interface design, so it can be used by anyone with little effort. This means that there should be clear

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions