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
galina1969 [7]
3 years ago
12

Write a C++ program in which you declare variables that will hold an hourly wage, a number of hours worked, and a withholding pe

rcentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, which is calculated as hours times rate, minus the percentage of the gross pay that is withholding.
Computers and Technology
1 answer:
stiks02 [169]3 years ago
4 0

Answer:

C++ program: -

//header files

#include <iostream>

//namespace for using input and output stream

using namespace std;

//main function

int main()

{

//declaring the variables

float wg,hrs,pt,np;

//prompt the user to enter the hourly wage

cout<<"Please enter the hourly wage: ";

//storing the value

cin>>wg;

//prompt the user to enter the working hours

cout<<"Please enter the hours worked: ";

//storing the values

cin>>hrs;

//prompt the user to enter to enter the percentage

cout<<"Please enter the withholding percentage: ";

//storing the value

cin>>pt;

//calculating the next week pay

np= (hrs*wg*7)- (hrs*wg*7*pt/100);

//displaying the next week pay

cout<<"Net weekly pay: "<<np;

//return statement

return 0;

}

Explanation:

In the above program, the variable used are given below: -  

float wg,hrs,pt,np;

wg:- To store the hourly wage

hrs:- To store the working hours  

pt:- To store the percentage

np:- To store the next week payment

The input and the output streams that are used to input and storing the values are cin and cout.

To calculate the next week payment below formula is used:-

np= (hrs*wg*7)- (hrs*wg*7*pt/100); 

Output :-

Please enter the hourly wage: 100                                                                                                                          

Please enter the hours worked: 8                                                                                                                          

Please enter the withholding percentage: 5                                                                                                                

Net weekly pay: 5320

You might be interested in
A large flowing network of streams and rivers moving across a land area is a ______________________.
Art [367]

Answer:

The answer to this question is River System.

Explanation:

When there is a flowing network of streams and rivers that are moving across a land area is called a river system.

As we all know that the streams are connected to rivers and the rivers across a land are also connected or may be not but they form a large network of rivers.

4 0
3 years ago
Here is a series of address references given as word addresses: 2, 3, 11, 16, 21, 13, 64, 48, 19, 11, 3, 22, 4, 27, 6, and 11. A
Allisa [31]

Answer:

Explanation:

kindly check the attachment for better explanation to the answer

4 0
3 years ago
Characteristics of partial copy sandboxes versus full sandboxes? choose 2 answers
svet-max [94.6K]

The main dfifference is a Partial Copy Sandbox only copies a selection of your data.

What are partial copy sandboxes and full sandboxes?

To test new configurations with your own real data, a partial copy sandbox duplicates your configuration and some (but not all) of your data. A Partial Copy Sandbox just replicates a portion of your data, as opposed to a Full Sandbox, which duplicates all of your data and is an exact replica of your production organization.

  • While a Partial Copy Sandbox can be renewed every 5 days, a Full Sandbox can only be refreshed every 29 days.
  • On creation or refresh, a Partial Copy Sandbox copies only sample data; in contrast, a Full Sandbox copies all data.
  • In addition to the overall data storage restriction, the 5GB file storage limit is different for a Partial Copy Sandbox.

To learn more about sandboxes click on the link below:

brainly.com/question/20436561

#SPJ4

6 0
2 years ago
What is the financial aspect for a business as to what database software they will buy?
Masteriza [31]

Answer:  Database software is bought on basis of the processing, cost, requirement etc for any particular . According to the financial perspective the database  software should have the following characteristics:-

  • Database software that has most accurate and main feature according to the business requirement is selected for buying and the others with extra features are not considered as more feature cost more amount  which is not needed.
  • Database software which is still in progress to be built is pre-booked and money is invested on it because the price of the required software might increase after getting completed.
  • Scalable database software should be bought so that it can extend according to need at low cost.

 

8 0
4 years ago
Write a class Example() such that it has a method that gives the difference between the size of strings when the '-' (subtractio
Mariulka [41]

Answer:

class Example:

def __init__(self, val):

self.val = val

def __gt__(self, other):

return self.val > other.val

def __sub__(self,other):

return abs(len(self.val) - len(other.val))

def main():

obj1 = Example('this is a string')

obj2 = Example('this is another one')

print(obj1 > obj2)

print(obj1 - obj2)

main()

\color{red}\underline{Output:}

3 0
3 years ago
Other questions:
  • In some cases, certain Hyper-V guest operating system features do not function properly using the operating system's own device
    9·1 answer
  • What is looping? the rerecording of sound first recorded on set the recording of sound on set the process of combining different
    11·1 answer
  • Which of these IP addresses is not a valid address? a. 199.199.3.3 b. 192.168.258.4 c. 192.168.0.9 d. 10.10.10.40
    13·1 answer
  • Explain the differences between kernel applications of the OS and the applications installed by an organization or user.
    6·1 answer
  • The data in a database management system that identifies the names of​ tables, fields in each​ table, and the properties of each
    13·2 answers
  • What file extension is used to name a compressed folder
    10·1 answer
  • Please check my answer! (Java)
    6·1 answer
  • Wireshark is an example of what type of utility? A) Packet sniffer B) Port scanner C) Vulnerability scanner D) Content filter
    11·1 answer
  • Sensitive data is always classified true or false
    14·1 answer
  • Brainly keeps deleting my questions and I don’t know why It says I violated the rules but I didn’t. pls help
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!