TORONTO KIDS COMPUTER CLUB | admin
1

## 23 MarAurora Saturday 14:30 Python Homework 20.03.21.

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

## 23 MarMarkham Saturday 9:30 Python Homework 20.03.21.

Question:Create a Time class and initialize it with hours and minutes. Make a method addTime which should take two time object and add them. E.g.- (2 hour and 50 min)+(1 hr and 20 min) is (4 hr and 10 min) Make a method displayTime which should print...

## 23 MarPMCA Friday 19:00 Python Homework 20.03.20.

Question 1:Write a function buildTree that returns a tree using the nodes and references implementation (BinaryTree class) we learned in the class that looks like this:: ...

## 20 MarPMCA Sunday 16:00 Python Homework 20.03.15.

Question： Use TKinter to create following window with three buttons: the “blue” button will print “blue” in the python shell screen the “red” button will print “red” in the python shell screen if left mouse button click the “color” button will print “blue” in the python...

## 20 MarPMCA Sunday 12:00 Java Homework 20.03.15.

Question: Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Subarray is a small part of the array. For e.g. for array {2,3,4} is a subarray of the array {1,2,3,4,5} while array{1,3,5 } is not...

## 20 MarPMCA Sunday 10:00 Java Homework 20.03.15.

Question： Canada Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our space. A person who witnessed the appearance of the alien has come forward to describe the alien’s appearance. It is your role within the CCC to...

## 20 MarPMCA Sunday 09:00 Python Homework 20.03.15.

Question: Create the following * pattern image base on your input Hint: Remember when we multiply a string by a number, the string is repeated the number times. >>> '*' * 10 '**********' Also you would need 2 for loops to solve the question Sample Input 1: 3 Sample Output 1: *** ** * * ** *** Sample Input 2: 5 Sample Output...

## 20 MarPMCA Saturday 18:30 Python Homework 20.03.14.

Question: The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits alternately by 1’s and 3’s (see example)...

## 20 MarMarkham Saturday 15:30 Python Homework 20.03.14.

Question: The International Standard Book Number (ISBN) is a 13-digit code for identifying books. These numbers have a special property for detecting whether the number was written correctly. The 1-3-sum of a 13-digit number is calculated by multiplying the digits alternately by 1’s and 3’s (see example)...

## 20 MarMarkham Saturday 14:00 Java Homework 20.03.14.

Question: Write code to reverse a string using recursion: Sample Input 1: Apple Sample Output 1: epplA Sample Input 2: Orange Sample Outpute 2: egnarO...