Explore BrainMass

Explore BrainMass

    Java program to write tax information to a text file

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com October 10, 2019, 7:49 am ad1c9bdddf

    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:
    - 596977-SaveTaxData.java (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.