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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started