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) {
  _________ ___ ________ __________ ___ _______.
______ _______ ________ __________ ______ ____ ___ _______ _______ ________ ____.
___ __________ _________ ___ ________ ______ _______ ________ ___ ___ ______ __________.
______ ______ ___ __________ __________ ___ _______ _______ __________ __________.
___ ____ ____ _____ _________ _________ _______.
__________ _________ ______ ______ ________ ________ ___ ____ ___.
__________ _______ _________ ____ ___.
________ ____ ______ __________ ________ ____.
_____ ___ __________ ___ _____.
_____ _________ ___ __________ _________ _______.
__________ _______ ___ _______ __________ ________ ____.
_________ ________ ____ _______ _______ ______ ______ ____ ______ ____ ____ _____.
__________ ___ _______ ________ ____ ____.
___ ___ _______ ____ ______ ___ _______ _____ _________ ___ ______.
_____ _____ _____ ______ ______ ___ ___ ___.
__________ ______ __________ _________ ________ ________.
_________ __________ __________ _______ _____ ________ ____.
______ ______ ________ ________ _______ ________ _________ _________ ____ ___ __________ __________.
________ ___ __________ _____ _____ ___ ____ _______.
_____ ____ ____ __________ ________ ______.
______ __________ ______ _________ _____ __________ _________.
________ ____ _______ ________ __________ ___ ____ _________ ________ _______ ______.
______ ________ _______ __________ _______.
____ ___ ______ _____ ______ ___ ________ _________.
_______ ______ _______ __________ _______ _______ __________ ______ ______ _________ _________.
__________ ______ _________ _________ ____ ______ _____ _______ ___ ___ __________ ___.
______ _________ __________ __________ ___ ___ _____ _________ __________ ______ _________ _____.
_______ ________ _______ ______ ________.
_____ ____ ______ __________ _____ __________ ______ _____ ____ _______ ___ ______.
__________ ________ ____ ______ ___ _____ ________.
______ ______ _________ ___ ________ __________ _______ ____ _____ ________.
_______ _______ _______ __________ _______ ________ __________ _______ _________ __________.
______ _________ _____ ___ ________ ___ _____ ______ _______ _______ __________ __________.
_________ _________ _________ ____ _________ _____.
__________ _______ __________ ___ ___ ___ _________ ___ ____.
_________ ________ _____ _____ ___ _________ _______ _____ __________ __________ ______.
_________ ______ ___ ____ __________ ___ _________ __________ _________ __________ _______ _________.
_______ _________ __________ _______ ____ ________.
_____ _____ ______ ___ ______ __________ ____ __________ ________ _______ _______.
____ ______ ____ _____ __________ ______ ______ ________ ______ _________ ___ ___.
_____ _____ _____ ________ ______ _______ __________ ________ ______ ______.
_________ __________ ____ ____ _____ _____.
_______ __________ _______ ______ _____ _______ __________ _____ _____ _________ __________.
___ ______ ___ _______ ___.
__________ ___ ________ _____ ________ __________ ____ __________ _____.
_________ _______ _____ _______ ______.
___ ________ ___ _________ ______ ______ _____ ___.
______ ______ ___ _________ ___ __________ ________ ____.
_________ ___ _______ __________ __________ ________ __________ __________ __________ _______ _________.
_______ ______ ____ _____ __________ ________ ___ _____.
___ _____ _______ ____ _________ __________ ________ __________ _________.
______ ________ _______ ______ __________.
_____ _____ _________ ______ _________ ______ _____.
____ _____ ______ ____ ________ _________ ___ _________ _____ _______ ________.
__________ _____ ________ _________ _____ ___.
____ _________ _____ _________ _______ __________ ________ ________ ____ ___ ____ _______.
_____ _______ ________ ______ _______ ______ _________.
__________ _________ ________ __________ ____ __________ ________ _________ ___ ______ ___.
___ _________ _________ _________ ____ ____ ___ _____ _____ _________ _____ _______.
_________ __________ _________ _______ ____ _______ _____ ___ _______ __________.
__________ ______ ___ ____ ______ _______ ___ _______ _________ ________ ___.
________ _____ ___ _________ ________ _____ ______ _________ ______ ______ ______ ___.
____ ___ ______ ________ ________ ____ _______ ________ _________ _________ _________ ______.
_____ _______ ___ _________ ________ ____ ________ _______ ___ ______ ________.
_____ ________ ____ ____ ______ _____ ______.
________ _______ ________ ______ _________ _____ ___ _________.
_______ _____ _____ ______ ____ __________ _________ _________ ____ _________ __________ _______.
____ __________ ______ _____ __________.
____ _____ _________ ____ _________ _________ _______ ___ ________ _______.
__________ __________ ______ ______ __________ _____ _______ ____ _____ ___ _________.
_________ ___ ____ _____ ____ _________ _______ ___.
______ ________ ____ ___ ______ __________ ____.
____ _________ _________ __________ _____ _____ __________ _____ ________ ___ ________.
______ _______ _______ _______ ______ __________ ____ _______ _____ __________.
________ ________ _____ __________ __________ _________ _____ ___.
_______ ______ ______ _____ _______ __________ ____ __________ _____ __________ ___.
_________ ____ ________ __________ _______ ______ _________ ___ ________ ______ ____.
____ _________ ________ ______ ___ _________ _______ __________.
__________ ______ _______ ____ ______ ___ _________ ______ ____ _____ ___.
_______ ______ __________ ____ _____ _________ _______.
_____ ________ __________ ____ _________.
____ _____ __________ ___ ________ ____.
_____ __________ _______ __________ _________ ________ _________ __________ _______ __________ ______.
_____ _______ ______ __________ _____.
___ _______ _____ ________ ____ ____ ____ __________.
_____ _________ _________ ______ __________ _____ _________.
______ ________ _______ ______ _____ _______ ______.
________ ___ __________ ____ _____ ____ __________ ____ ____ __________.
___ ________ ______ _________ ____ __________ ________ ____.
____ _________ ________ ________ __________ _________ ______.
_____ __________ ______ ________ ____ _____ _____ ________ ___ _____ __________ _________.
________ _____ ___ __________ _______ __________ ________ _____ _____ ________.
______ ______ _____ __________ ________ _______.
____ _________ ________ _____ _____ _____.
_________ _____ _______ ________ ______ ________ __________ __________.
______ ________ _______ ________ __________ ______.
_____ ____ __________ _________ ______ ___.
________ ___ ______ _______ ______ ______ ______ _____ _________ ___.
__________ ______ _____ ___ _____.
_____ _____ ______ ____ ___.
__________ _________ __________ ______ ______ _____ _______ __________ _____ ___.
____ _________ ________ ______ ___ ____ _____ ___ __________.
____ ______ _______ ______ ______ _____.
________ _________ __________ ______ __________ _________ __________.
________ ____ ___ __________ _____ ________.
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