Question
Make a Console Application in Visual Studio using C# and name it as A1YourFirstnameLastname. 2. Implement a vehicle rental management system which is capable of
Make a Console Application in Visual Studio using C# and name it as A1YourFirstnameLastname.
2. Implement a vehicle rental management system which is capable of doing the following:
- View all, available and reserved vehicles.
- Reserve vehicle or cancel a reservation.
3. The application must be menu-based app: 1 - View all vehicles 2 - View available vehicles 3 - View reserved vehicles 4 - Reserve a vehicle 5 - Cancel reservation 6 - Exit 4. : At no point should the application save any information to disk. All information is stored and managed in memory using a collection. The use of collections and the object-oriented design of the solution are an important part of the evaluation of your submission.
5. The rental company has inventory of cars and motorcycles. • There are four categories of cars: Hatchback, Sedan, SUV, Sports • And three categories of motorcycles: Cruiser, Sports, Dirt • There are two types of cars: o Standard – a normal car o Exotic – expensive sports car • And two types of motorcycles: o Bike – a standard two-wheeler motorcycle o Trike – a three-wheeler motorcycle
6. Create classes to represent Car and Motorcycle.
7. These classes must inherit from parent class Vehicle.
8. These vehicles must have following fields: ID, Name, Rental Price, Category, Type, Is Reserved
9. Use your Java and object-oriented programming knowledge to create this hierarchy.
10. The application should keep track of available and reserved vehicles using the most appropriate generic collection.
11. Use LINQ to display all, available and reserved vehicles.
12. Your knowledge of object-oriented programming will play an important role in evaluation. • You will get higher grades if: o Proper use of inheritance o Interface is user-friendly o Used LINQ to display vehicles o App menu runs smoothly without crashing • Otherwise, there will be grade deductions.
13. The menu should run continuously until the user quits the application.
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
Step: 1
Below is a simple implementation of the vehicle rental management system in C using Visual Studio using System using SystemCollectionsGeneric using SystemLinq Base class for vehicles class Vehicle pub...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started