question 32 Conditional Logic · easy
Gold members earn too little
A loyalty scheme gives Gold members (1000 points or more) 3 points per dollar, Silver members (500 or more) 2, and everyone else 1. A Gold member who spent 40 should earn 120 points, but the program says 80. Fix it.
Keep
points = 1200 and spend = 40 as the first lines. Check runs your program again with other membersPrints
Points earned: 120Expected output1 line
- 1Points earned: 120