Purchase Solution

function to calculate taxes

Not what you're looking for?

Ask Custom Question

Write a function calculateTaxes () that calculates and returns the amount of city incom tax and the amount of federal income tax to be withheld from an employee's pay for one pay period. Assume that city income tax withheld is computed by taking 1.15 percent of gross pay on the first $40,000 earned per year and that federal income tax withheld is computed by taking the gross pay less $50 for each dependent claimed and multiplying by 20 percent.
Use this function in a program that for each of several employees reads the employee's number, number of dependents, hourly pay rate, city income tax withheld to date, federal income tax withheld to date, and hours worked for this period and then calls function calculateTaxes () to find the amount of taxes to be withheld. The program should then display the employee number, gross pay and net pay for this period, the amount of city income tax and the amount of federal income tax withheld for this period, and the total amounts withheld through this pay period.

Purchase this Solution

Solution Summary

Write a function calculateTaxes () that calculates and returns the amount of city incom tax and the amount of federal income tax to be withheld from an employee's pay for one pay period.

Purchase this Solution


Free BrainMass Quizzes
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.

C++ Operators

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

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 Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.