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

Exercise Chapter 1

The document discusses exercises from Chapter 1 of a book on C programming foundations. It covers topics like compiling source code into machine language, differences between source code and object code, and provides examples of flowcharts for simple programs. The exercises aim to help readers understand basic concepts of programming in C like compiling, translating code, and representing program flow.

Uploaded by

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

Exercise Chapter 1

The document discusses exercises from Chapter 1 of a book on C programming foundations. It covers topics like compiling source code into machine language, differences between source code and object code, and provides examples of flowcharts for simple programs. The exercises aim to help readers understand basic concepts of programming in C like compiling, translating code, and representing program flow.

Uploaded by

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

PROGRAMMING IN C FOR FOUNDATION

(EXERCISES)

CHAPTER 1
EXERCISE 1.1

1) A source code needs to be compiled in order to create it into machine


language (in binary form), transforming the source code into an executable
program. (page 17)

2) High level programming languages are programming languages with strong


abstraction from the details of the computer. It may use natural languages,
such as English, making it easier to read by humans rather than machines.
Examples are C, C++, C# and Java. (page 17)

3) Source codes are codes that are human-readable computer programming


languages that are NOT understood by a machine before being compiled,
while object codes are codes that sit in between a source code and an
executable code, produced by the compiler itself and is readable by the
machine. Object codes can be executed directly by the computer, instead
of a source code that has to be compiled first.

4)

** Start and Stop can be also replaced with a simple connector (circle)
to show that there’s more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

5a)

** Start and Stop can be also replaced with a simple connector (circle) to
show that there’s more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

5b)

6)

** Start and Stop can be also replaced with a simple connector (circle) to show that there’s
more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

7a)

** Start and Stop can be also replaced with a simple connector (circle) to show that there’s
more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

7b)

** Start and Stop can be also replaced with a simple connector (circle) to show that there’s
more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

8)

• Start
• Insert card
• Enter password
• Choose “withdraw” option
• Select amount to be withdrawn
• Choose to print receipt or not after withdrawal
• End

** Chapter-wise, this is just a simple flowchart since it’s only


the first chapter. ==>>
** Start and Stop can be also replaced with a simple connector
(circle) to show that there’s more to the program than just this;

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.
PROGRAMMING IN C FOR FOUNDATION
(EXERCISES)

9) Solat subuh guys.

10) 11)

//INI BUKAN SKEMA JAWAPAN!!! SO MUNGKIN ADA YANG SALAH DAN SILAP. JUST AS A REFERENCE,
HARAP MEMBANTU. KEEP ON STUDYING! GOODLUCK HEWHEW.

You might also like