TORONTO KIDS COMPUTER CLUB | Aurora Wednesday Saturday Python Homework 20.04.08.
17321

# Aurora Wednesday Saturday Python Homework 20.04.08.

## 09 Apr Aurora Wednesday Saturday Python Homework 20.04.08.

Question 1:

A store is having a sale. They’re giving 10 percent off purchases of \$10 or lower, and 20 percent off purchases of greater than \$10. Write a program that asks the purchase price and displays the discount (10% or 20%) and the final price.

Question 2:

A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program to ask the user’s age and if male or female (using “m” or “f”). Display a message indicating whether the person is eligible to play on the team.

Question 3:

Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:

Sample Input:

Which multiplication table would you like? 5

Sample Output:

5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50