Purchase Solution

Java program to write tax information to a text file

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

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.

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 ...

Purchase this Solution


Free BrainMass Quizzes
Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C# variables and classes

This quiz contains questions about C# classes and variables.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.