TORONTO KIDS COMPUTER CLUB | Blog
1815
paged,page-template,page-template-blog-large-image,page-template-blog-large-image-php,page,page-id-1815,paged-304,page-paged-304,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

03 Jan TCMS 18:30 Python Homework 20.01.02.

Question 1. Write a program to ask how many people. If there are more than 8 people, print message "No available seats", otherwise print message "Seats are available" Sample input 1: How many people: 10 Sample output 1: No available seats Sample input 2: How many people: 6 Sample output 2: Seats are available Question...

Read More

17 Dec PMCA Sunday 10:00 Practice -32.

Question: Please modify the fraction class we made in the class by adding a method called add(). The method will take 2 arguments top and bottom like: def add(self, top, bottom): so the fraction object can add another fraction top and bottom number, such as: a = Fraction(3, 5) a.add(1,...

Read More

13 Dec Christmas Contest

Question 1: Santa Claus is playing card game with his reindeer to decide which route he's going to take to send out the gifts. He is going to play six games. There are no ties. The gift route will be decided based on the results of...

Read More

11 Dec PMCA Sunday 10:00 Java Homework 12.08.

Question: Using function or object method to write a program to return the number of times that the string “code” appears anywhere in the given string, except we’ll accept any letter for the ‘d’, so “cope” and “cooe” count. For example: ‘aaacodebbb’ will have 1 “code” ‘codexxcode’ will have 2 “code” ‘cozexxcope’...

Read More