0% found this document useful (0 votes)
14 views

Programming Fundamental: Task No 1

The document discusses a programming fundamentals course which teaches analysis, algorithms, verification, and implementation through coding exercises. Students complete in-lab and post-lab coding tasks and the document provides examples of codes and outputs. The conclusion notes that C is useful for embedded systems and this lab taught using commands from previous lectures to make programs.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Programming Fundamental: Task No 1

The document discusses a programming fundamentals course which teaches analysis, algorithms, verification, and implementation through coding exercises. Students complete in-lab and post-lab coding tasks and the document provides examples of codes and outputs. The conclusion notes that C is useful for embedded systems and this lab taught using commands from previous lectures to make programs.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Programming Fundamental

1. Introduction:
Programming Fundamental is a course in which students performing activities such as
analysis, developing understanding, generating algorithms, verification of requirements of
algorithms including their correctness and resources consumption, and implementation
(commonly referred to as coding) of algorithms in a target programming language.
We use Code Block Software for the execution of programs. It supports many compilers,
such as GNU GCC (MinGW and Cygwin) and MS Visual C++

2. In-Lab Tasks:
2.1. Codes:
Task No 1:

Output No 1:

Programming Fundamentals (CSC 103) Page 13


Code No 2:

Output No 2:

Programming Fundamentals (CSC 103) Page 14


Code No 3:

Output No 3:

Code No 4:

Programming Fundamentals (CSC 103) Page 15


Output No 4:

Programming Fundamentals (CSC 103) Page 16


4. Post-Lab Tasks:

4.1. Code:
Code No 1:

Output No 1:

Programming Fundamentals (CSC 103) Page 17


Code No 2(a):

Output No 2:

Programming Fundamentals (CSC 103) Page 18


Code No 2(b):

Output No 2(b):

5. Conclusion:
C is most useful for embedded systems, or applications that require the ability to be light-weight
and have precise control over system resources. In this Lab, we learn how to make different
programs with the help of those commands we have learn from our previous lecture.

Note: Font used will be times new roman, size for heading will be 14 and for body text it must
be 12. Text and figures must be proper aligned.

Programming Fundamentals (CSC 103) Page 19

You might also like