Question: Write an algorithm (in pseudocode) for this situation: if you spend more than $200, you get a 20 percent discount. If you spend less than
Write an algorithm (in pseudocode) for this situation: if you spend more than $200, you get a 20 percent discount. If you spend less than $200 but more than $100, you get a 10 percent discount. The user inputs their spending total, and the program tells them if they get a discount and, if so, what percentage the discount will be.
Write a Python program that includes four variables in it; their values will be 10, 40, 70, and 90. Then, print out the sum of the first two numbers and the sum of the second two numbers.
Your soccer team is holding a raffle as a fundraiser. The team has sold 1,203 raffle tickets. Write a Python program that generates five random winning ticket numbers.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
