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

0% found this document useful (0 votes)
7 views56 pages

Summer Assignment Cs

Uploaded by

arnabanjandas
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)
7 views56 pages

Summer Assignment Cs

Uploaded by

arnabanjandas
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/ 56

COMPUTER SCIENCE

PRACTICAL FILE

8/21/2024

NAME: DIVYESH CHAKRABORTY


CLASS: 11
SECTION: A
ROLL NO.: 19
INDEX
S. Questions Pg.
No. No.
1. WAP to find the roots of ax*2+bx+c=0. 1
2. WAP to find the simple interest. 2
3. WAP to find the percentage of marks obtained in 5 3
subjects.
4. WAP to find the area of a circle. 4
5. WAP to convert Fahrenheit to Celsius. 5
6. WAP to find the percentage of marks obtained in 5 6
marks and display it in the form of a marksheet.
7. WAP to display a bill. 8
8. WAP to assign a grade according to percentage 10
entered.
9. WAP to make a simple calculator. 11
10. WAP to reverse a number. 12

11. WAP to input a few numbers and output addition of 13


odd and even numbers separately.
12. WAP to find the sum and average of the numbers 15
entered until the user enters 0.
13. WAP to find the sum of the digits of a multidigit 16
number entered by the user.
14. WAP to find the minimum and maximum of four 17
numbers entered by the user.
15. WAP to check if a number is a palindrome. 18
16. WAP to print a sequence of numbers in reverse 19
order.
17. WAP to print the sequence: 20
12345
1234
123
12
1
18. WAP to print the sequence: 21
54321
4321
321
21
1
19. WAP to print the sequence: 22
5
54
543
5432
54321
20. WAP to print the sequence: 23
1
22
333
4444
55555
1. WAP to print the sequence: 24
0
22
444
8888
2. WAP to print the sequence: 25
1
12
123
1234
12345
1234
123
12
1
3. WAP to print the sequence: 27
A
AB
ABC
ABCD
ABCDE
4. WAP to print the sequence: 28
A
BB
CCC
DDDD
EEEEE
5. WAP to print the multiplication table of any 29
number.
6. WAP to take input from user until 0 and add the 30
numbers.
7. WAP to print your name as a pyramid. 31
8. WAP to print your name as a reverse pyramid. 32
9. WAP to take string input from user and print it in 33
1. WAP to find the roots of ax*2+bx+c=0.

Program:

Output:

1|Page
2. WAP to find the simple interest.

Program:

Output:

2|Page
3. WAP to find the percentage of marks
obtained in 5 subjects.

Program:

Output:

3|Page
4. WAP to find the area of a circle.

Program:

Output:

4|Page
5. WAP to convert Fahrenheit to Celsius.

Program:

Output:

5|Page
6. WAP to find the percentage of marks
obtained in 5 marks and display it in the
form of a marksheet.

Program:

6|Page
Output:

7|Page
7. WAP to display a bill.

Program:

8|Page
Output:

9|Page
8. WAP to assign a grade according to
percentage entered.

Program:

10 | P a g e
Output:

11 | P a g e
9. WAP to make a simple calculator.

Program:

Output:

12 | P a g e
10. WAP to reverse a number.

Program:

Output:

13 | P a g e
11. WAP to input a few numbers and
output addition of odd and even numbers
separately.

Program:

14 | P a g e
Output:

15 | P a g e
12. WAP to find the sum and average of
the numbers entered until the user enters
0.

Program:

Output:

16 | P a g e
13. WAP to find the sum of the digits of a
multidigit number entered by the user.

Program:

Output:

17 | P a g e
14. WAP to find the minimum and
maximum of three numbers entered by
the user.

Program:

Output:

18 | P a g e
15. WAP to check if a number is a
palindrome.

Program:

Output:

19 | P a g e
16. WAP to print a sequence of numbers
in reverse order.

Program:

Output:

20 | P a g e
17. WAP to print the sequence:
12345
1234
123
12
1

Program:

Output:

21 | P a g e
18. WAP to print the sequence:
54321
4321
321
21
1

Program:

Output:

22 | P a g e
19. WAP to print the sequence:
5
54
543
5432
54321

Program:

Output:

23 | P a g e
20. WAP to print the sequence:
1
22
333
4444
55555

Program:

Output:

24 | P a g e
21. WAP to print the sequence:
0
22
444
8888

Program:

Output:

25 | P a g e
22. WAP to print the sequence:
1
12
123
1234
12345
1234
123
12
1

Program:

26 | P a g e
Output:

27 | P a g e
23. WAP to print sequence:
A
AB
ABC
ABCD
ABCDE

Program:

Output:

28 | P a g e
24. WAP to print the sequence:
A
BB
CCC
DDDD
EEEEE

Program:

Output:

29 | P a g e
25. WAP to print the multiplication table
of any number.

Program:

Output:

30 | P a g e
26. WAP to take input from user until 0
and add the numbers.

Program:

Output:

31 | P a g e
27. WAP to print your name as a pyramid.

Program:

Output:

32 | P a g e
28. WAP to print your name as a reverse
pyramid.

Program:

Output:

33 | P a g e
29. WAP to print your name in reverse.

Program:

Output:

34 | P a g e
30. WAP to ask the user to enter a number
between 1 and 7 and print the
corresponding day.

Program:

Output:

35 | P a g e
31. WAP to convert seconds into minutes
and seconds.

Program:

Output:

36 | P a g e
32. WAP to check if a year is leap year or
not.

Program:

Output:

37 | P a g e
33. WAP to take string input from user and
print it as:
1. Sentence case 2. UPPER CASE 3. lower
case
4. Exit

Program:

38 | P a g e
Output:

39 | P a g e
34. WAP to find the number of iterations
of a character in a string.

Program:

Output:

40 | P a g e
35. WAP to remove all the iterations of a
character from a string.

Program:

Output:

41 | P a g e
36. WAP to abbreviate a name.

Program:

Output:

42 | P a g e
37. WAP to enter any 3 numbers and print
the largest one.

Program:

Output:

43 | P a g e
38. WAP to convert years into days, hours,
minutes and seconds.

Program:

Output:

44 | P a g e
39. WAP to enter two numbers and
subtract the smaller number from the
bigger number.

Program:

Output:

45 | P a g e
40. WAP to enter a number and check
whether it’s odd or even.

Program:

Output:

46 | P a g e
41. WAP
to enter a number and display its factorial.

Program:

Output:

47 | P a g e
42. WAP to display all the numbers from
20 to 50 that are even numbers but not
divisible by 3.

Program:

Output:

48 | P a g e
43. WAP to print all the numbers between
two numbers entered by the user that are
divisible by 2 and 3 but not divisible by 5.

Program:

Output:

49 | P a g e
44. WAP to print all the multiples of 7
between 20 and 45.

Program:

Output:

50 | P a g e
45. WAP to print all the numbers between
11 and 30 except for 13,19 and 23.

Program:

Output:

51 | P a g e

You might also like