Skip to content

TimKuo0927/CareerCruising-backendInterviewTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

GraduationTracker

Overview

GraduationTracker is a C# project that determines whether a student has graduated based on their course marks and a diploma's requirements.
It calculates the student's academic standing (e.g., Remedial, Average, MagnaCumLaude, SumaCumLaude) and ensures all graduation criteria are met, including minimum credits and passing all required courses.

Features

  • Checks if a student meets all diploma requirements
  • Calculates total credits earned from passed courses
  • Determines academic standing based on average marks
  • Provides detailed graduation results

Prerequisites

  • .NET 8 SDK
  • Visual Studio 2022 or later (recommended)

How to Run

1️ Clone the Repository

git clone <your-repo-url>
cd GraduationTracker

2 Build the Solution

Open the solution in Visual Studio 2022 and build, or use the command line:

dotnet build

3 Run the Unit Tests

Use Visual Studio's Test Explorer, or run from the command line:

dotnet test

4 Usage

The main logic is in the GraduationTracker class. You can use the HasGraduated method to check a student's graduation status:

var tracker = new GraduationTracker();
var result = tracker.HasGraduated(diploma, student);

// result.Item1: bool    -> graduated or not
// result.Item2: STANDING -> academic standing
// result.Item3: int     -> credits earned

Project Structure

GraduationTracker/             # Core logic and models
GraduationTracker.Tests.Unit/   # Unit tests for graduation logic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages