js05 - mohammad hanifzam bin ahmad kamal.docx

8
JOB SHEET 05 – C++ QUESTION/DISCUSSION 1) How to a) Compilation Process b) Execute the program. Steps 1 – Open Programming C++

Upload: piejam

Post on 06-Feb-2016

24 views

Category:

Documents


1 download

DESCRIPTION

Job Sheet 05 - C++

TRANSCRIPT

Page 1: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

JOB SHEET 05 – C++

QUESTION/DISCUSSION

1) How toa) Compilation Processb) Execute the program.

Steps 1 – Open Programming C++

Page 2: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

Steps 2 – Select new source file.

Page 3: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

Steps 3 – Write this program.

/*this is a program that computes the sum of two integer number*/

#include <iostream.h>

#include <stdlib.h>

int main()

{

int x,y,sum;

cout<<"\nEnter first number :";

cin>>x;

cout<<"\nntr second number:";

cin>>y;

sum=x+y;

cout<<"\nsum="<<sum;

system("PAUSE");

return 0;

}

Page 4: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

STEPS 4 – Run the Project.

Page 5: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

STEPS 5 – Save the file under project 1 or Whatever.

STEPS 6 – Compilation process.

Page 6: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

STEPS 7 – Execute the program.

STEPS 8 – Insert the data.

RESULT

Page 7: JS05 - MOHAMMAD HANIFZAM BIN AHMAD KAMAL.docx

2) What is C++ Programming A high-level programming language developed by Bjarne Stroustrup at Bell Labs. C++

adds object-oriented features to its predecessor, C. C++ is one of the most popular programming language for graphical applications, such as those that run in Windows and Macintosh environments.

CONCLUSION

In a conclusion, I have learned a lot how to using of the C++ software. C++ is a great programming language that can make programming a lot of fun.