Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2 Write CH program that solve the following problem. A company maintains a log of information about its employees in a file with the

image text in transcribed
Exercise 2 Write CH program that solve the following problem. A company maintains a log of information about its employees in a file with the following format. The company wants to find the accumulative annual taxes and monthly taxes according to the following equations. Annual_tax =(salary*12+benefits*6)*6% Monthly_tax=(salary+benefits)*2% Your program should include the following functions Tax_calculate : that calculates and return both the annual and monthly taxes according to the above equations Void Tax_calculate (int salary, int benefits, double &annual_tax,double & monthly_tax). Sum_annualTax : calculates summation of annual taxes. void Sum_annualTax (double annual_tax, int flag) Sum_monthly Tax : calculates summation of Untitled - Notepad monthly taxes. File Edit Format View Help void Sum_monthlyTax (double monthly_tax, name salary benefits int flag) ahmed 1200 120 900 97 Exercise 3 tazen 1400 55 Write a program that reads a values y from the screen, then 65 calculate the following equation only for unsigned values ahmedy 1800 120 sadon 1900 90 53 tazem maemar 143 62 I The program should contain three functions, salar mamon 143 -1 a= - 1700 Exercise 2 Write CH program that solve the following problem. A company maintains a log of information about its employees in a file with the following format. The company wants to find the accumulative annual taxes and monthly taxes according to the following equations. Annual_tax =(salary*12+benefits*6)*6% Monthly_tax=(salary+benefits)*2% Your program should include the following functions Tax_calculate : that calculates and return both the annual and monthly taxes according to the above equations Void Tax_calculate (int salary, int benefits, double &annual_tax,double & monthly_tax). Sum_annualTax : calculates summation of annual taxes. void Sum_annualTax (double annual_tax, int flag) Sum_monthly Tax : calculates summation of Untitled - Notepad monthly taxes. File Edit Format View Help void Sum_monthlyTax (double monthly_tax, name salary benefits int flag) ahmed 1200 120 900 97 Exercise 3 tazen 1400 55 Write a program that reads a values y from the screen, then 65 calculate the following equation only for unsigned values ahmedy 1800 120 sadon 1900 90 53 tazem maemar 143 62 I The program should contain three functions, salar mamon 143 -1 a= - 1700

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago