Purchase Solution

Java Application for Federal Tax Calculation

Not what you're looking for?

Ask Custom Question

Write a Java application to accomplish the following task:

Ask users for the past 5 years of federal taxes they have paid, save this data to an array, search for the largest and the smallest amount of tax, and display it to the screen.

Use proper data structure to solve programming task.

Purchase this Solution

Solution Summary

The following posting helps write a Java application that involves federal taxes.

Solution Preview

Attached are the following:

1. SLPAlgorithms.java (Source code implemented as specified).
2. SLPAlgorithmsOutputScreenshot.jpg (Screenshot of the running program).

Depending on build environment, you may need to declare a package name at the top of the source code.

// For reading console input
import java.io.*;

/**
* Ask users for the past 5 years of federal taxes they have paid,
* save this data to an array, search for the largest and the smallest amount of tax,
* and display it to the screen.
*/
public class SLPAlgorithms {

public static void main(String[] args) {

// Allocate for 5 years taxes
double [] taxesPaid = new double[5];

// Zero out array -- good programming practice
for ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

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.

Javscript Basics

Quiz on basics of javascript programming language.

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.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.