Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Pascal-Student-Management

A console project written in Object Pascal and compatible with Free Pascal.

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Pascal Student Management

A console project written in Object Pascal and compatible with Free Pascal.

Features

  • Show all students
  • Add a new student
  • Find a student by ID
  • Delete a student by ID
  • Sort students by average score in descending order
  • Calculate the overall average score
  • Load and save student data in CSV format

Project Structure

  • src/main.pas: application entry point and console menu
  • src/u_student.pas: student model and CSV conversion helpers
  • src/u_student_manager.pas: in-memory student management logic
  • src/u_storage.pas: file load/save layer
  • data/students.csv: sample data
  • build.bat: compile the project with Free Pascal
  • run.bat: compile if needed and run the app

Build

  1. Install Free Pascal so that fpc is available in your terminal.
  2. Run:
bat
build.bat

Run

bat
run.bat

Push To GitHub

After creating a repository on GitHub, add your remote and push:

bat
git remote add origin https://github.com/<your-username>/<your-repo>.git
git push -u origin main

Data Rules

  • Student ID must be unique.
  • Age must be in the range 16..100.
  • Average score must be in the range 0..10.
  • CSV fields should not contain commas.