Você está na página 1de 6

TITLE : E3162 PROGRAMING 1 REVISITED

OBJECTIVES : 1. TO REVISE STUDENTS ABILILITY IN DEVELOPING A SIMPLE VISUAL

C++ INPUT/OUTPUT PROGRAM

2. TO COMPILE AND RUN A SIMPL VISUAL C++ PROGRAM.

THEORY : THEORY ON VISUAL C++ LEARNED IN PROGRAMING 1

PREREQUISITE : OTHER INPUT/OUTPUT FORMATS C AND C++

EQUIPMENT : PC WITH C++ COMPILER.

STEP 1
1.1 Build a C++ program that inputs several information on a student in DTK 6B as below:

 Name
 Matrix number
 IC Number
 Birth date
 Telephone Number
 Former Institution
 Postal Address
 Annual Income

1.2 Ask the user whether he wants to display the information or not.

1.3 If Yes; display the information.

1.4 If No; exit.


Output
STEP 2
Modify the program above so that the output will be of standard format
E.g. You’ll be able to input full name into one variable, the salary will be of the form
RM200000.00,Telephone number with format as
012-3456789 and complete address in one variable.

OUTPUT
CONCLUSION

As a conclusion from this lab, I have manage to execute and have an ability in developing a
simple Visual C++ input/output program. Besides that, I have also learned in how does the C program
can be added in C++ program which i have done in the step 2 combining the step 1 and the step 2 thus
compile all the program perfectly.

Você também pode gostar