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]
4 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]4 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
Which type of digital picture is made by strong individual pixel value
8_murik_8 [283]

Answer  :a bitmap because it is a 'map' of where the 'bits' of information are stored

Explanation:

This information is stored as a sequence of numbers defining the colour of each pixel.

8 0
3 years ago
Read 2 more answers
How are a members details be checked and verified when they return to log back in to the website ?
aksik [14]

Answer:

When you sign into a website, you have to enter a password and username most of the time, which will allow the website to know that you have checked in and it is you, who is using your account.

6 0
3 years ago
Max shot a video with a digital camera. Where did the video files get stored in the camera?
Arturiano [62]

Answer:

In the memory sticks/cards of the digital camera

Explanation:

Many digital cameras come with removable storage cards in the form of memory cards, memory sticks and flask cards. Activities (pictures and videos) captured with these digital cameras are stored in these removable storage cards. These makes it easy for users to remove the storage cards and insert into other devices.

3 0
3 years ago
Why does my internet keep disconnecting and reconnecting.
3241004551 [841]

Answer:

Hmm maybe because its failing?

Explanation:

i actually dont know but it happens to me sometimes

6 0
2 years ago
How to upload themes to chrome web store
Advocard [28]
You need to go to the chrome web store, filter your search for themes, search what kind you are looking for, and then add the extension. 
3 0
3 years ago
Other questions:
  • 8.14 Consider a system in which bus cycles takes 500 ns. Transfer of bus control in either direction, from processor to I/O devi
    7·1 answer
  • The memory allocated for a float value is ____ bytes.
    9·1 answer
  • Consider a bit stuffing framing method where the start of a frame is indicated by 6 consecutive ones, followed by 2 zeroes. What
    8·1 answer
  • Toshiba Corporation makes computer chips. Toshiba Corporation would be classified as a A. merchandising company. B. manufacturin
    15·1 answer
  • In the context of machine learning, an artificial neural network (ANN) is most likely used for:a.supplying explanations for solu
    9·1 answer
  • 1. Open the start file EX2019-ChallengeYourself-9-3. The file will be renamed automatically to include your name. Change the pro
    15·2 answers
  • In order for storage devices to be prepared for use, they must be ____________ Group of answer choices pre-prepared loaded initi
    11·2 answers
  • Types of libraries in operating system​
    8·1 answer
  • Before radio, many minority musicians were severely limited by the prejudice of the era. true o rfalse
    12·2 answers
  • Un polímero sintético es renovable o no renovable
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!