0% found this document useful (0 votes)
11 views2 pages

Festival Assignment Grade 12 - 1

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)
11 views2 pages

Festival Assignment Grade 12 - 1

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/ 2

Dear Students,

I hope you are looking forward to the upcoming festival holidays!

Please be informed that you are required to prepare and submit a lab report based on the
following question(s):

1. Write a C program to calculate the factorial of a number using function.

2. Write a C program to print Fibonacci series of 6, 12, 18, 30……upto 10 terms using loop.

3. Write a C program to find the nth Fibonacci number using recursion.

4. Write a function to reverse a given string using recursion.

5. Write a program to find sum of given ‘n’ numbers in array using function.

6. Write a C program to implement a simple calculator (add, subtract, multiply, divide)


using functions.

7. Write a C program to find the sum of digits of a number using recursion.

8. Write a C program to find greatest number among different numbers using array
with function.

9. Write a C program to find whether a given number is Armstrong or not using function.

10. Write a function that returns the number of vowels in a given string.

11. Write a function to check if a given string is a palindrome.

12. Write a C program to implement a function that takes a string and returns its length.

13. Write a C program to create a structure representing a student (name, age, and roll
number), input data for 5 students, and display the details of each student.

14. Write a C program to store information of 5 books (title, author, price) using an array
of structures and display the books sorted by price.

15. Write a C program using structure to input id, name, and salary of 100 staffs. Display
id, name and salary of those staff whose salary range from 30000 to 45000.

16. Write a program which writes “Welcome to Xavier” in a file.


17. Write a program to open a new file and read roll, name, address and phone_no of
students until user says “no”, after reading the data, write it to the file then display
the content of the file.

18. Write a program to input the employee name, address and salary of 5 employees and
display the records in proper format using structure.

19. Write a C program to rename and delete a data file using rename and remove
command.

20. Write a C program to enter id, name, and post of the employee and store them in a data
file named “record.txt”. Display each record on the screen in appropriate format.

Submission Details:

 Deadline: 11/11/2024
 Format: Printed in A4 size paper with outputs (screenshot) included in the lab sheet.
 Submission method: Printed Hardcopy

Make sure to take this opportunity to enhance your understanding of the material.

Wishing you all a joyful and relaxing holiday!

Should you have any questions, feel free to reach out.

Best regards,
Senate Shah
Faculty, Computer Science at Xavier Int’l College.

You might also like