Tag: Selection

Yes or No!

Learning Objectives When your computer prorgam is asking questions to the end-user, the end-user may not answer these questions the way you expected them to. This may cause your program to not work properly. Ideally a good program should use

Flags of the World

We are trying to build a program that will ask the end-user to choose a flag amongst six flags. The program will then try to guess the selected flag by asking a maximum of two questions. Look at the flowchart

My daily routine

Learning Objectives When you write lines of code, there are three ways you can control the order these lines will be executed by the computer: Sequencing: This means that the computer will run your code in order, one line at

The window cleaner’s quote

A window cleaner uses the following pricing policy to calculate how much to charge for cleaning all the windows of his customer’s dwelling. This pricing policy is based on the number of windows that need to be cleaned and works

Penalty Shootout

For this challenge you are going to write a computer program where the user tries to score a goal against the computer. The user will be asked where do they want to shoot and will have to choose one of

Daily Calorie Intake

Did You Know?Keeping a healthy lifestyle consists of adapting our daily food intake with our level of physical activities. The calories we intake (by eating food) has to roughly match the calories we burn throughout the day. Your Challenge For

Find the monster!

Will you dare open one of the three doors above. (Click on a door to open or close it.) Did you come across any monster? If not carry on opening doors till you find a monster! Your Challenge Check the

Revise: If Statements

Complete this drag and drop activity to use the right computing terminology about If Statements, boolean operators and comparison operators. equal to False comparison elif OR != boolean , =, AND and are operators, The result of a comparison is

Formula 1 Grand Prix

For this challenge we are going to use pseudo-code to analyse the timings of the best two formula 1 drivers of the season, Lewis Hamilton and Sebastian Vettel on four different Grand Prix. For the purpose of this task we

Guess Who

Did You Know? The aim of the “Guess Who” game is to look at a list of character cards and to ask “Yes/No” questions to progressively eliminate cards from the set by flipping them down. At the end of the