Write a program that calculates the property tax owed by a homeowner.
Generate a report showing the address of the property, the assessed value of the property, the taxable value, and the property tax due. Here is a sample report:
Address: 3920 N. Maple Ave. Assessed Value: 250000.00 Taxable Value: 230000.00 Property Tax (before Nov 30): 2294.25 Property Tax (after Nov 30): 2415.00
The report should be written to an output file whose name is entered by the user.
The input is to be read from a data file whose name is entered by the user. The data file contains two lines. The first line is the address of the property and the second line is the assessed value of the property. You may assume that the input file exists and that it has no errors.
To test your program, you will have to create your own data file. Here is the data used to generate the report above:
3920 N. Maple Ave. 250000
The taxable value is 92% of the assessed value of the property. The tax rate is $1.05 per $100 of the taxable value. If the property tax is paid before Nov 30, there is a 5% discount. After Nov 30, the full amount is due.
Here is what is displayed during a sample run of the program:
The names of the files shown in the sample run are for illustration purposes only. The user is free to enter any file name for the input file and any file name for the output file.