Skip to content

Ramya-Mahi/Student-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Student-Management-System

Table of Contents

Problem Statement

Develop a simple command-line application to manage student records using C++ programming language. The application should allow users to perform basic operations, such as adding students, viewing student information, and listing all students. You need to create classes and methods to implement this functionality. Requirements:

  1. Create a Student class with the following attributes:
    Student ID (int)
    Name (String)
    Age (int)
    Grade (double)

  2. Create a StudentManagementSystem class to manage student records. This class should include the following methods:
    addStudent(Student student): Add a new student to the system.
    getStudent(int studentID): Retrieve and display the information of a student by their ID.
    listAllStudents(): List all students in the system with their ID, name, age, and grade.

  3. Implement a simple command-line interface to interact with the system. You should provide options to:
    Add a new student (prompt for ID, name, age, and grade).
    View a student's information by entering their ID.
    List all students.
    Exit the application.

  4. Constraints:
    Each student's ID is unique, and there can be multiple students with the same name.
    Age should be a positive integer.
    Grade should be a double between 0.0 and 4.0.

Code in CPP

Check out the Solution of the problem in CPP by clicking here

Steps for Executing CPP using Command Line

Once the code in CPP is created to execute it on Command Prompt, the following steps are used:
Step 1: Open the Command Prompt
Step 2: Navigate to the directory
cd C:\Users\ramya\Documents
Step 3: Compile the C++ program
g++ -o output Student_Management_System
Step 4: Run the Executable
output.exe
Step 5: Check the output
The output of the program will be displayed in the command prompt

Images of the Output

Inputs
aa1
Viewing details of a student
aa view
Listing out all the students details
aa list
Checking the uniqueness of student id
aa unique
Checking the age constraint of the student
aa age
Checking the grade constraint of the student
aa grade

Tools

1.CPP
2.Command Prompt

About

Student Management System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages