TORONTO KIDS COMPUTER CLUB | Thursday Online
108

# Thursday Online

## 28 AugThursday Online Python Homework 08.22

Question: please read question and try to understand it. Then the sample of input, output and explaination of output will help you a lot. Problem Description: You decide to go for a very long drive on a very straight road. Along this road are five cities. As you...

## 21 AugThursday Online Python Homework 08.15

Question: Write a Python class to find the three elements that sum to zero from a set of n real numbers. Hint for the second solution: three-nums-sum-solution2-hint...

## 06 AugThursday Online Python Homework 08.01

Question: Write a Python class to find the three elements that sum to zero from a set of n real numbers. Input Sample: -25, -10, -7, -3, 2, 4, 8, 10 Output Sample: [-10, 2, 8], [-7, -3, 10]...

## 16 JulThursday Online Python Homework 07.11

Question: We often include emoticons in our text messages to indicate how we are feeling. The three consecutive characters :-) indicate a happy face and the three consecutive characters :-( indicate a sad face. Write a program to determine the overall mood of a message. Input Specification There will...

## 07 JulThursday Online Python Homework 07.04

Question: Troy loves triangles. He especially likes counting triangles. He has an N-by-N grid consisting of either “.” or “#” characters. Help him count the number of triangles formed only by “#” characters in the grid. Triangles are of the form More formally, a triangle of height h...

## 02 JulThursday Online Python Homework 06.27

Question: Problem Description You are trying to pass the time while at the optometrist. You notice there is a grid of four numbers: 1 2 3 4 You see lots of mirrors and lenses at the optometrist, and wonder how flipping the grid horizontally or vertically would change the grid. Specifically, a...

## 24 JunThursday Online Python Homework 06.20

Question 1 We are going to continue to work on the 'hero.db' database. Since we have already created a table called "heroes" in the database, we are going to add 2 more records in the table "heroes": Field name hero_level int_growth agi_growth str_growth hero_int hero_agi hero_str New record 1 Hercules 1 3.6 6 9.9 270 150 140 New record 2 Blade 1 10 18.5 14.5 40 28 39 Question 2: From all the records in...

## 10 JunMonday Online Python Homework 06.06

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

## 03 JunMonday Online Python Homework 05.30.

Question 1： Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file, each one on a separate line. Question 2： Write a program that asks the user to enter his/her favorite book...

## 27 MayMonday Online Python Homework 05.23.

Question： Important!!!! Please read question through carefully, if you have any questions, please do not hesitate to contact me through weChat. The problem solving thinking of this question will help you understand future computer competition questions.  You and your friend have come up with a way to...