TORONTO KIDS COMPUTER CLUB | admin
1

## 13 AugAurora Tuesday 10:30 Python Homework 21.08.10.

Question 1： Create a Tank class which have the attributes of: model direction(use ‘up’, ‘down’, ‘left’ or ‘right’) x position and y position The class also have the following method: move () method can change the x or y position by 10 base on the tank's direction....

## 13 AugAurora Monday 18:30 Python Homework 21.08.09.

Question: Continue modify the program we made in the class: create Energy class. A new energy crystal object will be created when the enemy spaceship explode use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will...

## 13 AugSummer Camp 2021 Python Homework 13:30 – week 06 1-3

Question 2: 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...

## 13 AugPMCA Sunday 10:00 Practice -08.08

Question: Suppose you have to evaluate an expression like A*B*C*D*E where A,B,C,D and E are matrices. Since matrix multiplication is associative, the order in which multiplications are performed is arbitrary.  However, the number of elementary multiplications needed strongly depends on the evaluation order you choose. For example,...

## 13 AugAurora Saturday 14:30 Python Practice 21.08.07.

Question: (Hint: you could use stack to solve the question) There is a famous railway station in PopPush City. Country there is  incredibly hilly. The station was built in last century. Unfortunately, funds were extremely limited that time. It was possible to establish only a surface...

## 11 AugPMCA Sunday 14:00 Python Homework 21.08.08.

Question: Continue with the code in the last class. Make sure when you move the circle out of the screen from the left side, the circle should enter again from the right side. Also, when the circle moves out of the screen from the top, the...

## 11 AugPMCA Saturday 18:30 Python Homework 21.08.07.

Question: Use the classes we created in the previous class, write code to create an average stack, the average stack should contain the average of all the numbers in the stack including the top number. This is similar to MinMaxStack, but instead of a minimum and maximum...

## 11 AugPMCA Saturday 17:00 Python Homework 21.08.07.

Question: Write a program that asks for the dimensions (in feet) of a rectangular room, and then calculates and displays the total amount of carpet needed to cover the room....

## 11 AugMarkham Saturday 14:00 Java Homework 21.08.07.

Question: Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding the minimum and maximum salary. Example 1: Input: salary = [4000,3000,1000,2000] Output: 2500.00000 Explanation: Minimum salary and maximum salary are 1000 and 4000 respectively. Average salary excluding minimum...

## 10 AugAurora Tuesday 10:30 Python Test 21.08.10.

1. What is the output of print mystr * 2 if mystr = 'Hello World!'? A. Hello World * 2 B. Hello World! Hello World! C. Hello Hello D. mystr mystr2. Which of...