Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views23 pages

Computer Practical File

The document outlines a series of programming tasks for a Computer Science practical file for the session 2024-25. It includes various exercises such as printing messages, performing arithmetic operations, calculating areas, and checking conditions like leap years and prime numbers. Each task specifies the input and expected output, aimed at enhancing programming skills.

Uploaded by

vaibhavkatoch07
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)
8 views23 pages

Computer Practical File

The document outlines a series of programming tasks for a Computer Science practical file for the session 2024-25. It includes various exercises such as printing messages, performing arithmetic operations, calculating areas, and checking conditions like leap years and prime numbers. Each task specifies the input and expected output, aimed at enhancing programming skills.

Uploaded by

vaibhavkatoch07
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/ 23

1)Program To Print Hello

Input -:

Output -:
2) Write a program to accepts two
integers and print their sum.
Input -:

Output-:
3) Write a program that accepts base
and height and calculate the area of a
triangle
Input-:

Output-:
4) Write a program that inputs a
student’s marks in three subjects (out
of 100) and prints the percentage
marks.
Input-:

Output-:
5) Write a program to calculate simple
interest.
Input-:

Output-:
6) Write a program to read two
numbers and prints their quotient and
reminder.
Input-:

Output-:
7) Write a program to find whether a
given number is even or odd.
Input-:

Output-:

8) Write a program to find the largest


among the three integers.
Input-:
Output-:

9) Write a program that accepts the


length and breadth of the rectangle
and calculate its area.
Input-:

Output-:
10) Write a program that accepts
weight in Kg and height in meters and
calculate the BMI.
Input-:

Output-:
11) Write a program that reads the
number n and print the value of n², n³
and n⁴.
Input-:

Output-:
12) Write a program to accept the
marks of five subjects and calculate
the average marks.
Input-:

Output-:
13) Write a program to accept the
height in cm and convert it into feet
and inches.
Input-:

Output-:
14) Write a program that accepts the
age and print if one is eligible to vote
or not.
Input-:

Output-:
15) Write a program to read base,
width and height of parallelogram and
calculate its area and perimeter.
Input-:

Output-:
16) Write a program to accept the year
and check if it is a leap year or not.
Input-:

Output-:
17) Write a program to obtain x, y, z
and calculate 4x⁴+3y³+9z+6π.
Input-:

Output-:
18) Write a program to input a number
and print its square if it is odd,
otherwise print its square root.
Input-:

Output-:
19) Write a program to enter a number
and check if it is a prime number or
not.
Input-:

Output-:
20) Write a program to display a menu
for calculating the area of the circle or
perimeter of the circle.
Input-:

Output-:
Computer Science
Practical File
(Session 2024-25)

Submitted by Under the guidance of

Name: Shivank Teacher Name: Mrs.


Class: 11th Sunaina

Roll No.: Subject: Computer


Science

Task Description Teacher


No. Sign.
1 Write a program to print “Hello World”.
2 Write a program to accepts two integers and
print their sum.
3 Write a program that accepts base and height
and calculate the area of a triangle.
4 Write a program that inputs a student’s marks
in three subjects (out of 100) and prints the
percentage marks.
5 Write a program to calculate simple interest.
6 Write a program to read two numbers and
prints their quotient and reminder.
7 Write a program to find whether a given
number is even or odd.
8 Write a program to find the largest among the
three integers.
9 Write a program that accepts the length and
breadth of the rectangle and calculate its area.
10 Write a program that accepts weight in Kg and
height in meters and calculate the BMI.
11 Write a program that reads the number n and
print the value of n², n³ and n⁴.
12 Write a program to accept the marks of five
subjects and calculate the average marks.
13 Write a program to accept the height in cm
and convert it into feet and inches.
14 Write a program that accepts the age and
print if one is eligible to vote or not.
15 Write a program to read base, width and
height of parallelogram and calculate its area
and perimeter.
16 Write a program to accept the year and check
if it is a leap year or not.
17 Write a program to obtain x, y, z and calculate
4x⁴+3y³+9z+6π.
18 Write a program to input a number and print
its square if it is odd, otherwise print its square
root.
19 Write a program to enter a number and check
if it is a prime number or not.
20 Write a program to display a menu for
calculating the area of the circle or perimeter
of the circle.
21 Write a python program to create a dictionary
of roll no. and marks of N students in a class
and display the name of the students who
have marks above 75.
22 Input a list or tuple of elements and search for
a given element in list or tuple.

23 Python program to find the largest and


smallest number in a list or tuple.
24 Program to check for palindrome.

You might also like