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]
3 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]3 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
What is a table in excel
tekilochka [14]
A table in excel is responsible for keeping track of numerical data.

Meaning information in the form of numbers.
8 0
3 years ago
Read 2 more answers
Which statement accurately compares the restart at 1 and continue numbering featured of word
Andrews [41]

Answer: the continue numbering feature can be used to maintain the numbering order in a list and the restart at 1 feature can be used to make a new list

Explanation:

7 0
3 years ago
Read 2 more answers
From the computer desktop, clicking the Start button lets you _____.
stepan [7]
Locate and open Excel
8 0
3 years ago
Read 2 more answers
Which of these improved the ability to send information over the network in the 1970s?
frez [133]

Answer:

b. ethernet

Explanation:

It was an ethernet that was developed in the 1970s that improved the ability to send the information over the network. It is the most widely used method to connect the computers in a LAN or the local area network, ever since 1980 when it was first introduced for commercial use. And it is being used in bulk even today.

4 0
3 years ago
Which of the following is a category of authorization tools
Tpy6a [65]

Answer:

Cloud-Based eLearning Authoring Tools.Locally Hosted eLearning Authoring Tools. Multimedia eLearning Authoring Tools.PowerPoint Ribbon eLearning Authoring Tools.Screen Capturing And Recording eLearning Authoring Tools

Explanation:

Any software, or collection of software components, that authors can use to create or modify web content for use by other people, is an Authoring Tool.

5 0
3 years ago
Other questions:
  • A ____ is a data network connection that makes use of the public telecommunications infrastructure but maintains privacy through
    13·1 answer
  • To keep your audience interested in your speech, you should provide them with as many details as possible about the topic.
    12·1 answer
  • How to eject a flash drive from chromebook?
    6·1 answer
  • Which of the following is most accurate?
    10·1 answer
  • How many questions have you seen so far other than this one?
    10·2 answers
  • What layer of the OSI model describes how data between applications is synced and recovered if messages don't arrive intact at t
    12·1 answer
  • What is the use of a piano​
    10·2 answers
  • Use the drop-down menus to explain how to locate the Consolidate dialog box.
    6·1 answer
  • What feature is available to add a suggestion in the margin of someone else's document?​
    15·1 answer
  • How do you stop getting emails from brainly saying "sarah from brainly has answered your question"
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!