Explore BrainMass

Java program to write tax information to a text file

Write a Java application to accomplish the following task:

Ask users to input the amount of tax they paid for the past 3 years.
Write this information to a text file.
After you are done, zip "compress" the text file and the java source file along with screen shot of your output, and submit.

Solution Preview

Please note that this is not a ready-to-submit solution, something that is prohibited by brainmass.

This response consists of 3 attachments:
- (Java source code)
- taxdata.txt (text file generated by the program)
- 596977.jpg (screenshot showing program execution and generated text file ...

Solution Summary

The olution reads tax information from single user in each run and writes that to the designated text file, overwriting that file during each run. It does not use array and for loop.