Skip to content

madisonlowe/studentFinanceCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Student Finance Repayment Calculator

This is a console application which can take in a number of relevant arguments and appropriately return the percentages and amounts of student loan repayments that would be deducted from a given wage. I've been getting into C# and wanted something to do that I could experiment with the basics on, so here we are. There's definitely a lot to tidy or improve - suggestions and notes welcome - but this was a fun first exercise, and I'm excited to build more things in the language!

Huge caveat on content that the UK student loan system is dark magic, subject to regular change, and none of this in any way constitutes mathematically or programmatically sound financial advice.

Notes & Learned

  • When declaring variables in cases for a switch case, single speech marks are what will cast a number to char type. Ie. case '1' will look for char input of 1 whereas case 1 would look for an int and case "1" would look for a string.

  • Keeping with switch cases, didn't realise you could assign more than one case to an outcome. Eg:

switch (example)
{
    case "1":
    case "one":
        // Code to be performed here.
}

About

UK-based student finance contributions calculator, console app written in C#.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages