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
OleMash [197]
2 years ago
13

Create a console application, no user defined class is necessary for this program, all code is to be implemented in Main.

Computers and Technology
1 answer:
zheka24 [161]2 years ago
8 0

Answer:

The code is designed using C++ with comments

Explanation:

#include<bits/stdc++.h>

using namespace std;

int main(){

int pay, hours; //declaring hourly pay rate and number of hours worked

cout<<"Enter hourly pay rate: "<<endl; //taking user input

cin>>pay;

cout<<"Enter hours worked: "<<endl; //taking user input

cin>>hours;

int gross;

if (hours<=40){

gross=hours*pay; //calculating gross pay

}

else if (hours>40){

gross=40*pay+(hours-40)*1.5*pay; //calculating gross pay for overtime

}

int withholding, netpay;

//calculation of withholding..

if (gross>1000){

withholding=(gross*28)/100;

}

else if (gross>600 && gross<=1000){

withholding=(gross*21)/100;

}

else if (gross<=600){

withholding=(gross*10)/100;

}

netpay=gross-withholding; //calculation of netpay

cout<<"Gross pay is $"<<gross<<endl; //output

cout<<"Net pay is $"<<netpay<<endl; //output

return 0;

}

You might be interested in
A growing number of large organizations have built internal Web sites that provide opportunities for online social networking am
Flauer [41]

Answer:

True

Explanation:

The ideology of building internal web sites  for online social networking among employees is aimed towards productivity.

<em>For example, when an employee is finding a specific job difficult and is connected with someone on the social websites created by the organization, the employee will get help in no time to ensure that the organization achieve maximum productivity.</em>

It will constantly keep each employee informed on the organizations policies, goals and achievements.

However, there are shortcomings of online social networking in the workplace:

  1. If not properly managed, It might become addictive and will lead to low employee productivity.
  2. Great intellectual minds might be exposed to negative influences from within the organisation

8 0
2 years ago
A researcher plans to identify each participant in a certain medical experiment with a code consisting of either a single letter
trapecia [35]

Answer:

5 Letters

Explanation:

So we need 12 distinct codes made of a single letter or a pair of letters.

What would be the least number of letters?

Lets try with 3 letters A, B and C

The possible combinations are: A, B, C, AB, AC, BC

These are 6 codes and we need 12 so lets try more A, B, C and D

The possible combinations are: A, B, C, D, AB, AC, AD, BC, BD, CD

These are 10 codes and we need 12 so lets try more A, B, C, D and E

The possible combinations are:

A, B, C, D, E, AB, AC, AD, AE, BC, BD, BE, CD, CE, DE

Finally we got 15 distinct codes which are more than 12 so the least number of letters needed are 5.

Using formula:

Four letters = 4C1 + 4C2 = 4 + 6 = 10

Five letters = 5C1 + 5C2 = 5 + 10 = 15

5 0
2 years ago
Which of the following information is okay to share on social networking site?
zvonat [6]
C. Your hobbies and interests
4 0
3 years ago
Read 2 more answers
Which is true regarding pseudocode?
drek231 [11]

Answer:

It uses simple words and symbols to communicate the design of a program.

Explanation:

4 0
2 years ago
Read 2 more answers
Which of these monitor connector types is the oldest and least desirable to use?
ella [17]

Answer:

DVI is the oldest out of the four.

Explanation:

DVI and VGA are the oldest, but DVI is oldest and least desirable to use since it is outdated.

5 0
3 years ago
Read 2 more answers
Other questions:
  • In real-world environments, risks and their direct consequences will most likely span across several domains. However, in the la
    12·1 answer
  • The function below takes two parameters: a string parameter: CSV_string and an integer index. This string parameter will hold a
    14·1 answer
  • Which if the following ribbons in Microsoft word is used to add tables and images
    14·1 answer
  • Which of the selection below does not represent a workable IP address?
    9·1 answer
  • Which of the following transferable skills are generally the most look for in the it <br> field
    10·1 answer
  • Which of these lines of code will increment a variable?
    11·1 answer
  • Which role will grant a delegate read-only access to a particular workspace within a user’s Outlook mailbox?
    15·2 answers
  • PLSS HELP ASAP ILL GIVE BRAINLIEST THANKS
    11·1 answer
  • Calculate the time complexity for the following function in terms of Big O notation. Explain your answer.
    13·1 answer
  • What is computer viras? Loist 2 preventive measures against it​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!