Construct a solution algorithm for the following programming problems. Your solution should contain:
• a defining diagram
• a list of control structures required
• a pseudocode algorithm
• a desk check of the algorithm.
Fred’s Auto Dealership requires a program that will calculate the sales discount to be applied to a vehicle, based on its year of manufacture and type. The discount is extracted from a two-dimensional table as follows: the year of manufacture of the vehicle is divided into six categories (2006, 2005, 2004, 2003, 2002 and 2001), and the type of car is divided into five categories (mini, small, medium, full-size and luxury). No discount is given for a vehicle older than 2001.
Your program is to read the vehicle file, which contains the customer number and name, the make of car, year of manufacture, car type code (1, 2, 3, 4 or 5) and the sales price. Use the year of manufacture and the car type code as indexes to retrieve the discount percentage from the discount percentage table, then apply the discount percentage to the sales price to determine the discounted price of the vehicle. Print all vehicle details, including discounted price.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.