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
How can I make [ print(3 * x) ] into a functional python code?
CaHeK987 [17]

If you're programming in python, you simply have to assign a value to x and then use the print function. For instance,

x = 3

print(3 * x)

9 will be the output. I hope this helps!

5 0
3 years ago
_________ is the most popular high-level Java API in Hadoop Ecosystem. Cascading Scalding Cascalog None of the options
pochemuha

Answer:

The answer is Cascading

8 0
2 years ago
The Technology Librarian asks you to find out how many hops it takes to get to the first Wi-Fi kiosk. What Windows command can y
V125BC [204]

Answer:

The number of routers arrived in the path of a packet from sender to receiver are called hops. It is term used usually in computer networking.

<u>Command Used to find Hops</u>

In windows command prompt is used to find the number of hops.

1. In Command Prompt type "<em>tracert</em>" after host name and IP address of destination.

<u>Hardware devices Represented by Hop</u>

The main devices that is counted as hop in networking is <em>Router</em>. Nut Sometimes many devices such as <em>switches, repeaters and access points</em> are also count as hops. It depends on the configuration and role of the devices.

8 0
3 years ago
A study guide can be created
choli [55]

Answer:

C, Both of these.

Explanation:

You can take notes either way. It's just your preference. Hope this helps :)

7 0
3 years ago
Read 2 more answers
How can I download music and films at home without breaking the law?
mina [271]

Answer: use a legal music downloader

Explanation: :)

5 0
3 years ago
Read 2 more answers
Other questions:
  • Binary is best interpreted by a computer because?
    8·2 answers
  • 3) An example of interactive web page is<br>​
    11·1 answer
  • What is encyclopedia. Com considered to be?
    14·1 answer
  • Which of the following commands would instruct OSPF to advertise ONLY the 192.168.10.0/24 network in Area 0?
    13·1 answer
  • With ____________________, you can insert and remove a device while the computer is running.
    11·1 answer
  • Please help it would mean to world to me❤️ (WORD)
    13·1 answer
  • Read the introduction (paragraphs 1-3].
    7·1 answer
  • HELP URGENT
    5·1 answer
  • What is a system of access control that allows only limited use of material that has been legally purchased?
    7·1 answer
  • Provide 3to 4 sentence overview of microsoft windows features?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!