TORONTO KIDS COMPUTER CLUB | admin
1

14 MayFriday Evening Python Homework 05.10.

Question You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today? Input Specification: The first line of input...

14 MayFriday 19:00 Philip Python Homework 05.10.

Question 1. 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: Here's your table: 5 x 1 = 5 5 x 2...

14 MayMonday Online Python Homework 05.13.

Question： Modify the program we made in the class to finish the tk window just like below and make sure no error message shows when we click the button. You may download the unfinished program from link below calculator_advanced.py...

14 MaySunday 16:00 Python Homework 05.12.

Question 1. Write a program (you need to create new file in python) that asks for your first name, then asks for your last name, and then prints a message with your first and last names in it. Sample input: First Name: Peter Last Name: Parker Sample output: My name is Peter Parker. Hint: Please...

14 MaySaturday 16:30 Python Homework 05.11.

Question 1： Write a program that does the following: Generates a random secret number between 1 and 100 (including 1 and 100). Asks the user to guess the secret number, then tell them whether they guessed too low, too high, or exactly right. Keeps the game going until...

14 MaySaturday 09:30 Python Homework 05.11.

Question: Modify the program we made in the class. Add starting screen as below, the real game will start when play click the mouse in the range of the "PLAY" button. (Scroll down for more hint) You can also download the code from the following link: fighter_program.py You can...

07 MayMonday Online Python Homework 05.06.

Question： As we mentioned in the class, please modify the code below to create simple calculator to: add addition, subtraction, multiplication and  division button and calculate accordingly check if the num1 and num2 is valid entry(has to be all digits) show "please select operation" when user...

07 MaySunday 16:00 Python Homework 05.05.

Question 1 Write a program to solve the following question: Three people ate dinner at a restaurant and want to split the bill. The total is \$35.27, and they want to leave a 15 percent tip. How much should each person pay? Hint： You can create several variables for each...

07 MaySaturday 16:30 Python Homework 05.04.

Question 1： 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: You probably used a for loop in your program in last homework. That’s how most people would do...

07 MayFriday 19:00 Philip Python Homework 05.03.

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...