You are on page 1of 6

UNIVERSITI MALAYSIA PERLIS

DKT 121
FUNDAMENTAL OF COMPUTER
PROGRAMMING
ELECTRICAL SYSTEM ENGINEERING


NAME MATRIX NUM
NURUL AFFIQAH BINTI ANUAR 112160515
SITI NURUL HAFLINA BT A.HAFIZ 112160588
NUR ANIQAH BT MOHD YUSOF 112160491
HEZMEE BIN ABDUL HALIM

112160140

MUHAMMAD IZZUDIN BIN ISMAIL

112160283

MISS KHAIRUL NADIAH BINTI KHALID

SCHOOL OF ELECTRICAL SYSTEM ENGINEERING
2011/2012


CONTENT

OBJECTIVE

INTRODUCTION

METHODOLOGY

RECOMMENDATION AND CONCLUSION


















OBJECTIVE

To understand how to create a program and compile it.
To gain knowledges about the language in the C programming.
To know about the methodology of the program.
Increase our knowledge about the programming from the beginning until the end.
To differentiate the C++ software and LINUX.
To accomplish a task in programming.


















INTRODUCTION

What is computer programming?
A computer program or a program is a sequence of statements whose objective is to
accomplish a task.Programming is a process of planning and creating a program.

What is calculator?
- Calculator is a small elctronic devices that you use for making mathematical
calculation.

- A person who operates such a machine or otherwise makes calculations.


- A device for performing mathematical calculations, especially an electronic device
that can be held in the hand.

- A set of tables used as an aid to calculations.















METHODOLOGY

DO WHILE
Format:
do {
statement;
}
while ( condition );
Condition for repetition tested after the body of the loop is performed.


SWITCH
switch (num)
{
case 1:printf(..:%d \n\n",a);
break;
case 2:printf(:%d \n\n",b);
break;
case 3:printf(.:%d \n\n",c);
break;
case 4:printf(..:%d \n\n",d);
break;
}





RECOMMENDATIONS AND CONCLUSION

While completing the mini project of c-programming, we tend to apply what we have
learnt in the subject DKT 121 Basic Computer Programming. In the project, we use
various types of programming techniques to demonstrate our project, the calculator
machine. Before we learn the programming, we do not know how the machine
operates and how it stores the memory. We gain a lot of benefit with learning
computer programming.
Furthermore, we try to create a programme in order to demonstrate the operation of
calculator machine. There are various type of services applied in our programme such
as addition,subtraction,multiplication and divide. Moreover we use the repetition and
selection to create our programme. And finally, we are satisfied with our result.
Last but not the least, we will try our best to improve our programme aimed at to meet
the needs of people and in the future, we will try to make new services in our
programme. For example, people always use the calculator to make their life easier.
These additional services will be done in the future after improving our own
programming skills. We will go through the programming training for the
accomplishment of future goal.

You might also like