0% found this document useful (0 votes)
142 views7 pages

Job Sheet C++

This document provides instructions for writing a basic C++ program to calculate the sum of two integers. The steps are to open a new source file, write the code to declare variables, get user input, perform the calculation and output the result. It should then be compiled and run, with the output displayed in a command prompt window. The document also answers questions about the compilation process and defines C++ programming.

Uploaded by

HassanHusni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views7 pages

Job Sheet C++

This document provides instructions for writing a basic C++ program to calculate the sum of two integers. The steps are to open a new source file, write the code to declare variables, get user input, perform the calculation and output the result. It should then be compiled and run, with the output displayed in a command prompt window. The document also answers questions about the compilation process and defines C++ programming.

Uploaded by

HassanHusni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

JOB SHEET

FUNDEMENTAL C++
1. Go to start >> all applications >> open programming C++

2. Click the tab file and then select New Source File.

3. Write this program


/*This is a program that computes the sum of two integer number*/
#include <iostream>
#include <stdlib.h>
int main()
{
int X,Y,sum;
std::cout<<"\nEnter first number:";
std::cin>>X;
std::cout<<"\nEnter second number:";
std::cin>>Y;
sum=X+Y;
std::cout<<"\nSum = "<<sum;
system ("PAUSE");
return 0;
}
4. Compile the project by clicking the Execute tab and choosing Compile and run or just
press F11.

5. Save the file under the name Project 1.

6. Wait until compilation process is finished.

7. The program will then run automatically. A command prompt screen will appear.

8. Insert the corresponding values or data into the program.

9. Then your result data will appear.

QUESTION/DISCUSSION
1. A. Compilation process
Click the Execute tab and then click Compile or you can just use the F9 shortcut.

B. Execute the program


In the Execute tab, click run or use the F10 shortcut

2. What is C++ Programming?


C++ is a general purpose programming language. It has imperative, object-oriented
and generic programming features, while also providing the facilities for low level
memory manipulation.

3. Conclusion
I have learned how to use codes in C++ programing, successfully compile a program,
and know the symbols for mathematical operators and standard operators.

You might also like