Absolute C++
Absolute C++
6th Edition
ISBN: 9780133970784
Author: Walter Savitch, Kenrick Mock
Publisher: Addison-Wesley
Question
Book Icon
Chapter 1, Problem 6PP
Program Plan Intro

List of variables:

working_hours: Store the working hours for the employees.( Taken as 7 hours)

dependents: Store the number of dependents.

regular_hours: Store the number of regular hours.

Total_income: To store the total income.

List of functions used:

cin(): To take input from input streams like keyboard, files etc.

cout(): To display the output.

Summary Introduction:

Program will use Main () method to prompt the user to enter the number of dependents, working hours and regular hours to find the total income. The grosspay for social security is 6%, 14% for federal income tax, 5% for state income tax and $10 per week for union dues. If the number of dependents is three or more than three then an extra amount of $35 is withheld for health insurance.

Program Description:

The purpose of the program is to find the worker’s gross pay, each withholding amount and the net take-home payfor the week.

Blurred answer
Students have asked these similar questions
q no 3: A certain grade of steel is graded according to the following condition: Hardness must be greater than 40 Carbon contents must be less than 0.8 Tensile strength must be greater than 5000 The grades are as follows: Grade is 10 if all the three conditions are met. Grade is 9 if conditions 1 and 2 are met. Grade is 8 if conditions 2 and 3 are met. Grade is 7 if conditions 1 and 3 are met. Grade is 6 if only one condition is met. Grade is 5 if none of the conditions are met. Write a C++ program which will require user to give values of hardness, carbon content and tensile strength of the steel under consideration then determine the grade of steel and outputs the grade of the steel.
Al Watan supermarket has hire-purchases scheme for locals and expats. The customers will get the credit facility if they satisfy any of the following conditions: 1- The customer must hold the present job for more than 5 years and reside in the same place at least for 3 years. In this case, the customer will get credit upto rupees 300 omr. 2- The monthly salary of the customer must exceed 1000 omr and must hold the present job for more than 5 years. In this case credit will be given upto rupees 500 omr. 3- The monthly salary must exceed 1000 omr and reside at the same place at least for 3 years. In this case credit will be given upto 500 omr. 4- In the case, the customer?s monthly salary exceeds 1000 omr, holds the present job for more than 5 years and also reside in the same place at least for the 3 years, the credit facility will be upto 1000 omr 5- The credit facility is rejected for all other customers. Prepare a Decision Table for this hire- purchase scheme.
Workers at a particular company are paid at a rate of 150.00 per hour for up to 40 hours of work at hour over that is paid at a rate of 1.5 times the normal rate. From the worker’s gross pay, 14% is withheld for income tax, 5% withheld for social security system tax, and 13% is withheld for state income tax. An additional 10% is withheld if the worker has 3 or more covered dependents to cover extra cost of health insurance. Draw the flowchart and write or code the C program that outputs the worker’s gross pay, each withholding and the net take home pay for the week.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr