0% found this document useful (0 votes)
52 views3 pages

XI F2 Term 1 Record Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views3 pages

XI F2 Term 1 Record Programs

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CHETTINAD VIDYASHRAM

STD XI -I TERM RECORD PROGRAMS (2024-25)


1.Write a program to accept the name and the basicpay of an employce and print the salary sl1p for
the employee.[DA=20% of BP, HRA=30% of BP, TA=I0% of BP, PE=13% of BP,IT=5% of BP,
Gross=BP+TA+DA+HRA,Deduction=PF+IT, Net pay-Gross-Deduction)
SALARYSLIP
NAME: XXXXXXXXX

BASIC PAY PE:


DA IT:
HRA
TA
GROSS DEDUCTION:
NET PAY

2.Write a program to accept the consumer name, EB number, number of units and type of
Consumption [D - Domestic, C- conmmercial] Calculate the amount to be paid based on the
following criteria
For Domestic purpose
a. for the first 100 units - No charges
b. for units 101-200, Rs.7 per unit
c. for units 201-300, Rs. 9.50 per unit
d. for units 301 and above Rs. 12 per unit.
For Commercial purpose
a. for the first 100, Rs. 10 per unit
b. for units 101-200,Rs. 25 per unit
c. for units 201-300, Rs. 40 per unit
d. for units 301 and above Rs. 55 per unit.
Print the EB bill in the given format
ELECTRICITY BILL
CONSUMER NAME
EB NUMBER
TYPE OF CONSUMPTION
NUMBER OF UNITS
TOTAL AMOUNT

3. Write a menu driven program to find the area of circle, rectangle, square and triangle.
4. Write a program to find the roots of quadraticequation.
5. Accept a choice and find the sum of the following series.
1. X-X2/2! +X3/3! -....+X N/N!
2. 1+(1+2)+(1+2+3)+(1+2+3+4)+. .+(1+2+..tN)
6. Write a program to accept a number and print its square and cube until the user type zero using
while loop.
7. Write a program to print the following output
a) 1 b) JIH G
2 3 FED
4 5 6 CB
7 8 9 10 A

8. Write a program to accept a number ana reverse the number. Print the reversed number and Drint
the count of odd digits ard even digiis Sf he number using
while loop.
STD X- SQL- LAB ENERCISE (2024-2)

9. Accept asentence and print Number of Uppercase characters,


and special characters.
lowercase characters, spaces, digits
10. Write a program that does the following.
i) Accept two inputs: one integer and one string
ii) Extract all the digits, in the order they occur from the given string, add the
given integer
input and the digits extracted from the string.
iii) If no digits occur in the given string, set the extracted digit to 0.
Output 1:
Enter integer no: 12
Enter the string : a4b5c6
given number = 12 given string a4b5c6 sum = 12 + 456 = 468
Output 2:
Enter integer no: 20
Enter the string : hello
given number = 20 given string = hello sum = 20 +0= 20
11. Write a program that reads a line of strings and print all the
Eg. S=Ajay has a RacecAr. He is a level 1 racer. palindrome words from the line.
Palindrome words: RacecAr level
12. Write a program to input a string S1. Input two substrings S2 and S3
existing in Sl and a
replacemnent string S4. Replace-the range of strings-starting- from S2-till end of S3- with S4.
Eg: Given string Sl= ´one two three one two three
Substring S2= two
Substring S3 = th'
Substring S4 = five'
Output: one fiveree one two three
13. Write a program that takes a string with multiple words and then
word and reverses all three letter words.
capitalizes the first letter of each
Eg: Given String = Ihave a car in red colour'
New string = IHave A raC In deRColour
14. Write aprogram that reads a line and prints the longest word, its length and
without vowels.
print the same word
Eg: Given String = 'Python offers many methods for string
manipulation'
Output l= Longest substring: manipulation Its Length: 12
Output 2= Longest substring without vowels : mnpltn
15. Write a program to read N phone numbers with 10 digits and 2 dashes in the format
999-999-9999. Print all the valid phone numbers.
Eg: Given phone numbers
044-225-2461
12-234-1235
044-223-1234
Output:
Validphone numbers
044-225-2461
044-223-1234
ITERM (2024-25)

S.NO DATE PAGE


INDEX T. SIGN
NO.
1 03.07.24 SALARY SLIP

2 03.07.24 ELECTRICITY BILL

10.07.24
MENUDRIVEN PROGRAM TO FIND AREA OF THE
SHAPES

4 16.07.24 ROOTS OF QUADRATIC EQUATION

16.07.24
|PRINT THE SUM OF THE SERIES BY ACCEPTING
THE CHOICE

6 24.07.24 PRINT THE SQUARE AND CUBE OF THE GIVEN


NUMBER

7 24.07.24 PRINT THE FORMAT USING NESTED LOOPS

0S.08.24 NUMBER MANIPULATION


COUNTING UPPERCASE, LOWER CASE ALPHABETS,
05.08.24 DIGITS,SPACES AND SPECIAL CHARACTERS IN A
STRING
10 12.08.24
PRINT THE SUM OF NUMBERS PRESENT IN THE
GIVEN STRING

11 12.08.24 PRINT PALINDROME WORDS FROM THE STRING

12 19.08.24 REPLACINGSUB STRING WITH GIVEN STRING

13 19.08.24 CONVERTING WORDS INTO TITLE CASE AND


REVERSING THREE LETTER WORDS

14 27.08.24 PRINT LONGEST WORD FROM THE GIVEN STRING


AND PRINT THE SAME WITHOUT VOWELS

VALIDATE AND PRINT THE CORRECT PHONE


15 27.08.24
NUMBERS

You might also like