Answer to Question #269449 in Algorithms for Bjoy

Question #269449

Write an algorithm that will ask for a price. If the price is greater than 1000, compute a 10% discount from the original price and 5% discount for 1000 and below. Display the computed discount.

1
Expert's answer
2021-11-21T04:49:04-0500
Start
    Declare variable price
    Declare variable discount 
    Read price 
    if price > 1000 then
       discount =price * 0.1
    else
       discount =price * 0.05
    end if    
    Display discount
Stop

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