Past Challenge

For the Novice

Greetings

🤗

Objective:

Create your very first program and use it to tell us few things about yourself!

Task:

You are given a program with examples of instructions a computer can understands (download from resources #1 or #2 below). Complete the program so that when it is run, the program will display your school, current year, your full name and the value of Pi.

Download Resources for:
#Programming LanguageResources
1Python(recommended for all beginners)download
2C++(recommended for Form Five students planning to take optional Computer Science)download

For the Experienced

Jane in Trouble

😢

Objective:

Jane has written a program to help her complete her Maths homework quickly. Unfortunately, she is facing some few issues with the program. Can you help her fix it?

Task:

You are given a file ("numbers.txt") that contains 10,000 numbers. Jane has written a program (included in the downloads) that displays all numbers from the file on the screen. Your task is to improve the program so that when it is run, the program will display ONLY odd numbers and at the end show the total count of even numbers contained in the file.

Download Resources for:
#Programming LanguageResources
1Cdownload
2C++download
3Javadownload
4Pythondownload