TORONTO KIDS COMPUTER CLUB | admin
1

## 23 SepMarkham Saturday 14:00 Java Homework 20.09.19.

Question: You will be given two arrays A and B of positive integers. The number of values in both the arrays will be the same say N. Your task is to find the maximum sum of products of their elements. Each element in A has to...

## 23 SepFriday 17:00 Python Practice 20.09.18.

Question 1:(if you did not do this question last week) Draw the following picture in the pygame window: (could be different color) Hint: using pygame.draw.circle Question 2: Draw below image using pygame. (could using different color) Code to draw a rectangle is pygame.draw.rect(screen,[red,blue,green],[x,y,width,height,0]...

## 23 SepPMCA Friday 19:00 Python Homework 20.09.18.

Question:In a card game, each player's hand is made up of 13 cards. Each hand has a total point value determined by the number of cards that have a point value. The cards which are worth points are the Ace (4 points), King (3 points),...

## 18 SepAurora Wednesday 18:30 Python Practice – 04 20.09.16.

Question: A store is having a sale. They’re giving \$10 off when you purchase more than \$100. Write a program that asks the purchase price and displays the final price. Sample Input 1: Your purchase: 90 Sample Output 1: You final price is \$90 Sample Input 2: Your purchase: 120 Sample Output 2: your...

## 16 SepTuesday 17:00 Python Practice – 01 20.09.15.

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 the new value using print. Question 3 Make another...

## 16 SepAurora Tuesday 18:30 Python Practice – 06 20.09.15.

Question 1: Continue coding the program we did in the class, so the program will tell you whether you can pay in the zone: height color zone if<90 red 1 elif<105 blue 1, 2 elif <120 green 1,2,3 elif <135 yellow 1,2,3,4,5 elif <150 purple 4,5 else white 6 Please continue coding the following program: h = int(input('Height:')) if h < 90:    c = 'red' elif h < 105:   ...

## 16 SepMonday 20:00 Python Practice 20.09.14.

Question： Make a class definition for a  BankAccount. It should have attributes for : – its name (a string),– account number (a string or integer),– and balance (a float). It should have methods to: – make deposits with displaying the balance,– and make withdrawals with displaying the balance. Hint: ...

## 16 SepAurora Monday 18:30 Python Homework 20.09.14.

Problem Description Ken is working for the secret agency. He is going to send a secret message that encodes UPPERCASE words by shifting their letters forward. Shifting a letter by S positions means to go forward S letters in the alphabet. For example, shifting B by S = 3 positions gives E. However,...

## 16 SepAurora Saturday 16:30 Python Homework 20.09.12.

Question 1: Ask user to give name and marks of 10 different students. Store them in dictionary. Question 2: Count the number of occurrence of each letter in word “MISSISSIPPI”. Store count of every letter with the letter in a dictionary....

## 16 SepAurora Saturday 13:00 Python Practice 09.12.

Question: write a program to ask user about the date(year, month and day), then calculate the day of the year. Sample input： Year: 2016 Month: 6 Day: 23 Sample output： Day of the year: 175 Hint: You need consider leap years and non leap years, in order to do easier calculation, you may...