Answer to Question #151273 in Algorithms for Salman ahmad

Question #151273
a person went to the showroom to buy a car. he asked the shopkeeper about the latest car model company colour and price.the shopkeeper told him about three different new cars with their details.however the shopkeeper said if he buys the car#1he will get 10% off on full payment .whereas the car#2 and car#3 are available on the installment for 5%and 7%off on both of them respectively.he test drove all three of them and after testing he bought one of them which is the cheapest of all has a black colour and available of installment pesdocode
1
Expert's answer
2020-12-15T08:45:41-0500

Pseudo-code for the given condition:

  1. Customer check the available option(car model, color, price and description).
  2. Switch case

i) case: #car1

Discount of 10% off on full payment.

ii) case: #car 2

Available for installment of 5% off

iii) case: #car3

Available for installment of 7% off

break switch case.

3. Test drive: #car1, #car2, #car3

4. Selected default color Black


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS