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 
• 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

27 Apr 2023
Answer :
Word Count : 1076

Here is a C program that uses structures to create an interactive student database management application for a small school:

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

struct Student {
    char name[100];
    int roll_no;
    char student_class[10];
    float fees;
    char admission_date[20];
};

void createRecord(struct Student* student) {
    printf("Enter Student Name: ");
    fgets(student->name, sizeof(student->name), stdin);
    student->name[strcspn(student->name, "\n")] = 0; // Remove newline character

    printf("Enter Student Roll Number: ");
    scanf("%d", &student->roll_no);
    getchar(); // Consume newline character left by scanf

    printf("Enter Student Class: ");
    fgets(student->student_class, sizeof(student->student_class), stdin);
    student->student_class[strcspn(student->student_class, "\n")] = 0;

    printf("Enter Student Fees: ");
    scanf("%f", &student->fees);
    getchar(); // Consume newline character

    printf("Enter Date of Admission (DD/MM/YYYY): ");
    fgets(student->admission_date, sizeof(student->admission_date), stdin);
    student->admission_date[strcspn(student->admission_date, "\n")] = 0;
}

void listRecords(struct Student* students, int count) {
    if(count == 0) {
        printf("No records available.\n");
        return;
    }

    printf("List of Students:\n");
    for(int i = 0; i _________ ____ ______ ___ ___ _____ ________.
__________ _______ _______ ___ _____ __________.
__________ _____ __________ __________ ______ __________ __________ ________ __________ __________ ___.
________ __________ _________ _________ _________ ______ ___ __________.
____ _________ ______ ___ _________.
__________ __________ _____ _____ ________.
_________ ___ _____ ____ __________ _____ _________ ______ ______.
______ ___ ______ ____ _________.
________ ___ ________ ________ _____.
____ _________ _____ ________ __________.
________ _______ ___ ___ _________ _____.
________ ________ __________ ____ ___ _______ _______ ____.
__________ _________ __________ ____ _________ __________ _______ ____ ___ _______ ____ _____.
___ ________ ________ ________ ________ ___ _____ ___.
_______ ___ ___ _____ ____ ______ ______ _____.
___ _______ _______ _____ _________.
___ ____ ___ _______ __________ __________ _____.
_______ _______ ________ ____ ______ ________ _____ _____ ___ ___.
__________ _______ ___ _______ _________ ______ _____ _______ __________.
________ _________ ____ ____ _______ __________ _______ _________ ________ _______ _________.
_________ ___ __________ __________ __________.
______ _________ _______ ____ __________ ____ ___ __________ ___ ____.
_________ ____ _________ ___ ________ ____ _______ ______ _____ ______ ____ _______.
_______ __________ ___ ___ _______ _____ _______ _________ _____ _____ _____.
______ ________ _______ ______ __________ _____ ______ _______ ___ ___.
_______ ____ __________ ________ ________ ______ ___ ________ _________.
__________ __________ _________ ____ ___.
_________ _________ ___ _________ ______ ____ ____ _________ _______.
__________ _________ ________ ___ ______ ________ ___ __________ _______.
_______ ____ _________ __________ _______ __________ ____ ____ ____ ___.
______ ________ ______ _____ __________ _______ ______ ______ ___ ______ ___ ______.
_____ ___ ______ ___ ______ ___ _______ ___ _______.
_________ _________ __________ _________ _____ ___ ________ ______ ______ _______.
__________ _____ _________ ____ _______ ________ _____.
_______ ___ __________ _________ ________ _____ __________ _____ _________ __________ ______ _______.
__________ ______ ___ _______ ____ ________ _________ __________.
___ ____ ___ _________ ________ _______ ________ ___ ___ _________ _____.
__________ ___ _______ _________ _________ _________ __________ _________.
__________ _______ _______ _______ _______.
___ _____ __________ _____ _______ ______ __________.
_________ ________ ______ __________ ____ ___ _________ _______ ____ ______ _______ _______.
__________ _______ ___ ______ _____ ___ ___.
___ __________ ____ ______ ___ _______.
________ _________ _____ __________ ______ ________.
____ ________ ___ _________ _____ _______ _______ ___ ___.
_______ _________ ___ ___ _________ _____ ____.
____ ___ ____ ___ __________.
_____ ____ ___ __________ ___ ________ __________.
_________ ________ _________ ___ ____ _________.
__________ ____ ______ ________ ______ _________ ____ ______.
________ _________ _____ _____ ________ ___ _______ __________ ___ ____.
________ ___ ___ ___ __________.
______ ________ _________ ____ ______.
_________ _______ ________ ____ ________.
____ ____ __________ __________ ___ _______ _________ __________ __________ ____ ____ ______.
_____ _________ _______ __________ ___ _______ ______.
_________ _______ ________ _____ ____ ______ ______ ____ ____ ________.
____ ____ ____ _____ ________.
_________ ____ _______ ________ ___ _________ ___ __________ ___ _______ ________ _____.
_______ ______ _____ ________ ___ _____ ___ __________ __________ _________ _____ ___.
_______ _______ _________ _______ ___ __________ __________ ______ _________ __________ ___.
________ ________ _____ ____ ___ ______ ____ __________ ______ ___.
__________ ____ ___ ___ _____ _____ ___ ________ ____ ________ ___.
__________ _______ _____ _______ _________ _________ __________ ______ _________ __________ ___ ________.
_____ ______ _______ _________ ____ __________ ____ ____ ____ ______ _____.
________ _____ ___ ____ _____ __________ ___ ____ _______ ______ _______.
______ _________ ____ ____ _____ ___ ____ _______ _______ _______.
_____ ______ _______ ___ ___ ______ _______ ________ _________ ______ ______.
______ _____ ________ ___ ____ _______ _____.
________ _______ _______ ____ _________ _____ ___ ______ __________ _______.
___ _________ __________ ___ ________ _________ _________ ________ ______ ________ __________.
___ _______ _______ _______ ___ ____ ___.
______ ____ _____ ___ ___ ___ _____.
__________ _____ ______ ______ ______ ___ ______ _________.
__________ _________ __________ ______ ____ _________ _________ _________ _____ __________ ______ ___.
____ _________ __________ ______ ______ __________ _________ _______ __________ _________.
___ _______ ____ ___ _______ ___.
___ _______ _________ _____ _____.
_________ ________ ______ ____ ________ _______ __________ _________ ___ ____ ____.
_____ _______ ________ ___ ______ ____ _________.
___ ________ ________ __________ _____ _____ ___.
___ __________ _______ _________ __________ _____ ___ ___ ____ ___ ___.
___ ____ ______ _________ ____ _______ _____ _________ ___ _____.
__________ _________ ____ __________ ________ ____ _____ ________.
_________ ________ _________ __________ ______ ____ ________ ____ ____.
_________ ______ ____ ______ ____ _____ _____.
_________ ____ ____ ___ ________.
_________ ____ __________ ___ ______ __________.
_____ ___ ____ _________ ______.
_______ __________ ________ _________ ___ _________ _______ ________ ______ _______.
_______ ______ ____ ___ __________ __________ __________ __________ ________ _____.
__________ ______ _________ _________ _____ _______ ____ ______.
________ ______ _________ ______ _______ __________ _____.
_________ ___ ______ ______ __________ ______ _______.
_________ _________ _____ __________ ________ ________ ______.
_______ _______ _____ __________ __________ ___ _____ _________ _______ __________ ___.
____ _______ ___ ________ _______ _____ _______ _________ _______.
__________ _____ ________ ____ ___ _________.
_________ ________ _________ _________ __________.
_________ _____ ______ _____ _____ _______ _______ _____ ___.
______ _______ ____ ___ _____ ________.
_________ ________ _______ ___ _____ _____ ___ ______ ________ ________ _______ ________.
____ _______ ______ _____ _______ ___ _____ ____ ___.
___ ______ ____ ___.
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
→