0% found this document useful (0 votes)
0 views

COMPUTER SCIENCE WORKSHEET on python coding

The document is a computer science worksheet with instructions for students to complete various programming tasks using Jupyter Notebook. It includes tasks such as calculating the power of a number, converting units, finding acceleration, determining grades based on percentage, and checking properties of triangles. Students are required to submit their answers in a word document or Google Docs after ensuring all programs are functional.

Uploaded by

chaithanya1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

COMPUTER SCIENCE WORKSHEET on python coding

The document is a computer science worksheet with instructions for students to complete various programming tasks using Jupyter Notebook. It includes tasks such as calculating the power of a number, converting units, finding acceleration, determining grades based on percentage, and checking properties of triangles. Students are required to submit their answers in a word document or Google Docs after ensuring all programs are functional.

Uploaded by

chaithanya1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

COMPUTER SCIENCE WORKSHEET

Instructions:

• Try all the programs on Jupyter notebook and ensure that they are functional before
submitting.
• You can only use your textbook for help while working with the programs
• Submit all your answers in a word document or google docs

1. Write a computer program to calculate the power of a number. Ex: 43 = 64.


Here, 4 and 3 are the inputs.
2. Write separate programs to convert
a. Kilometers to meters
b. Liters to kiloliters
c. Centimeters to meters
d. Kilograms to grams
3. Write a program to find acceleration. The inputs are initial velocity, final
velocity and time.
4. Write a program to convert fraction into percentage. The fraction should be
taken as input
5. Write a program to convert a percentage into a decimal
6. Write a program to accept percentage from the user and display the grade
according to the following criteria:

Marks Grade

> 90 A

> 80 and <= 90 B

>= 60 and <= 80 C

below 60 D

7. Write a program to check whether an year is leap year or not.


8. Write a program to find the largest number out of two numbers inputted by
the user.
9. Write a program to whether a number (accepted from user) is divisible by 2
and 3 both.
10.Write a program to accept three sides of a triangle and check whether it is
an equilateral, isosceles or scalene triangle.
11.Write a python program to print the square of all numbers from 0 to 10
12.Write a python program to read three numbers (a,b,c) and check how many
numbers between ‘a’ and ‘b’ are divisible by ‘c’
13.Write a program to accept a number from a user and calculate the sum of all
numbers from 1 to a given number.
14.Write a single program to calculate the area of triangle, square, rectangle,
parallelogram, rhombus and trapezium. The program should ask the user for
the required inputs.

You might also like