Question: Assignment Description: Read the program requirements below, design the logic for solving it , and document this logic by creating or developing a flowchart for
Assignment Description:
Read the program requirements below, design the logic for solving it and document this logic by creating or developing a flowchart for it
A car dealer, faced with market competition, is planning to discount both its new cars and used cars. The new cars will be discounted by discount rate and the used cars by There are over cars, the program needs to determine the number of new cars and the number of used cars, and accordingly to compute the average discount amount for new cars and separately the average discount amount for used cars. The program needs to display the number of new cars and their average discount amount, and the number of used cars and their average discount amount.
The basic solution procedure involves:
A Read the car type and price of the current car.
B Determine the discount rate applicable to this car based on whether it is new or used
C Compute the discount amount by multiplying the discount rate percent by the price
D Increment the number of new or used car, and total discounted amount accordingly
E Repeat steps A B C for eachall cars
F Compute the average discount amounts for new cars and used cars based on step D
G Display both the number of cars and the average discount amount for both car types, new and used.
Required:
Design and develop a flowchart to describe the logic of the solution above, using any drawing tool.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
