Monthly Archive: October 2015

Lesson 8 – Arrays

In this lesson, we shall learn a very important data structure that is very commonly used in programming. This data structure is called the array. When you want to store many information that uses...

Lesson 7: Functions

Remember that a C++ program always start from the main function? In this lesson, you will learn about what a function is. An add function In the earlier, you learned to write a program to...

Answers: Lesson 8

// Challenge 2 #include <iostream> int main () { int marks[10]; int total = 0, max = -1, min = 100; for (int i = 0; i < 10; i++) { std::cout << “Enter...

Lesson 6: Revision to while

Revise lesson 5 and attempt Challenge 2 and 3 once more. Intermediate while while is powerful because it allows a program to run until a certain condition is reach. Remember that you wrote a...