Answered step by step
Verified Expert Solution
Link Copied!

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 5%(discount rate), and the used cars by 10%. There are over 100
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 each/all 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Complexity of linear search is O ( n ) . Your answer: True False

Answered: 1 week ago

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago