Festival Assignment Grade 12 - 1
Festival Assignment Grade 12 - 1
Please be informed that you are required to prepare and submit a lab report based on the
following question(s):
2. Write a C program to print Fibonacci series of 6, 12, 18, 30……upto 10 terms using loop.
5. Write a program to find sum of given ‘n’ numbers in array using function.
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.
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.
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.
Best regards,
Senate Shah
Faculty, Computer Science at Xavier Int’l College.