Answer to Question #303343 in Algorithms for korocity

Question #303343

write an algorithm that accept TV type (CRT/LCD) from the user, if the user chooses LCD ask of the size (32/42). if it is 42 give the user a 20% discount else 5% discount if he chooses 32.


1
Expert's answer
2022-03-02T14:10:18-0500
Start
  Declare variable String TVType 
  Declare variable Integer sizeLCD
  Declare variable Real discount
  Display "Enter TV type (CRT/LCD): "
  Input TVType 
  if TVType = LCD then
      Dispay "LCD ask of the size (32/42)"
      Input sizeLCD
      if sizeLCD=32 then
         discount=5
      else
         discount=20
      End if
      Display "Discount is ", discount
  Else
      Display "No discount"
  end if
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