XYZ auto dealership is asking you to write a program that will keep track of their vehicle information and calculate the sales discount on vehicles. There are a maximum of 50 vehicles. For each vehicle the program should prompt the user for the make, model, body style, year of the manufacture and price of the vehicle. Vehicle’s body style needs to be one of the following: {Small, Medium, Full size, Luxury}. The sales discount for a vehicle should be computed based on the it’s body style and the year of manufacture as given in the table below. No discount is given if the vehicle is older than 2010.
Year of Manufacture
Body Style
Small
Medium
Full Size
Luxury
2015
6.2%
6.5%
10%
7.2%
2014
2.7%
4.5%
5%
6%
2013
8.4%
3.9%
4.5%
5%
2012
4.6%
2.9%
3.3%
4.5%
2011
8.2%
2.5%
3%
3.5%
2010
8%
2.0%
2.5%
5%
You need to create a modular solution that will repeatedly prompt the user for all the vehicles information until the user is finished. You must store the table in your program using a multi-dimensional Array. Then, calculate the discount amount and discounted sales price for the vehicles by retrieving information from the array. Your program must allow the user to search vehicles by make and year of manufactures. For example, if you search by make and user input is "Toyota", then the program will show you all the Toyota vehicles with their models, year of manufactures, discounts and sales price.
At the end, the program should generate a well-formatted report containing all the vehicles details including the discounted price. The report should also include total vehicles and total discount amount over all the vehicles.