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

CS-Worksheet

The document outlines holiday homework assignments for Class XI students at Prelude Public School, Agra, focusing on Python programming tasks. Students are required to write programs for various mathematical calculations, conversions, and data validations, including simple and compound interest, temperature conversions, and salary calculations based on given conditions. The assignments aim to enhance students' coding skills and understanding of basic programming concepts.

Uploaded by

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

CS-Worksheet

The document outlines holiday homework assignments for Class XI students at Prelude Public School, Agra, focusing on Python programming tasks. Students are required to write programs for various mathematical calculations, conversions, and data validations, including simple and compound interest, temperature conversions, and salary calculations based on given conditions. The assignments aim to enhance students' coding skills and understanding of basic programming concepts.

Uploaded by

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

PRELUDE PUBLIC SCHOOL, AGRA

CLASS: XI (Holiday Homework)


SUBJECT: COMPUTER SCIENCE / INFORMATICS PRACTICES
1. WAP to print their name in Python.
2. WAP to print all the months name in different-2 lines with a relevant space. (Use \n, \t escape sequences)
3. WAP to add, subtract, multiply, division & modulus using the already given inputs.
4. WAP to add, subtract, multiply, division & modulus using the user inputs.
5. WAP to find the simple interest using the formula. (S.I=PRT/100)
𝑟
6. WAP to find the compound interest using the formula. (Amount=P(1+100)n)
7. WAP to calculate the conversion from rupees to dollar.
8. WAP to enter the temperature in Celsius and convert it into Fahrenheit and enter the temperature in Fahrenheit
and convert it into Celsius.
9. WAP to convert time (input in minutes) in hours.
10. WAP to input 4 numbers and divide their total by 5 and print the result.
11. WAP to input 5 different subject marks and find their total, percentage and average.
12. WAP to input a number and find their square and cube.
13. WAP to input 2 numbers and swap them with and without third variable and print their result in different – 2
output lines.
14. WAP to find the area of Circle, square, rectangle, cuboids, cone, sphere.
15. WAP to find the perimeter of rectangle.
16. WAP to enter the time in minutes and print in the following format: _________ hours and __________min.
17. WAP that generates the following output: (5 10 9) each number in new line. Firstly assign value 5 to
a variable using =. Multiply with 2 to generate 10 and subtract 1 to generate 9.
18. WAP to accept the radius of a circle and print its area.
19. WAP to input principal amount and time. If time is more than 10 years, calculate the simple interest with rate
8%. Otherwise calculate it with rate 12% per annum.
20. WAP to input a number. If the number n is odd and positive, print its square root otherwise print n5.
21. WAP to input 2 numbers and find the maximum and minimum number in different – 2 output lines.
22. WAP to input 3 numbers and find the maximum and minimum number in different – 2 output lines.
23. WAP to input a number and check whether the number is even or odd.
24. WAP to find the maximum and minimum of two numbers using conditional operator.
25. WAP to input a number and print whether the number zero, a negative or a positive number. Print a suitable
message with respective program.
26. WAP to input a year and find whether the given year is leap year or not a leap year with a suitable message.
27. WAP to accept a date (dd/mm/yyyy) from user and check for the validity of the date.
28. WAP to find the ticket fair of a bus according to the code of a bus:
Code Fair
D 15
R 20
W 30
C 40
Print a suitable output according the Program.
29. A limited company is giving certain perks to its employee according to the following condition:
Salary DA (%) HRA (%)
i. Less than 25000 ------ ------
ii. Greater than equal to 10 11
25000 but less than 40000
iii. Greater than equal to
40000 but less than equal 13 13
to 80000
iv. Greater then 80000 16 18
Gross salary of an employee includes salary, hra and other perks. Income tax is deducted for general tax
payers and women as per the income tax slabs given below:
Income tax slab (in rs.) Tax (%)
i. 0 to 250000 No tax
ii. 250000 to 500000 10
iii. 500001 to 1000000 20
iv. Above 1000000 30
If the employee pays his/her income tax monthly, calculate the net monthly salary of the employee.

You might also like