Skip to content

Latest commit

 

History

History
266 lines (224 loc) · 9.02 KB

replit.md

File metadata and controls

266 lines (224 loc) · 9.02 KB

University Management System

Overview

A comprehensive University Management System built in C++ with role-based access control, file-based database persistence, and extensive menu options for students, faculty, staff, and administrators.

Current State: Fully functional with complete class hierarchy, authentication system, and role-specific menus.

Last Updated: October 25, 2025

Recent Changes

  • October 25, 2025: Complete Database with Grades and Honor Roll

    • Added 405 grade records for all student enrollments
    • Implemented honor roll recognition (12 students, 11.4%)
    • Dean's List: 2 students with GPA ≥ 3.75
    • Honor Roll: 10 students with GPA ≥ 3.5
    • Realistic grade distribution (Average GPA: 2.90)
    • Generated comprehensive GPA reports
  • October 25, 2025: Database Fully Populated with Realistic Test Data

    • Integrated 165 user accounts (5 admins, 20 faculty, 35 staff, 105 students)
    • Populated 197 courses across 15 departments
    • Created 405 enrollments (3-5 courses per student)
    • All passwords hashed and ready for testing
    • System fully operational with realistic data
  • October 25, 2025: Complete implementation of University Management System

    • Created comprehensive class hierarchy with Person base class
    • Implemented specialized classes for Students, Faculty, Staff, and Administrators
    • Built file-based database management system with data persistence
    • Implemented secure authentication with password hashing
    • Created role-based access control (RBAC) system
    • Added extensive menu options for all user roles

Project Architecture

Class Hierarchy

Base Class

  • Person: Base class with common attributes (ID, name, email, phone, address, username, password, role)

Student Classes

  • Student: Base student class with major, GPA, enrollment status, academic standing, credits, advisor
  • UndergraduateStudent: Extends Student with graduation year
  • GraduateStudent: Extends Student with thesis title and research area
  • HonorsStudent: Extends Student with honors program information

Faculty Classes

  • Faculty: Base faculty class with department, office location, office hours, courses teaching
  • Professor: Full Professor
  • AssociateProfessor: Associate Professor
  • AssistantProfessor: Assistant Professor
  • Lecturer: Lecturer position

Staff Classes

  • Staff: Base staff class with staff role, department, office location
  • AdministrativeStaff: Administrative staff members
  • TechnicalStaff: Technical support staff
  • AdvisorStaff: Academic advisors with advisee management

Administrator

  • Administrator: System administrators with full access

Academic Entity Classes

  • Course: courseID, name, credits, department, schedule, instructor, capacity, enrollment
  • Department: departmentID, name, department head, building
  • Major: majorID, name, department, required credits
  • Enrollment: Links students to courses with semester information
  • Grade: Stores student grades with letter and numeric values
  • Appointment: Manages advisor appointments with students

System Components

Authentication System

  • Secure password hashing using hash function
  • Username and password validation
  • User role identification
  • Credential storage in data/users.dat

Database Management System

  • File-based storage in data/ directory
  • Files: users.dat, courses.dat, enrollments.dat, grades.dat, appointments.dat
  • CRUD operations for all entities
  • Data persistence across sessions

Role-Based Access Control (RBAC)

  • Different menu options based on user role
  • Permission enforcement for sensitive operations
  • Isolated functionality for each role type

Menu Options by Role

Student Menu (12 options)

  1. View Registered Courses
  2. View Grades
  3. View Transcript
  4. View GPA
  5. Register for Course
  6. Drop Course
  7. View Class Schedule
  8. Book Advisor Appointment
  9. View Appointments
  10. View Financial Aid Status
  11. Update Personal Information
  12. View Profile

Faculty Menu (11 options)

  1. View Assigned Courses
  2. Update Student Grade
  3. View Class Roster
  4. Post Assignment
  5. Record Attendance
  6. View Office Hours
  7. Submit Grade Report
  8. Update Course Syllabus
  9. View All Courses
  10. Update Personal Information
  11. View Profile

Staff Menu (10 options)

  1. Manage Student Records
  2. Generate Reports
  3. View Department Data
  4. Schedule Courses
  5. Manage Enrollments
  6. Process Registration
  7. View All Students
  8. View All Courses
  9. Update Personal Information
  10. View Profile

