0% found this document useful (0 votes)
33 views18 pages

Cs 12 Practical Term1

This document contains a practical file for a computer science term with 15 programming problems. It lists the problems, which include printing sums and digits of 4-digit numbers, checking mobile number validity, generating Fibonacci sequences, and working with files. For each problem, it provides the page number and leaves space for the output.

Uploaded by

Shreya Anand
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)
33 views18 pages

Cs 12 Practical Term1

This document contains a practical file for a computer science term with 15 programming problems. It lists the problems, which include printing sums and digits of 4-digit numbers, checking mobile number validity, generating Fibonacci sequences, and working with files. For each problem, it provides the page number and leaves space for the output.

Uploaded by

Shreya Anand
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/ 18

COMPUTER SCIENCE-TERM 1

PRACTICAL FILE

SHREYA ANAND
12 B
24
S.no. Program Page
1. Printing sum and digits of a 4 digit no.

separately

2. Validity of a mobile no.

3. To find whether a no. Is perfect or not

4. Printing Fibonacci series

5. To check if a no. Is Armstrong or not

6. Print factorial of inputted number

7. To check if a string is palindrome

8. Read a file line by line and print it

9. Read a text file and print no.of uppercase/

lowercase/ vowels/consonants

10. Removing all lines that contain ‘a’ in file

11. Read a text file and display each word separated

By #

12. Random number generator

13. CSV file with user-id and password

14. Binary file for name and roll no.

15. Binary file for updating marks

1.
Output:

2.
Output:

3.
Output:

4.
OUTPUT:

5.
Output:

6.
Output:

7.
Output:

8.
Output:

9.
Original file

Output:
10.
Output:

11.
Output:

12.
Output:

13.
Output:

14.
Output:

15.
Output:

You might also like