Skip to content

A C++ application managing student rosters, demonstrating object-oriented programming and memory management.

Notifications You must be signed in to change notification settings

EricJamesCrow/Class-Roster-University-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Class Roster Management System

This is a C++ application that manages a roster of students for a university project.

Overview

The application is designed to maintain a current roster of students within a given course. Student data for the program includes student ID, first name, last name, email address, age, an array of the number of days to complete each course, and degree program.

The student data is read from a predefined list, parsed, and stored in a roster. The application includes features for adding and removing students from the roster, printing student details, and computing and printing average days to complete a course. It also verifies student email addresses and prints all invalid ones.

Project Structure

The project consists of six source code files:

  • degree.h: Contains the definition of an enumerated data type DegreeProgram for the degree programs.
  • student.h and student.cpp: Define the Student class, which includes student-specific data and related functions.
  • roster.h and roster.cpp: Define the Roster class, which contains an array of Student objects and functions to manipulate the student roster.
  • main.cpp: Contains the main function, which demonstrates the required functionality of the application.

How to Compile and Run the Program

This application is built using C++ and can be compiled and run using any C++ compiler, such as g++, clang, or Visual Studio.

Here are the basic steps to compile and run the application using g++:

  1. Open a terminal in the project directory.
  2. Compile the program with the following command:
    g++ -o roster degree.h student.h student.cpp roster.h roster.cpp main.cpp
    
  3. Run the program with the following command:
    ./roster
    

Please adjust the commands according to your operating system and compiler.

Functionality

The application demonstrates the following functionality:

  1. Print out to the screen the course title, the programming language used, student ID, and student name.
  2. Creation of an instance of the Roster class called classRoster.
  3. Adding each student to classRoster.
  4. Printing all student data, invalid email addresses, and average number of days for each student to complete the course.
  5. Printing student data for a specified degree program.
  6. Removing students from the roster by student ID.
  7. Implementing the destructor to release the memory that was allocated dynamically in Roster.

Author

Eric Crow

About

A C++ application managing student rosters, demonstrating object-oriented programming and memory management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages