Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
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