Question:
Problem DescriptionA fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that...
Posted at 18:54h
in
Uncategorized
by admin
Question:
We have learned how to use keyboard to control the movement of the fighter in the last class. Please continue to write the code we did in the class so that the fighter can move left, down and right by clicking ‘a’, ‘s’ and ‘d’...
Question:
The school year is starting soon, so Jack wants to make some friends through his school's Discord server. In the server, there are N calls simultaneously going on, each with M participants.
Unfortunately, everyone has important things to do other than Discord, so for every minute...
Posted at 02:26h
in
Uncategorized
by admin
Question 1:
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
You probably used a for loop in your program in last homework. That’s how most people would do...
Question:
Winnie is feeling generous today, so she decided to adopt all the children in an orphanage. There are N orphanages, numbered from 1 to N, that she can choose from. Each orphanage has M children. Each children has a cuteness value ranging from 1 to...
Posted at 21:54h
in
Uncategorized
by admin
Problem Description
Jack is trying to invent some new words from old words. For every consonant (consonants are the letters except for a, e, i, o, u) in the old word is replaced by three letters, in the following order:
the consonant itself;
the vowel closest...