Docsity

Getting Started with C++ Programming using CppDroid App, Exercises of Computer science

Toggle sidebar
bg1
PERFORMANCE TASK 1.1.1: (Download CppDroid App)
1. Download and install CppDroid – C/C++ IDE from the Play Store. Note:
This activity requires Internet connection.
2. Run the app by tapping it (Internet is no longer needed here).
3. Enter the following Hello World Program (Note: Never use capital letters except
the “Hello World” string. C++ is character sensitive, meaning the hello, is different
from Hello and HELLO. Only words inside “ “ can be capitalized. C++ keywords
like #include, using, int, main, cout, etc should be written in small letters. Make
sure to copy everything.
# include<iostream>
using namespace std;
int main()
{
cout << “Hello world”;
return (0);
}
4. Save your first program by tapping the save icon (looks like diskette)
5. Compile the program by tapping the compile icon (looks like lighting)
6. Execute your first program by tapping the play button
If the screen displays the Hello world, then congratulations. You have successfully
executed your first C++ program. If not, check your code for possible error (bug).

Partial preview of the text

Download Getting Started with C++ Programming using CppDroid App and more Exercises Computer science in PDF only on Docsity!

PERFORMANCE TASK 1.1.1: (Download CppDroid App)

1. Download and install CppDroid – C/C++ IDE from the Play Store. Note:

This activity requires Internet connection.

  1. Run the app by tapping it (Internet is no longer needed here).
  2. Enter the following Hello World Program (Note: Never use capital letters except the “Hello World” string. C++ is character sensitive, meaning the hello, is different from Hello and HELLO. Only words inside “ “ can be capitalized. C++ keywords like #include, using, int, main, cout, etc should be written in small letters. Make sure to copy everything. # include using namespace std; int main() { cout << “Hello world”; return (0); }
  3. Save your first program by tapping the save icon (looks like diskette)
  4. Compile the program by tapping the compile icon (looks like lighting)
  5. Execute your first program by tapping the play button

If the screen displays the Hello world , then congratulations. You have successfully

executed your first C++ program. If not, check your code for possible error (bug).