Problem

Construct a solution algorithm for the following programming problems. Your solution sho...

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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 7
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT