Document 20
Document 20
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