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-325,page-paged-325,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Blog

09 Sep PMCA Sunday 10:00 Practice -19.

Question 1: Create a Tank class which have the attributes of: name direction(use ‘up’, ‘down’, ‘left’ or ‘right’) x position and y position The class also have the following method: move (self, direction, steps) Using __init__() to Initial the tank to make sure it start from x position of 0,...

Read More

01 Sep PMCA Sunday 10:00 Practice -18.

Question: The Body Mass Index (BMI) is one of the calculations used by doctors to assess an adult’s health. The doctor measures the patient’s height (in meters) and weight (in kilograms), then calculates the BMI using the formula BMI = weight / (height * height) Write a program which...

Read More