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
-
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
- Person: Base class with common attributes (ID, name, email, phone, address, username, password, role)
- 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: Base faculty class with department, office location, office hours, courses teaching
- Professor: Full Professor
- AssociateProfessor: Associate Professor
- AssistantProfessor: Assistant Professor
- Lecturer: Lecturer position
- 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: System administrators with full access
- 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
- Secure password hashing using hash function
- Username and password validation
- User role identification
- Credential storage in
data/users.dat
- 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
- Different menu options based on user role
- Permission enforcement for sensitive operations
- Isolated functionality for each role type
- View Registered Courses
- View Grades
- View Transcript
- View GPA
- Register for Course
- Drop Course
- View Class Schedule
- Book Advisor Appointment
- View Appointments
- View Financial Aid Status
- Update Personal Information
- View Profile
- View Assigned Courses
- Update Student Grade
- View Class Roster
- Post Assignment
- Record Attendance
- View Office Hours
- Submit Grade Report
- Update Course Syllabus
- View All Courses
- Update Personal Information
- View Profile
- Manage Student Records
- Generate Reports
- View Department Data
- Schedule Courses
- Manage Enrollments
- Process Registration
- View All Students
- View All Courses
- Update Personal Information
- View Profile
- User Management
- Generate System Reports
- Manage Departments
- Manage Courses
- View Audit Logs
- System Statistics
- Backup Database
- View All Users
- Create Sample Data
- Update Personal Information
- C++ Standard Library (C++11)
- No external dependencies required
- Makefile for easy compilation
- Clang++ compiler with C++11 standard
- Compiler flags: -Wall -Wextra for warnings
.
├── 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
make # Compile the program
make run # Compile and run
make clean # Remove compiled files
./university_system # Run directly- Sign up with comprehensive personal information
- Sign in with username/password authentication
- Role selection during registration
- Secure credential storage
- All data stored in pipe-delimited text files
- Automatic file creation on first use
- Data survives program restarts
- Simple backup and restore capabilities
- 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
- Clear console-based interface
- Screen clearing between menus
- Pause between operations
- Formatted table displays
- Helpful error messages
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)
| 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.
- Run the program - It's already running in the console above
- Sign In - Choose option 1 and use any credentials above
- Explore - Navigate role-specific menus
- 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
- 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
- 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
- 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