This coding challenge was originally presented by a well-known firm. It was suggested would require 2 hours.
- Console App
- Generate Monthly Payslip
- Tax Table Provided
Sample Code Input:
GenerateMonthlyPayslip "Mary Song" 60000
Sample Code Output:
Monthly Payslip for: "Mary Song"
Gross Monthly Income: $5000
Monthly Income Tax: $500
Net Monthly Income: $4500
- Install .NET CORE 3.1
- Clone the repo / unzip the file
- Go to root directory
cd /.netcore/MYOB.CodeAssessment/MYOB.Incometax.ConsoleApp/
- run
dotnet build
to build - run
dotnet run
to run console app - run
dotnet test
to run unit test