Question

Using Structures write an interactive program in C language to create an application
program for a small school to maintain the Student_’s database. This application should
be having menu options like (10 Marks)
• Creating a New Record
• Reading/Listing of Records
• Modify the record
•Delete the record 

Each Student_ record should have Student_Name, Student_Roll_No., Student_Class, Student_Fees, Date of Admission, etc.). The application should be designed user-friendly.

30 Nov 2023
Answer :
Word Count : 1264

To develop an interactive application in C for maintaining a small school’s student database, we can use structures to manage student records. This C program will implement a menu-driven approach to perform operations like creating new records, displaying records, modifying records, and deleting records.

### Step 1: Define the Structure

We will define a structure `Student` to hold all the required student details:

```c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define MAX_STUDENTS 100

// Defining structure for student
struct Student {
    char name[50];
    int rollNo;
    char className[20];
    float fees;
    char admissionDate[20];
};

// Function prototypes
void createRecord(struct Student students[], int *count);
void listRecords(struct Student students[], int count);
void modifyRecord(struct Student students[], int count);
void deleteRecord(struct Student students[], int *count);
int findStudentIndex(struct Student students[], int count, int rollNo);
```

### Step 2: Implement the Menu and Operations

The program will allow the user to choose an option from the menu. Based on the choice, it will call the respective function.

```c
int main() {
    struct Student students[MAX_STUDENTS];
    int count = 0; // To track the number of students in the database
    int choice;

    while (1) {
        // Displaying the menu
        printf("\nSchool Student Database System\n");
        printf("1. Create a New Record\n");
_____ ____ ____ __________ ______ _____ _____ __________ _______ ___.
_______ ____ _____ __________ ___ ____ ________ ______ __________.
_________ _____ __________ ___ _____ _____ ________ ____ __________ ___ _____ _____.
__________ ___ __________ _____ _____ _____ __________ _____ ________.
____ _________ _______ ____ ______ ________ ____ ____.
_____ _______ ______ ____ ____ _______ _________.
___ _________ ________ __________ ______ ________ _______ ______ ________ __________.
______ ________ _____ _______ _________ _____.
__________ ___ _______ _______ ______ ____ ____ ____ ____ _____ __________.
_______ ____ ________ __________ ___ _______ __________ ________.
_______ ___ ______ __________ _______ ___ _________ __________ ___ _________ __________.
__________ ____ ________ ___ __________ ___ ______ ____ ___ _____ ________ _______.
____ ___ __________ ________ ______ _____ ________ ______ ___ ____ ____ _________.
_______ ___ _________ ___ _______ _________ ___ ______.
_____ ______ _________ _______ ______ ___ ____ ___ ______.
________ _________ __________ __________ ____ _____ ______ ________ ___ _________ ______ ___.
___ _______ ____ ___ _________ ____ ____ _____ ________.
__________ _______ ____ ___ __________ _________ _____ _______ ________ _________.
___ ________ ________ _________ ________ _________ ________ ________.
__________ __________ _______ ___ _________ _______ _________ _______.
_____ _______ ____ ________ ________.
___ ____ ____ _____ ______ ________ ________ _____ _______.
_____ _______ ________ ____ ___ ___ ______ ________ __________ _____ _____ _____.
______ ___ _____ __________ _______ __________ _________ _______ _______.
____ _______ ___ _______ ________ ____ __________.
________ _____ ___ ____ _________ _________ _______ ________.
______ ______ ___ _____ _____.
_______ ____ ____ _________ ___ ___ _________ ______ ____ _____ ____ __________.
___ ____ __________ ______ ____ _________ ________ _____ ______ ____ ___.
______ ____ _______ ___ _______ ____ ______ ______ _______.
______ ________ __________ ____ ___ _________ ____ ____ ______.
__________ __________ _____ ________ __________ ___ _______ ________ ___ ________.
___ __________ ____ _____ ________ __________ _________.
____ ___ _________ ________ _________ ______ ____.
___ ______ _____ ____ _______ ______ ________.
_______ __________ ____ _________ __________.
_______ _________ _______ _________ _________ _________ ________ __________ ____ ___ ___ _____.
_____ __________ _____ _________ ____ ____ _____ _________ _______.
___ __________ __________ ____ _____ ____ ____ _________.
_________ ___ ____ _____ ______.
_________ __________ __________ _______ __________ ______ _______ ___.
_____ _______ ____ _______ ___ ______.
________ __________ _______ ___ _____ ___ _____ ________ __________.
__________ ___ ____ _____ _____ _____ _________ ______ _____.
____ ______ ______ _________ _________ ___ _________ _________ ______ ________.
_____ ________ ______ ________ _______ ________ ________ ___ ___ _________.
______ ____ ______ ________ ____ ____ ______ ___ ___ _______.
____ ____ ______ _____ _______ ________ ________ ________ ______.
__________ _______ ___ __________ _____ ________.
___ ___ _____ ___ ________ __________ __________ ____ _________ ___.
________ _______ _________ ________ _______ ___ _________ __________.
_________ _________ ___ _________ ______ ____ _________ _________ _____ _____ ___.
______ _____ ____ _______ _________ ___.
___ _________ ___ ____ ______ ________ ___.
__________ _______ ____ _____ ___ ________ _____.
__________ ________ ________ _______ ______ ______.
________ _________ ________ _____ __________ _____ __________ ___ ________ ___ _____ ____.
_______ _____ ______ ___ ____ _______ _________ _________ ________ _____ ____.
___ ________ _______ ___ _________ ______ ______ __________ _____ ____.
_______ ___ ________ ____ ________ ___ ___.
_________ __________ ____ _____ __________ ________.
_________ ___ _____ __________ ______ ______ _________ ___.
________ ___ __________ ___ ___.
______ _________ __________ __________ _____ ______ ________ ____ ____ ________.
_____ _________ ______ ______ ___ ________ ___ ____.
___ _________ ________ _____ ___ _______ _____ ____ ___ ___ ___.
__________ ____ ______ ___ ___ _______ _________ ________ _____ ________ ___ _____.
_______ ____ ___ _______ _______ _______.
_______ __________ _______ ________ ___.
________ ______ ____ ____ ______ _______ _________.
______ ____ _____ __________ _____ _____ ____ ______ _______ ______ ___ __________.
____ _______ ______ ________ _____ ___.
______ ____ __________ ___ __________ __________ ___ ______ _______ _______ ________.
______ ____ ____ ____ _____ ______ ________ _____ ______ __________ ____.
______ _______ ___ ___ ______ ________.
___ ________ ______ _____ __________ _______ _____.
_____ ________ _______ _______ ______ _______ __________ ________.
__________ ________ __________ ________ _______ ____ ______.
___ _________ _______ ________ ________ ________.
________ ________ ____ ______ ________ ______ _______.
___ _____ __________ ________ ________ ______ _______ _____.
___ __________ ____ _______ ______ _________.
____ ___ ___ ___ ___ ___ _______ ___ __________ _________ _________.
______ ___ ____ ______ _____ _________ _________ ________ _______ _________ __________ ___.
_______ _____ ________ ___ _______ ___ ____ _____.
____ _____ __________ ______ ________ ______ ______ _________ ____ _____.
_____ ____ _____ _______ ____ _______ ____ ___ _____ _________.
____ __________ _______ _____ ________ ______ _____ ____ _____ ________.
___ ______ ______ ______ __________ ____ ___.
__________ ___ ______ ___ _________.
_______ __________ _______ __________ ______ _____ _____ __________ _______.
_____ ________ _____ ________ __________ _____ ________ ________ _________ _____.
_____ ______ ____ __________ _____.
__________ _____ ____ _____ ________ _________ _________ ______ __________ __________ _____ ___.
__________ _________ ___ ________ __________.
______ ___ _____ _____ _______ _________ __________ _________ ______ ____ ________ ________.
________ _________ _________ _______ _________ _____ ________ ____ ________ ___ _________ __________.
____ ___ ____ ________ __________ ____ ___ _____ _________.
_______ ____ _________ ____ _____.
______ __________ ________ __________ _________.
___ _______ ___ _____ __________ _______ __________ ______ __________ __________ ______ ________.
_________ ____ _________ ________ _______ _______ _____.
________ ____ ________ ________ __________ __________ ____ ___ _____ __________ _____ ________.
_______ ___ ________ ________ ___ _____ ______ ________ ________ __________.
________ _____ _____ _____ ________ ________ _______ ________ _______ _________.
_____ __________ _______ ____ ____ ____ ___ ___.
___ ________ __________ ______ _______ ___ ___ ____ ____ ________ _________.
_______ _________ _________ ____ ____ ___ ______ _________ _______ _______ ___.
______ ________ ___ ____ ____ _________.
_______ __________ ______ ___ _______ ___ _____ ____.
________ ____ ____ _______ ____ ______ ______ _____ ______.
______ _______ _____ _____ ___ ___ __________ _____ ______ ______.
__________ ____ ________ _____ ________ ____ ________ ________ _________.
______ _______ _________ ________ _____ ____ ____ ________ _______ _____ _________ ___.
___ ___ _____ ________ _______ ______.
____ ________ _________ _________ __________ _________.
__________ _________ __________ ____ _________ ____ __________ ________.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Using Structures write an interactive program in C language to create
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support