TORONTO KIDS COMPUTER CLUB | Uncategorized
1
archive,paged,category,category-uncategorized,category-1,paged-24,category-paged-24,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Uncategorized

18 Jun Aurora Thursday Java 18:00 – 06.17

Question 1 Given an array of strings as below: strArr = ["apple","banana","or","and","they","them","fighter"] Use any sorting algorithm to sort the array according to the size of the string. If the array contains multiple strings with the same length, you can order those strings in any order. Final Sorted array should...

Read More

17 Jun Aurora Thursday Java 18:00 – 06.10

Question: Input N numbers using scanner and find the Kth Smallest number in the array Sample Input 1: 10  (Hint: Value of N) 12 22 32 1 23 3 4 5 11 100 5 (Hint: Value of K) Sample Output 1: 11 (Hint: Sorted order is 1,3,4,5,11,12,22,23,32,100 so the 5th smallest number is 11) Sample Input 2: 5 (Hint: Value of N) 12 5 2 66 7 3 (Hint: Value...

Read More

14 Jun PMCA Sunday 10:00 Practice -06.13

Question: You are gathering readings of acidity level in a very long river in order to determine the health of the river. You have placed N sensors (2≤N≤2000000) in the river, and each sensor gives an integer reading R (1≤R≤1000). For the purposes of your research, you would like to...

Read More

11 Jun Tuesday 17:30 Python Homework 21.06.08.

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

Read More