0% found this document useful (0 votes)
4 views10 pages

Document 20

The document outlines a series of practical programming exercises, each with specific objectives such as calculating averages, determining sale prices, and finding geometric areas. Each practical includes a source code section and an output section, though the actual code and outputs are not provided. The exercises cover a range of topics including basic arithmetic, data structures, and pattern generation.

Uploaded by

idus
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)
4 views10 pages

Document 20

The document outlines a series of practical programming exercises, each with specific objectives such as calculating averages, determining sale prices, and finding geometric areas. Each practical includes a source code section and an output section, though the actual code and outputs are not provided. The exercises cover a range of topics including basic arithmetic, data structures, and pattern generation.

Uploaded by

idus
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/ 10

PRACTICAL NO.

1
OBJECTIVE: Write a program to find average and grade for given marks.

SOURCE CODE

OUTPUT
PRACTICAL NO. 2
OBJECTIVE: Write a program to find the sale price of an item with a given cost and discount
(%).

SOURCE CODE

OUTPUT

PRACTICAL NO. 3
OBJECTIVE: Write a program to calculate perimeter/circumference and area of shapes
such as triangle, rectangle, square and circle.
SOURCE CODE
OUTPUT

PRACTICAL NO. 4
OBJECTIVE: Write a program to find the greatest of three numbers.

SOURCE CODE
OUTPUT

PRACTICAL NO. 5
OBJECTIVE: Write a program to find the even and odd number.

SOURCE CODE

OUTPUT

PRACTICAL NO. 6
OBJECTIVE: Write a program to Create a dictionary of students to store names and marks
obtained in 5 subjects.
SOURCE CODE

OUTPUT

PRACTICAL NO. 7
OBJECTIVE: Write a program to find the largest and smallest numbers in a list.
SOURCE CODE

OUTPUT

PRACTICAL NO. 8
OBJECTIVE: To print sum of first ten odd numbers.

SOURCE CODE

OUTPUT

PRACTICAL NO. 9
OBJECTIVE: Program to create a dictionary and enter the name and marks of five students.
SOURCE CODE

OUTPUT

PRACTICLE NO. 10
OBJECTIVE: Program to enter 5 numbers in a list then find the average of all numbers.

SOURCE CODE
OUTPUT

PRACTICAL NO. 11
OBJECTIVE: Generate the following patterns using nested loops:

SOURCE CODE

OUTPUT
PRAVTICAL NO. 12
OBJECTIVE: Write a Program to generate two random integers between 450 and 950. Print
these numbers along with their average.

SOURCE CODE

OUTPUT

You might also like