Find and display the total owed for all taxpayers

Assignment Help Database Management System
Reference no: EM13945489

You have been asked by a tax return preparer to create a program which will help him calculate taxes. This preparer will at most have 100 clients. For each client, he has to keep track of the client's first name, last name, gross income, and number of children. Use parallel arrays to store this information for him.
A taxpayer's federal tax due is calculated as follow. First, the taxpayer gets a dependency exemption deduction of $2,000 for each child. So, if a taxpayer has two children, he or she will get a dependency exemption deduction of $4,000. A taxpayer gross income is reduced by the amount of the dependency exemption deduction to determine his taxable income.

The amount of tax due is a percentage of taxable income. If taxable income is greater than or equal to $100,000, the tax due is 30% of taxable income. If taxable income is greater than or equal to $50,000, but less than $100,000, the tax due is 20% of taxable income. If taxable income is less than $50,000, tax due is 10% of taxable income. A taxpayer cannot have a negative tax due - if his taxable income is less than 0, his tax due Is 0.

Present the user with a menu of the following four choices

1. Add taxpayer info (This will allow the user to enter the info (first name, last name, gross income, number of children for ONE taxpayer )

2. View info for all taxpayers (This will allow the user to view info for all taxpayers: first and last name, gross income, number of children, tax due.)

3. Find and display the total owed for all taxpayers

4. Exit the program (If the user choices 4, the program will exit. If the user chooses 1, 2 or 3, the program will do what the menu item says it will do, and then the menu will appear again.

Use methods appropriately. Please document your code.

- Design Documents: an IPO (Hierarchy Chart) and either a detailed flowchart or pseudo code.

- Create a Solution in a .java file

Reference no: EM13945489

Questions Cloud

Which policy is better for government during a recession : Keynesian economists would suggest that, during a recession, the government should use stimulus efforts to help support the economy during that recession. Explain which perspective, Keynesian or Austerity, is better policy for government during a r..
Why is vapor pressure of a compound important in remediation : What kind(s) of technology is good for removing contamination from deep seated sites in the subsurface with high concentration of contaminants and why?.
Analysts now expect that dividends will grow annually : Analysts now expect that dividends will grow annually by 3%. Calculate the firm value.
The debt to asset ratio : The cost of equity is 13% and the after-tax cost of debt is 7.5%. The debt to asset ratio is 40%. Calculate the value of the firm.
Find and display the total owed for all taxpayers : Exit the program (If the user choices 4, the program will exit. If the user chooses 1, 2 or 3, the program will do what the menu item says it will do, and then the menu will appear again.
Use simultaneous equations to determine theoptimal : Use simultaneous equations to determine theoptimal values of the decision variables.
Balance in the pbo to change : What are some events that may cause the balance in the PBO to change
Why statistical analysis is used in criminal justice : Evaluate why statistical analysis is used in Criminal Justice/Security Management research, Evaluating sources (references) for Criminal Justice/Security Management research and Evaluate ethical research concerns as it applies to Criminal Justice/Sec..
An electricity supply authority records on an electricity : At the end of the program, compare the total electricity usage accumulated in the program with the value provided in the header record, and print an appropriate message if the totals are not equal.

Reviews

Write a Review

Database Management System Questions & Answers

  Describe the features of a database management system

Describe the features of a Database Management System (DBMS) and its use within an organization.

  Prove that your algorithm correctly computes the attribute

Describe a linear-time (in the size of the set of FDs, where the size of each FD is the number of attributes involved) algorithm for ?ndingthe attribute closure of a set of attributes with respect to a set of FDs

  Draw an erd containing the order and customer entity

Draw an ERD containing the order and customer entity types connected by a 1-M relationship from customer to order. Choose an appropriate relationship name using your common knowledge of interactions between customers and orders.

  Alexander, the great: strength, weakness and contributions

There were immense qualities for Alexander, the great as a leader. One of the greatest qualities a leader should have is ambition.

  Explain which transaction satisfy two-phase locking protocol

Please briefly explain whether the following schedule has a deadlock. Your grade depends on both your answer and explanation and please briefly explain which transactions satisfy two-phase locking protocol and which don't.

  Database design morgan importing problem

Phillip Morgan, the owner of Morgan Importing, makes periodic buying trips to various countries. During the trips, he keeps notes about the items he purchases and basic data about their shipments. He hired a college student as an intern, and she t..

  Compute the customer margin for the hoium family

Compute the activity rates (i.e., cost per unit of activity) for the activity cost pools. Round off all calculations to the nearest whole cent.

  Evaluate limitations of your selected big data technology

Evaluate the strengths and limitations of your selected Big Data technology.

  Triggers important in database systems

What are triggers used for, and why are they important in database systems? Provide an example of a situation where a trigger would be appropriate.

  Protecting data warehouses and employee privacy

What should a company consider installing on the network perimeter to prevent direct connections between the internal network and the Internet to help protect its data warehouses and employee privacy?

  Write pseudo code for make-set find-set and union

Write pseudo code for MAKE-SET, FIND-SET, and UNION using the linked-list representation and the weighted-union heuristic. Make sure to specify the attributes that you assume for set objects and list objects.

  Ithis hands-on assignment you will be expected to learn

in this hands-on assignment you will be expected to learn a. how to interactively query a database by using sql

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd