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
Please help me, i need help
Alchen [17]

Answer:

C or 5184000

Explanation:

i Have a MASSIVE brain

8 0
3 years ago
Read 2 more answers
Which of these should most likely be included in a wire frame ?
nika2105 [10]
Im not quite sure but I would say B but i could be wrong
6 0
4 years ago
Copyrighted software that is distributed at no cost for a trial period is called?
Alex
Copyrighted software that is distributed at no cost for a trial period is called Shareware.
8 0
4 years ago
___ is the amount of data that a storage device can move from the storage medium to the computer per second.
Sindrei [870]

Answer:

The answer is "data transfer rate".

Explanation:

The rate of information transfer is the sum of digital information, that travels from one destination to another at a particular time. This can also be viewed as transportation frequency from one place to another one of a given quantity of information. It is the processing power of the larger and specified map, which significantly lowers the data transfer rate.

6 0
4 years ago
A museum is evaluating historical documents for authenticity, reviewing their physical condition, and categorizing them by subje
statuscvo [17]

Defining and assigning categories by the subject could be automated easily without incurring high costs or large amounts of time and effort.

One may create a straightforward algorithm to categorise the documents.Include every potential category in the algorithm.

Then, it would be simple to organise documents by subject, immediately backing up to a public cloud. Keeping corporate workloads on the public cloud involves duplicating resources.

As a fallback, using a service provider. selecting a backup solution that works between clouds (C2C). using online cloud backup services.

You should assess or evaluate these information sources once you have located information that satisfies the topic and criteria of your research. When you evaluate information, you are prompted to consider the authority, timeliness, point of view, and bias of various information sources.

Learn more about time and effort:

brainly.com/question/27670681

#SPJ4

6 0
2 years ago
Other questions:
  • What type of operating system runs a dedicated electronic device such as a smart thermostat?
    5·1 answer
  • Caroline has been asked to find a standard to guide her company’s choices in implementing information security management system
    13·1 answer
  • Which statement is true about customizing presentation programs?
    6·1 answer
  • Banking, insurance, telecommunications, and education are examples of the type of knowledge industry that A. has information as
    12·2 answers
  • Write the definition of a function named rotate4ints that is passed four int variables. The function returns nothing but rotates
    9·1 answer
  • In which stage of investigation does a digital forensics expert perform self-assessment?
    11·2 answers
  • Write a Bash script that takes the name of a file or directory as an argument, 1. reports if it is a directory or a file, and if
    14·1 answer
  • In this lab, you will build a system for package delivery services that provides different shipping options with specific price.
    6·1 answer
  • What is processing requirement in computer?
    11·1 answer
  • Write a program (using functions) starting from directives to compute and display the transpose of a matrix of dimension m x n.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!