Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago