Project Assignment
Deadline (Submission Date): 2082/08/29
- Write a program to input the radius of a football and find its area using a user-defined function.
- Write a program to generate the factorial of a given number using a recursive function.
- Write a program to determine whether a given number is positive or negative using a function.
- Write a program to input the length and breadth of a pond and find its area using a user-defined function.
- Write a program to read principal, time, and rate, and find the simple interest using a user-defined function.
- Write a program to ask the user to input n numbers and find the greatest and smallest numbers among them.
- What is recursion? Write a program to calculate the factorial of a given number using a recursive function.
- Write a program to find the sum of natural numbers up to a given number using a recursive function.
- Write a program to find the Fibonacci value of a given term using recursion.
- Write a program using a structure to input staff ID, name, and salary of 50 staff members, and display the records of those whose salary ranges from 25,000 to 40,000.
- What is a structure? Write a program to enter the name, grade, age, and address of 10 students using a structure and display their information.
- Write a program to input the names and marks of n students. Sort the data in ascending order according to marks and display them.
- Write a program to input the names and marks of n students. Sort the data in descending order according to names and display them.
- Write a program to store student number, name, and marks in Computer and Account of n students in a data file std.txt, and display the records in proper format by reading from the file.
- Write a program that reads different names and addresses into the computer and rearranges the names in alphabetical order using a structure.
- Write a program
to delete and rename a data file using the remove() and rename() commands.
- Write a program to enter the name, roll number, and marks of 10 students and store them in a file. Read and display the same data from the file.
- Write a program that reads the name, department, and age from a file named employee.dat and displays them on the monitor.
- Write a program to sort an array of n elements in descending order.
- Write a program to check whether a user-input number is odd or even using a function.
- Write a program to input the names of students and marks of 5 subjects. Calculate the total and average using a user-defined function.
- Write a program to read the marks of any 5 students in a subject and count how many students passed or failed.
- Describe the concept of file handling in C. Write a program to ask the name and address of students and store them in a data file student.dat.
- Explain the three modes of file opening in C. Write a program to create a data file named score.dat to store student information (registration number, name, gender, and address). The program should ask the user whether they want to continue, and after completion, it should display all the records in proper format.
- A sequential file std.txt contains roll number, name, and marks of 3 subjects. Write a program to display the records of students who have passed in all subjects.
- A sequential file std.txt contains roll number, name, and marks of 3 subjects. Write a program to display the records of students who have failed in all subjects.
- A sequential file std.txt contains roll number, name, and marks of 3 subjects. Write a program to display the records of students whose total marks are more than 200.
- A sequential file std.txt contains roll number, name, and marks of 3 subjects. Write a program to display the records of students whose percentage is more than 80%.