1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
fenix001 [56]
3 years ago
5

Write a c++ application that computes gross salary for Mr.A,given that during the interview session and before started work, it

was agreed that his hourly wage would be Ghs 47. Assume that he worked for 387 hrs and he resigned. Compute also his Net salary given the under listed information:
Taxes. Value. Tax1. 4.7%ofgross. Tax2. Gh 87. Tax3. 3.2% ofgross. Tax4. Gh 3. Tax5. 0.4 of gross.

Given that extra dispensation is given to employees in the form of bonuses. Compute the take home pay from the table below.




Net salary. Bonus.

0-10. 5% of net value.
11-500. 10% of net value
501-1000. Ghs 500
1001-2000. Ghs 600
Above 2000. 5% of net salary
Computers and Technology
1 answer:
Marta_Voda [28]3 years ago
7 0

Answer:

# include <iostream>

using namespace::std;

int main()

{   int hours;

float hourly_rate= 47;

double net_Sal;

float tax1;

float tax2;

float tax3;

float tax4;

float tax5;

double gross_Pay;

float bonus;

   cout<<"Enter net hours worked";

   cin>>hours;

   net_Sal= 47 * 387;

       tax1 = (4.7 * net_Sal)/100;

       tax2= 87;

       tax3=(3.7 * net_Sal)/100;

       tax4=3;

       tax5=(0.47 * net_Sal)/100;

       gross_Pay= net_Sal- tax1 - tax2 -tax3 - tax4 - tax5;

       float temp=gross_Pay;                  

       double in_hand;

       if (gross_Pay<10)

       {

           bonus= (5 * gross_Pay)/100;

           in_hand=gross_Pay+bonus;

           gross_Pay=gross_Pay-gross_Pay;

       }

       else if (gross_Pay>10 ||gross_Pay<500)

       { bonus= (10 * gross_Pay)/100;

         temp=gross_Pay-gross_Pay;

         in_hand=in_hand+bonus;

       }

       else if (gross_Pay>500|| gross_Pay<1000)

       { bonus= 500;

         gross_Pay=gross_Pay-gross_Pay;

         in_hand=in_hand+bonus;

       }

       else if (gross_Pay>1000 || gross_Pay<=2000)

       { bonus= 600;

         gross_Pay=gross_Pay-gross_Pay;

         in_hand=in_hand+bonus;

       }

       else if (gross_Pay>2000)

       { bonus= (5 * gross_Pay)/100;

         gross_Pay=gross_Pay-gross_Pay;

         in_hand=in_hand+bonus;

       }

        cout<<"in hand="<<in_hand;

        return 0;

}

Explanation:

Please check the answer section. The only complex part of this question is number of variables, and if loop conditional statements.

You might be interested in
Acciones de un lápiz
Hatshy [7]

Answer:

Escribe (writes) , dibuja (draws)

Explanation:

translations

6 0
3 years ago
NEED HELP FAST
olganol [36]
The answer is b absloute is very incorrect because the ressinanse is a very important period


3 0
3 years ago
Read 2 more answers
How can I master networking my home/business computer(s) - Tv's - iot devices and make the whole system as secure as possible?
vagabundo [1.1K]

Answer:

you can take guide from

hope this will help you....!

5 0
3 years ago
ABC IF U HAVE A LEGENDARY PET ON ADOPT ME OR ANYTHING COOL!! &lt;3
Paraphin [41]

Answer:

ABC PLEASE

Explanation:

5 0
3 years ago
Read 2 more answers
I love science its my favorite subject
Charra [1.4K]

Answer:

Nice!

Explanation:

i like physics and biology :)

4 0
3 years ago
Read 2 more answers
Other questions:
  • Dial-up connections can be made over a(n) ____ line or phone line. isdn dsl ipx tcp/ip
    12·1 answer
  • Which of the following is true of property?
    13·1 answer
  • Which of the following is an example of a good listening skill? A. Replying to the caller as "you" rather than using his or her
    9·2 answers
  • PLEASE HELP<br><br><br> i’m doing a internet safety brochure. what is a good hook ?!
    14·1 answer
  • Your company has a wireless network for its small office network. The wireless network does not broadcast its service set identi
    11·1 answer
  • The Software Engineering Code of Ethics and Professional Practice was developed by Select one: a. Computer Professionals for Soc
    7·1 answer
  • Which type of CPU instruction performs arithmetic calculations and stores the results in memory?
    14·2 answers
  • Write a programmer defined function that compares the ASCII sum of two strings. To compute the ASCII sum, you need to compute th
    6·1 answer
  • Your program will be used by many departments at the university. Your comments will be important to their IT people. What would
    15·1 answer
  • Why does a crane need to rotate/swivel​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!