Enter the following code in a file named ‘Compute.cs’:
Enter the following code in a file named ‘Compute.java’:
This minimal code chooses the tax table data file, sets the earnings per pay period to $5000, and computes the tax. Default values were taken, which for most properties is zero, except PayPeriodsPerYear which defaults to 12 (monthly).
Compile
Compile the code at the command prompt by executing the following: