Did you know? The name "Cool" is a tribute to the original code name of C# inside Microsoft in 2000, which stood for "C-like Object Oriented Language". This repository documents my journey in mastering it.
A robust grade calculation tool that focuses on clean code principles, strict input validation, and modern C# syntax.
Key Concepts Applied:
- Modern Switch Expressions: Using C# 8.0+ syntax for cleaner logic flow.
- Pattern Matching: Implementing logical patterns (e.g.,
> 100 or < 0) directly within switch statements. - Defensive Programming: Using
int.TryParseto prevent runtime crashes from invalid user inputs. - String Manipulation: utilizing
SplitwithStringSplitOptions.RemoveEmptyEntriesto handle edge cases like extra whitespace. - Control Flow: Efficient use of
foreachloops and conditional breaks.