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.
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
Comments
Leave a comment