Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
25 views

Lab Report Programming

This document summarizes a programming lab assignment where students learned to write basic C programs. The objectives were to get introduced to writing C programs, using an IDE, and basic statements. Students created programs to print text, calculate the sum of two integers, calculate the area of a rectangle, and calculate the area and circumference of a circle. The lab taught basic C functions like printf, int, float, and scanf. It served as an introduction to programming in C and using the CodeBlocks IDE.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Lab Report Programming

This document summarizes a programming lab assignment where students learned to write basic C programs. The objectives were to get introduced to writing C programs, using an IDE, and basic statements. Students created programs to print text, calculate the sum of two integers, calculate the area of a rectangle, and calculate the area and circumference of a circle. The lab taught basic C functions like printf, int, float, and scanf. It served as an introduction to programming in C and using the CodeBlocks IDE.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

M’Hamed Bouguerra University of Boumerdes

Institute of Electrical and Electronic Engineering

Lab Work #3
Programming I LAB (EE121)

Khaled DOUADI
Mohamed Nasr-eddine BELDJEMEL
2019/2020
I- introduction:
After learning how to express our problems in sort of Algorithms and
flow charts; Now we are going to learn how to make programs that helps us
to solve those problems using C programming language.

II-Objectives:
1-introduction to writing C programs.
2-work with code blocks IDE.
3-get used to the basic statements (printf, scanf ….).
4-translating earlier algorithms to real programs.

III- part I:
Our given task was to create our simple first c program in codeBlocks
IDE, the program consists to print on the screen the output “programming in
c is easy”, and it is presented in the figures down below.

Figure 01:
how to write a text
in c programming.

Figure 02:
the output of
the program.
IV- part II:
When we succeeded in our first program, we were asked to create
another one to calculate the sum of two integer numbers (fig billow)
Input: x, y.
Output: sum

Figure 03:
The program that
calculates the sum of
the tow integers in c
language.

Figure 04:
the output of the sum program.

V- part III:
In this part we were ordered to establish a program that calculates
the area of a rectangle; by interring its width and length (figure 05 and 06)
Input: width(a), length(b).
Output: area(s).

Figure 05:
The program that
calculates the area
of rectangles.
Figure 06:
the output of the
rectangle’s
program

VI- part IV:


In this part, we wrote a programme that calculates the area and the
circumference of a circle; by interring its radius (figure 07 and 08).
Input: radius(r).
Output: area(a), circumference(c).

Figure 07:
The program that
calculates the area
of rectangles.

Figure 08:
the output of
the rectangle’s
program
VII- conclusion:
In this lab we learned some simple functions in c language which are:
 Printf : to print texts.
 Int : to declare integer variables.
 Float : to declare reel variables.
 Scnanf : to enter data from the user to the program.
 We learned how make mathematical calculations in c
programming.
Finally, this lab was a simple introduction to c language programming world;
in which we deduced the basic skills of programming in CodeBlocks IDE.

You might also like