Aurora Saturday 14:30
Home > Aurora Saturday 14:30 (Page 9)
Question:
You need to paint a wooden fence between your house and your neighbour’s house. You want to determine the area of the fence, in order to determine how much paint you will use.
However, the fence is made out of N non-uniform pieces of wood, and...
Question:
A school team is trying to assign jerseys numbered 1,2,3,…,J to student athletes. The size of each jersey is either small (S), medium (M) or large (L).
Each athlete has requested a specific jersey number and a preferred size. The athletes will not be satisfied with...
Question:
You would like to do some experiments in natural language processing. Natural language processing (NLP) involves using machines to recognize human languages.
Your first idea is to write a program that can distinguish English text from French text.
After some analysis, you have concluded that a very...
Question 1:
Jack has an LED clock radio, which is a 12-hour clock, displaying times from 12:00 to 11:59. The hours do not have leading zeros but minutes may have leading zeros, such as 2:07 or 11:03.
When looking at her LED clock radio, Jack likes to...
Question:
Most likely, you will notice that you have a mouse attached to your computer, which lets you move the cursor around the screen. Your job is to get between the mouse and the cursor.
Suppose that the bottom left-hand corner of your screen is (0,0), and...
Question 1:
This question involves calculating the value of aromatic numbers which are a combination of Arabic digits and Roman numerals.
An aromatic number is of the form ARARAR…AR, where each A is an Arabic digit, and each R is a Roman numeral. Each pair AR contributes...
Question:
You and a friend are playing the classic game of Battleships. You each have a grid consisting of M rows of N cells (1≤N,M≤2000). Each cell is either empty or contains a player’s ship (in this version of the game, all ships are the size...
Please email your code to kelven_zhu@yahoo.ca before Jan 3rd, 2021
The TOP 3 students will get a small gift!
Question 1:
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...
Question:
Write a program to print out a calendar for a particular month given the day on which the first of the month occurs together with the number of days in the month.
Your program should take as input an integer representing the day of the week...
Question:
Leafy Lee likes leaves. He also likes interleaving things. So he definitely likes interleaving leaves.
Lee starts with two piles of N (1≤N≤1000) leaves each, and wants to combine them into one new pile. He’ll start by taking the top leaf of the first pile, then...