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
Consider a binary search tree where each tree node v has a field v.sum which stores the sum of all the keys in the subtree roote
AVprozaik [17]

Answer:

Each time you insert a new node, call the function to adjust the sum.

This method has to be called each time we insert new node to the tree since the sum at all the

parent nodes from the newly inserted node changes when we insert the node.

// toSumTree method will convert the tree into sum tree.

int toSumTree(struct node *node)

{

if(node == NULL)

return 0;

// Store the old value

int old_val = node->data;

// Recursively call for left and right subtrees and store the sum as new value of this node

node->data = toSumTree(node->left) + toSumTree(node->right);

// Return the sum of values of nodes in left and right subtrees and

// old_value of this node

return node->data + old_val;

}

This has the complexity of O(n).

Explanation:

6 0
3 years ago
เเปลภาษานิราศภูเขาทอง
Marianna [84]
Type it up in English
4 0
3 years ago
In which part of a presentation should you provide background information, ask a thoughtful question, or offer an interesting
makkiz [27]

The correct answer is A. Opening

Explanation:

In a presentation or the text, the opening is the first section that should allow the audience to understand what is the topic and focus. This is achieved through a hook that can include an interesting fact or a rhetorical question (a question that makes the audience think) because these two elements grab the attention of the audience. Additionally, after the hook, it is common to provide background information about the topic of the presentation, and finally, the speaker will state the main point or thesis statement. This occurs before the body of the presentation, which is the main section, and the closing, which is the last section. Thus, elements such as background information or an interesting fact are part of the opening.

8 0
4 years ago
When following proper netiquetter rules you should follow all of the following rules except _____. Question 11 options: Don't us
vfiekz [6]

The answer is C. Use sarcasm and jokes in your e-mails to make the reader laugh


Sarcasm and jokes can be difficult to understand through text-based communication like e-mails, so it is best to avoid them altogether, especially in formal settings.

6 0
3 years ago
Read 2 more answers
Which of the following are potential drawbacks to the Internet in regard to politics? Select all that apply.
mestny [16]

Answer:

A) Overexposure of candidates    B) Misinformation    C) Partisan dialogue

Explanation:

Nowadays the internet is growing exponentially which results in both the advantages and disadvantages of it. social media has become a central platform to communicate with other people.  

From the perspective of political life, there are many drawbacks of the internet, some of them are,

When rumors of any candidate spread over the internet, it results in the overexposure of candidates which is not a good sign in political life.

Another problem is misinformation as people spread only half the information which they come to know from other people but not the full information which results in misinformation.

partisan dialogue is also one of the main drawbacks of the internet in political life.  

So the most appropriate answer is option A, B, and C.

3 0
4 years ago
Read 2 more answers
Other questions:
  • When reading data across the network (i.e. from a URL) in Python 3, what method must be used to convert it to the internal forma
    9·1 answer
  • A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To ac
    11·2 answers
  • 11. The golden rule of safe driving is: A. Always drive at the posted speed limit B. Never drive while physically or mentally im
    15·1 answer
  • For homework, we have to figure out what's in the picture. It's " too close to tell " but I can't figure out what it is. Any ide
    11·1 answer
  • Networking device converts analog signals to digital ones?
    8·1 answer
  • In which country did the World Cyber Games originate?
    9·2 answers
  • What is the easiest way of ensuring that others can access a presentation that a user has created and make changes to it, while
    6·1 answer
  • A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in
    15·1 answer
  • _________________ component defines the correct granularity for access controls and oversees the relationships between identitie
    13·1 answer
  • PLEASE WRITE A ONE SENTANCE SUMMARY, WILL GIVE BRAINLIEST!! (history of computers) You have completed an extensive investigation
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!