TORONTO KIDS COMPUTER CLUB | admin
1

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

## 07 AugAurora Wednesday 18:30 Python Practice 21.08.04.

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

## 07 AugAurora Tuesday 10:30 Python Homework 21.08.03.

Question: A common problem in mathematics is to determine which quadrant a given point lies in. There are four quadrants, numbered from 1 to 4, as shown in the diagram below: For example, the point A, which is at coordinates (12, 5) lies in quadrant 1 since...

## 07 AugSummer Camp 2021 Python Homework 16:30 – week 01

You could do the following homework using IDLE  Question 1 Make a variable and assign a number to it (any number you like). Then display your variable using print. Question 2 Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display...