Administrator Menu (10 options)

  1. User Management
  2. Generate System Reports
  3. Manage Departments
  4. Manage Courses
  5. View Audit Logs
  6. System Statistics
  7. Backup Database
  8. View All Users
  9. Create Sample Data
  10. Update Personal Information

Technical Details

Dependencies

  • C++ Standard Library (C++11)
  • No external dependencies required

Build System

  • Makefile for easy compilation
  • Clang++ compiler with C++11 standard
  • Compiler flags: -Wall -Wextra for warnings

File Structure

.
├── src/
│   └── main.cpp                # Complete system implementation
├── data/                       # Database files directory
│   ├── users.dat               # 165 users (hashed passwords)
│   ├── courses.dat             # 197 courses (15 departments)
│   ├── enrollments.dat         # 405 enrollments
│   ├── grades.dat              # 405 grades ✓
│   ├── HONOR_ROLL.txt          # 12 honor students ✓
│   ├── STUDENT_GPAS.txt        # All GPAs ✓
│   ├── LOGIN_CREDENTIALS.txt   # Test login reference
│   └── DATABASE_STATISTICS.txt # Data overview
├── Makefile                    # Build configuration
├── university_system           # Compiled executable
├── GRADES_SUMMARY.md           # Grade statistics ✓
└── replit.md                   # Project documentation

Compilation and Execution

make           # Compile the program
make run       # Compile and run
make clean     # Remove compiled files
./university_system  # Run directly

Features

User Management

  • Sign up with comprehensive personal information
  • Sign in with username/password authentication
  • Role selection during registration
  • Secure credential storage

Data Persistence

  • All data stored in pipe-delimited text files
  • Automatic file creation on first use
  • Data survives program restarts
  • Simple backup and restore capabilities

Security

  • Password hashing for secure storage (Note: Uses simple DJB2 hash for demonstration purposes; production systems should use bcrypt/scrypt/Argon2 with salting)
  • Role-based access restrictions
  • Input validation throughout
  • Protected administrative functions
  • Credentials stored separately from plaintext data

User Experience

  • Clear console-based interface
  • Screen clearing between menus
  • Pause between operations
  • Formatted table displays
  • Helpful error messages

Getting Started

Database Already Populated! ✓

The system comes with complete realistic test data:

  • 165 users across all roles
  • 197 courses in 15 departments
  • 405 student enrollments
  • 405 grades with realistic distribution
  • 12 honor roll students (11.4% of students)

Quick Test Logins

Role Username Password Special Note
Administrator admin1001 40h2lRb1a Full system access
Faculty fac1001 1tqoFQyF Teaching 5 courses
Staff staff1001 m0PcInMHV Records management
Student stu1001 BG4V66Oucp GPA: 3.36 (Good standing)
Dean's List stu1012 toa9yoRvj1 GPA: 3.75 ⭐

See data/LOGIN_CREDENTIALS.txt for all 165 user accounts.

How to Use

  1. Run the program - It's already running in the console above
  2. Sign In - Choose option 1 and use any credentials above
  3. Explore - Navigate role-specific menus
  4. Test Features:
    • Students can view enrolled courses, grades, GPA, and transcripts
    • Faculty can see assigned courses, rosters, and update grades
    • Staff can manage records, enrollments, and generate reports
    • Admins have full system access and statistics

Future Enhancements

Planned Features

  • Advanced reporting with grade distributions and analytics
  • Course prerequisite checking and validation
  • Waitlist management for full courses
  • Email notification system for deadlines
  • Enhanced security with password complexity requirements
  • Account lockout after failed login attempts
  • Degree audit system for graduation requirements

Possible Improvements

  • Export data to CSV/PDF format
  • Import bulk data from files
  • Advanced search and filtering
  • Student financial account management
  • Library integration
  • Housing and meal plan management
  • Event calendar and scheduling

Notes

  • This is a console-based application (TUI)
  • Database files are created automatically in data/ directory
  • Password hashing uses a simple hash function (suitable for demonstration)
  • All menus return to main menu on logout
  • Data validation ensures system stability