0% found this document useful (0 votes)
42 views11 pages

Open Pps Practical File

The document describes 6 programming exercises to find the sum of numbers, average of numbers, area of a circle, area of a right triangle, and sum of digits in a number. It provides the aim, software, steps, source code, and output for each exercise.

Uploaded by

imrebel001
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)
42 views11 pages

Open Pps Practical File

The document describes 6 programming exercises to find the sum of numbers, average of numbers, area of a circle, area of a right triangle, and sum of digits in a number. It provides the aim, software, steps, source code, and output for each exercise.

Uploaded by

imrebel001
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/ 11

PRACTICAL FILE Of

“PROGRAMMING FOR PROBLEM SOLVING “


SUBJECT CODE :ES- 107 LA

SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE AWARD OF


BACHELORS OF TECHNOLOGY (B.TECH.) IN
COMPUTER SOFTWARE AND ENGINEERING
(SESSION:2023-2024)
SUBMITTED BY:
AYESHA
2323007
BRANCH: COMPUTER SOFTWARE AND ENGINEERING

UNDER THE SUPERVISION OF:


Er . Rajwinder Kaur

Assistant professor
CSE Department, ACE

Department of Computer Science and Engineering

Ambala College of Engineering and Applied Research, Devasthali, Ambala


(Haryana)
Affiliated to Kurukshetra University, Kurukshetra
PRACTICAL NO. 1

AIM: Write a program to display Hello World.


So ware Used: CodeBlocks
Procedure:
Step 1: START

Step 2: Display the word Hello world .


Step 3: STOP

Source code:

Output:
Prac cal No.2
Aim: Write a program to display the sum of two numbers.
So ware Used: CodeBlocks
Procedure:
Step 1: Start
Step 2: Input the two numbers a ,b
Step 3: Calculate the sum=a+b
Step 4: Print the result
Step 5: Stop
Source code:

Output:
Prac cal No.3

Aim: Write a program to display the sum and average of three numbers.
So ware Used: CodeBlocks
Procedure:
Step 1: Start
Step 2: Input the three numbers a, b,c
Step 3: Calculate the sum
Step 4: Calculate the average
Step 5: Print the result
Step 6: Stop

Source code:

Output:
Prac cal No.4
Aim:Write a program to find the area of circle.
So ware Used: CodeBlocks

Procedure:
Step 1: Start
Step 2:Input the radius r
Step 3: Ini alizes the PI=3.14

Step 4:Calculate the area of circle=Area=Pi*r*r


Step 5: Print the result
Step 6: Stop
Source code:

Output:
Prac cal No.5
Aim:write a program to find the area of right angle triangle .

So ware Used: CodeBlocks


Procedure:
Step 1:Start
Step 2: Input the two numbers b,h

Step 3: Calculate the area of right angled triangle=0.5*b*h


Step 4:Print the result Step
5:Stop Source
code:

Output:
Prac cal No.6
Aim:Write a program to find the sum of individual digits of a posi ve integer.
So ware Used: CodeBlocks .

Procedure:

Step 1: Start
Step 2: Enter the number
Step 3:Ini alize the sum = 0
Step 4:Find the first reminder
Step 5:Add this to the sum
Step 6:Find the new small number n/10

Step 7:Repeat the 3,e,5 while n>0

Source code:

Output:

You might also like