Write code that declares variables to represent a user’s hourly rate of pay and the
number of hours worked.
Assign appropriate values to the variables, then calculate and display the user’s gross
pay for a week, the withholding tax (15% of gross pay), and the net pay (gross pay –
withholding). An example output would be:
Gross Pay: 1500
Withholding Tax: 225
Net Pay: 1275

c# language

Answers

Answer 1

The code for the given command is:

hrs = input("Enter Hours:")

h = float(hrs)

ret = input("Enter rate per hour:")

rate = float(ret)

p = computepay(h, rate)

print("Pay", p)

The above code asks the user for input of hourly pay rate and the number of hours worked and prints the output after making the necessary computations.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


Related Questions

two types of storage memory​

Answers

Answer:

Primary and Secondary memory

Primary memory includes ROM and RAM

Secondary memory includes CD, hard drive, etc

Which of the following tasks are suitable for creating an algorithm? Choose all that apply

Answers

A tasks are suitable for creating an algorithm are:

giving directions to a location.solving a math problem.tracking money in a bank account.tracking the number of items in inventory.

What is algorithm?

An algorithm is known to be a form of a procedure that is often employed in the act of solving a problem or carrying out a computation.

Note that in the case above, A tasks are suitable for creating an algorithm are:

giving directions to a location.solving a math problem.tracking money in a bank account.tracking the number of items in inventory.

See options below

giving directions to a location

saving time writing a computer program

solving a math problem

tracking money in a bank account

tracking the number of items in inventory

Learn more about algorithm from

https://brainly.com/question/24953880

#SPJ1

What does it mean when someone says your voice doesn’t match how u look

Answers

Explanation:

it means that your voice it doesn't match with your personality like 2 characteristics by voice and by personality

Help please!, explain what is missing and what needs to be changed if anything.

Answers

Using the computer language in JAVA to write a function code that output numbers in reverse

Writting the code in JAVA:

import java.util.Scanner;

public class LabProgram {

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       int[] userList = new int[20];

       int numElements;

       numElements = scnr.nextInt();

       for (int i = 0; i < numElements; ++i) {

           userList[i] = scnr.nextInt();

       }

       for (int i = numElements - 1; i >= 0; --i) {

           System.out.print(userList[i] + " ");

       }

       System.out.println();

   }

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

the size of a newly created folder on the computer is

Answers

Answer:

2,345,696 bytes

Explanation:

in order to figure out how many bytes a newly created folder is right click the folder and go into properties

Which of the following is an example of how cookies are used? To create a stronger password To customize advertisements based on your history To open a program on your computer To scan your hard drive

Answers

The one among the options that is an example of how cookies are used to customize advertisements based on your history.

What do cookies do?

A cookie is known to be a kind of a small text file that is said to be often saved on your computer if a person do visit any kind of websites.

Note also that  a cookie is often used to get one to often remember settings that they have their last visit to any website.

For example Amazon is known to often cookies to help to know if or when a person revisit the site.

Hence, The one among the options that is an example of how cookies are used to customize advertisements based on your history.

Learn more about cookies from

https://brainly.com/question/14102192

#SPJ1

Answer:

To customize advertisements based on your history

Explanation:

From coding with experience i know cookies are for history browsing

Based on this simulator screenshot and the corresponding code block, what
is the player doing?

O A. Pressing only the "A" button
O B. Pressing both the "A" and "Menu" buttons
O C. Not pressing the "A" button
O D. Pressing both the "A" and "B" buttons

Answers

Based on this simulator screenshot and the corresponding code block, The  player is Not pressing the "A" button.

What is a Simulation?

A simulation is known to be the start of the operation of any kind of real-world process or system in course of time.

Note that in the case above, Based on this simulator screenshot and the corresponding code block, The  player is Not pressing the "A" button.

Learn more about simulator from

https://brainly.com/question/15892457

#SPJ1

Answer:

not pressing the a button

trust me i just did it

2.3.2

Explanation:

Discussion Topic
Personal finance includes income as well as expenses. You must manage your
personal finances daily, weekly, or monthly. Discuss the advantages of using
spreadsheets for managing personal finances.

Answers

The advantages of using spreadsheets for managing personal finances is that:

Spreadsheets are known to be tools that are very quick and easy and helps one to add into a workflow. Spreadsheets are regarded as an efficient tools for financial documents. A person can have access to a lot of spreadsheet templates and they can be able to visualize data along with caveats.

What is the advantage of using a spreadsheet?

The Advantage is that it is one that help[s a person to be able to organizing a lot of data.

Note that The advantages of using spreadsheets for managing personal finances is that:

Spreadsheets are known to be tools that are very quick and easy and helps one to add into a workflow. Spreadsheets are regarded as an efficient tools for financial documents. A person can have access to a lot of spreadsheet templates and they can be able to visualize data along with caveats.

Learn more about spreadsheets  from

https://brainly.com/question/26919847

#SPJ1

Pretend you work with a lot of different documents in an internship with a software development company. What kinds of actions can you take to keep your files, folder names, folder structure, and yourself organized? Be thorough in your answer

Answers

The kinds of actions that i will take to keep your files, folder names, folder structure, and yourself organized are:

I will make use of the Default Installation Folders.I will create one Place to place all Documents. I will make Folders using  Logical Hierarchy. I will also Nest Folders inside Folders.I will use the File Naming Conventions, etc.

How do I keep my folders organized?

For any kind of file arrangement it entails the act of keeping files in an organized manner that one can easily trace back if one is in need of that file.

There it is good to Sort your files every time such as once a week and as such:

The kinds of actions that i will take to keep your files, folder names, folder structure, and yourself organized are:

I will make use of the Default Installation Folders.I will create one Place to place all Documents. I will make Folders using  Logical Hierarchy. I will also Nest Folders inside Folders.I will use the File Naming Conventions, etc.

Learn more about files from

https://brainly.com/question/1012126

#SPJ1

Why should you make sure the paper being used in a printer is dry and not damp?

Answers

Answer:

because the printer ink is liquid

Explanation:

you need a dry paper to let the ink sit in place and print out the exact same thing that u needed to print if you're printing on a damp paper there is a chance it will affect the output of whatever your printing

Using damp paper in a printer can lead to ink smudging, paper jams, reduced print quality, and potential damage to the printer.

We have,

Using dry paper in a printer is important because damp or wet paper can cause several issues:

- Ink Absorption and Smudging: Damp paper can absorb ink unevenly, leading to smudging, bleeding, and blurred printouts. The ink may not dry properly on damp paper, affecting the print quality.

- Paper Jam: Wet or damp paper can stick together or to printer rollers, increasing the likelihood of paper jams. This can damage the printer and disrupt the printing process.

- Curling and Wrinkling: Moisture can cause paper to curl, warp, or wrinkle, making it difficult to feed through the printer's mechanisms properly. This can result in misaligned printing and paper feeding issues.

- Print Quality: Wet or damp paper can affect the color saturation and clarity of the printouts, resulting in poor print quality and reduced legibility.

- Drying Time: If the paper is wet, it will need time to dry before it can be used in the printer. Printing on wet paper can result in a smeared or faded appearance due to the ink's interaction with moisture.

- Overall Printer Health: Consistently using damp paper can lead to printer damage over time, affecting various components like rollers, cartridges, and print heads.

Thus,

Using damp paper in a printer can lead to ink smudging, paper jams, reduced print quality, and potential damage to the printer.

Learn more about printers here:

https://brainly.com/question/5039703

#SPJ3

In cell I5, enter a formula without using a function that divides the General Medicine total in cell H5 by the annual total in cell H9 to display the department’s percentage of total revenue. Use an absolute reference for cell H9, and then enter the same formula without formatting from cell I5 to the range I6:I9.

Answers

The formula to enter in cell I5 is  = $H$5/H9

How to enter the formula?

The given parameters are:

Cell H5 = Medicine TotalCell H9 = Annual Total

To divide H5 by H9, we have

H5/H9

Cell H5 is to be referenced by absolute reference

So, we have:

$H$5/H9

To enter the formula in cell I5, we use the following:

= $H$5/H9

When the same formula is entered in I6 to I9, we have:

= $H$5/H10

= $H$5/H11

= $H$5/H12

= $H$5/H13

Read more about Excel formulas at:

https://brainly.com/question/14299634

#SPJ1

Convert 105 decimal to 128 binary form

Answers

Answer:

1101001 is binary 105

128 in binary is 10000000

Meaning of U.R.L in computer​

Answers

Uniform Resource Locator. It is the unique address that each webpage has, which makes it easier for us to access them

Uniform Resource Locator, or URL, is an Internet resource address and a reference to that resource.

A URL has two main components:

Protocol identifier: For the URL http://example.c0m, the protocol identifier is http.Resource name: For the URL http://example.c0m, the resource name is example.com.

The resource name and the protocol identification are separated from one another by a colon and two forward slashes. The name of the protocol to be used to get the resource is indicated by the protocol identifier. The Hypertext Transfer Protocol (HTTP), which is frequently used to serve up hypertext content, is utilized in the sample. One of the many different protocols used to access various kinds of online content is HTTP. The File Transfer Protocol (FTP), Gopher, File, and News are further protocols.

The full address to the resource is contained in the resource name. However, for many protocols, including HTTP, the resource name comprises one or more of the following elements. The structure of the resource name totally depends on the protocol being used.

Host Name: The name of the computer that houses the resource.

Filename: The computer's pathname for the file.

the port number to which you should connect (typically optional).

Referencing a named anchor inside a resource that often designates a particular spot within a file (typically optional).

Many protocols only need the host name and filename, while others allow for the port number and reference. For instance, the resource name for an HTTP URL must include the host name of the network server, the filename of the content on that server, a port number, and a reference.

Using any loop construct, write a java code to print the following:
1010101
10101
101
1​

Answers

Answer:

class Main {

 public static void main(String[] args) {

   for (int n = 0x55; n > 0; n /= 4) {

     System.out.println(Integer.toBinaryString(n));

   }

 }

}

Explanation:

Because the pattern is very regular, you can start with 0x55 (which is 0101 0101) and shift right 2 places everytime. Shift right 2 places is the same as dividing by 4.

Explain download as used in computing environment.

Answers

Explanation:

Downloading is the transmission of a file or data from one computer to another over a network, usually from a larger server to a user device. Download can refer to the general transfer of data or to transferring a specific file. It can also be called to download, DL or D/L.

please mark be brainliest

Pretend you work with a lot of different documents in an internship with a software development company. What kinds of actions can you take to keep your files, folder names, folder structure, and yourself organized? Be thorough in your answer.

Answers

In the case above, I will categories my files and also my folders using as names and structures. The file name will help me to know identify the file in  fast time.

What is file structure?

A file structure is known to be the ways or combination of depiction for data in files.

Hence, In the case above, I will categories my files and also my folders using as names and structures. The file name will help me to know identify the file in  fast time.

Learn more about files from

https://brainly.com/question/1178560

#SPJ1

class Main {

static void printPowers(int howMany, int nrRows) {

int n=1;

while(n<=nrRows) {

int power = 1;

while(power <= howMany) {

System.out.printf("%d ", (int) Math.pow(n,power));

power++;

}

System.out.println();

n++;

}

}



public static void main(String[] args) {

printPowers(3,5);

}

}
1. Rewrite your method printPowers from 7B to use a for loop instead of a while loop.

2. Rewrite your method printPowers from 7B to use a do-while loop instead of a while loop.

Answers

Answer:

class Main {

 static void printPowers(int howMany, int nrRows) {

   for(int n=1; n<=nrRows; n++) {

     for(int power = 1; power<=howMany; power++) {

       System.out.printf("%d ", (int) Math.pow(n, power));

     }

     System.out.println();

   }

 }

 public static void main(String[] args) {

   printPowers(3, 5);

 }

}

class Main {

 static void printPowers(int howMany, int nrRows) {

   int n = 1;

   do {

     int power = 1;

     do {

       System.out.printf("%d ", (int) Math.pow(n, power));

       power++;

     } while (power <= howMany);

     System.out.println();

     n++;

   } while (n <= nrRows);

 }

 public static void main(String[] args) {

   printPowers(3, 5);

 }

}

Explanation:

The for loop gives the cleanest, shortest code.

solve the recurrence relation . x(n)=x(n/3)+n for n>1 ,x(1)=1

Answers

The solution to the recurrence relation is [tex]x(n) = \frac 12(3n - 1)[/tex]

How to solve the relation?

The relation is given as:

x(n) = x(n/3) + n for n > 1

x(1) = 1

Calculate x(3)

x(3) = x(3/3) + 3

This gives

x(3) = x(1) + 3

x(3) = 1 + 3 = 4

Calculate x(9)

x(9) = x(9/3) + 9

This gives

x(9) = x(3) + 9

x(9) = 4 + 9 = 13

So, we have:

x(1) = 1

x(3) = 4

x(9) = 13

The above sequence forms an arithmetic sequence.

An arithmetic sequence is represented as:

x(n) = x(1) + (n - 1) * d

Substitute 9 for n

x(9) = x(1) + (9 - 1) * d

Substitute 13 for x(9) and 1 for x(1)

13 = 1 + (9 - 1) * d

This gives

12 = 8d

Divide by 8

d = 1.5

Substitute d = 1.5 in x(n) = x(1) + (n - 1) * d

x(n) = x(1) + (n - 1) * 1.5

Substitute x(1) = 1

x(n) = 1 + (n - 1) * 1.5

Expand

x(n) = 1 + 1.5n - 1.5

Evaluate the like terms

x(n) = 1.5n - 0.5

Express as fraction

x(n) = 3n/2 - 1/2

Factor out 1/2

[tex]x(n) = \frac 12(3n - 1)[/tex]

Hence, the solution to the recurrence relation is [tex]x(n) = \frac 12(3n - 1)[/tex]

Read more about recurrence relation at:

https://brainly.com/question/4082048

#SPJ1

List at least four items that security policy should include

Answers

Answer:

Purpose.

Audience.

Information security objectives.

Authority and access control policy.

Data classification.

Data support and operations.

Security awareness and behavior.

Encryption policy.

can the charger of my laptop get infected with viruses also when it was connected to it?​

Answers

Answer:

Technically… yes. Because if the charging port is the same as a USB/etc connector port, then it can travel over that.

Explanation:

What is the term used to describe a singular container in an Excel spreadsheet?
O worksheet
Otab
Ocell
Orange

Answers

Cell is the term used to describe a singular container in an Excel.

What is a single box in a spreadsheet?

An active cell as seen in an Excel worksheet, is one which is made up of small rectangle or box called cell.

Note that the active cell is one that has the selected cell and it is where the data is entered if a person begin typing.

Hence, Cell is the term used to describe a singular container in an Excel.

Learn more about spreadsheet from

https://brainly.com/question/4965119

#SPJ1

Answer:

it is d

Explanation:

You are given a list of N integers . find the largest sum of a continuous sequence from the given list

Answers

Explanation:

di5ditdi5suufsutydskydjgsukstralurilttdljstp7hzpgxuptdoyd

Write a function expand_string(a, pre, suf, num) that takes the parameters a,pre,sub and num appends the prefix pre, and suffux suf to the string a num times and returns the new extended string. Input: a=test, pre=pr, suf=su, num=2. Output: prprtestsusu. In Pyrhon, please. ​

Answers

Answer:99

Explanation:88

printer runs out of paper during the printing job. A signal is sent back to the computer to stop temporarily its current task. Name this type of signal

Answers

The signal is sent back to the computer to stop temporarily its current task is known as interrupt signal.

What is  interrupt signal?

An interrupt is known to be a form of a signal emitted by any kind of device such as printer that is said to be attached to a computer or from a program that is seen in the computer.

Hence, The signal is sent back to the computer to stop temporarily its current task is known as interrupt signal.

Learn more about printer from

https://brainly.com/question/145385

#SPJ1

You are creating a family budget for the year, using a spreadsheet application. Which is the best category of software to apply here?

Answers

In the case above, the best category of software to apply here is  operating system and application.

What is the operation operating system?

An operating system is known to be the tool that gives room for a computer user  to be able  to interact along with the system hardware.

Note that In the case above, the best category of software to apply here is  operating system and application.

Learn more about software from

https://brainly.com/question/1538272

#SPJ1

Olivia is an amputee who wears a prosthetic right hand. Which technology would most help her operate a computer?

Answers

nerve interface is technology that allows amputees to use thoughts to move prosthetics

lists Five Examples of simple statement

Answers

Answer:

I am from Nepal . I am 15 years old. I have a good family . I am interest in speaking . I have many hobby.

Answer:

I like cats. cars are fascinating. I like coffee. I am a reader. I read 19 books every year.

Type the correct answer in the box. Spell all words correctly.
Which professional American organization for designers has set up many standards and guidelines that its members have to follow?

Answers

The professional American organization for designers has set up many standards and guidelines that its members have to follow is known as ANSI.

What mean ANSI?

The American National Standards Institute (ANSI) is known to be a kind of private, non-profit organization that gives or coordinates the U.S. voluntary standards and the conformity in terms of assessment system.

Hence, The professional American organization for designers has set up many standards and guidelines that its members have to follow is known as ANSI.

Learn more about American organization from

https://brainly.com/question/19334871

#SPJ1

Answer: Institute of Graphic Arts

Explanation:

The American Institute of Graphic Arts (AIGA) is a professional membership organization for designers. 

AIGA has set up many standards and guidelines that its members have to follow. 

These standards may be ethical, professional, or even legal.

(Plato)

Each of the flowchart segments in Figure 3-24 is unstructured. Redraw each segment so that it does the same processes under the same conditions, but is structured.

Answers

The segments of the flowcharts have been recreated such that  it does the same processes under the same conditions, but is structured. Their respective pseudo codes have also been created. See the attached pdf.

What is a pseudo code?

A pseudo code is a notation used in program design that looks like a simplified computer language.

Why is it important for flow chart to be structured?

This preference derives from the fact that such flowcharts are easier to understand and produce less mistakes in human perception.

The organized flowchart primarily aids the mission in the development of new algorithms by encapsulating a variety of data points within an interconnected depiction.

Learn more about flowcharts at;
https://brainly.com/question/6532130
#SPJ1

Write an algorithm and flowchart for finding the area of a rectangle

Answers

Hi! I don't have an answer but someone asked the exact same question and someone answered with both the algorithm and flowchart for the rectangle.

hope this helps!

https://brainly.in/question/15178855

Other Questions
30 A club of 12 people would like to choose people for the offices of president, a vice president, and a secretary. How many different ways are there to select the officers so that only one person holds each office? Conduct an Internet search to answer the following question: How did Presidential addresses and Supreme Court rulings begin to change the lives of the American people beginning in the mid-20th century? if m = 2 and n = 5 then find the value of 6m+5n IQ scores are approximately normally distributed with a mean of 100 and a standarddeviation of 15. What IQ score is about 1.5 standard deviations above the mean?A. 77.5B. 120OC. 115D. 122.5 _____ refers to the careful observation of one or a few specific behaviors in a particular setting. What happens when an appraiser determines a propertys value to be less than the pre-approved loan amount? I need help with this question Which small-scale social change theory does Derek Sivers' TED Talk best illustrate when describing how a social movement starts with one leader and the important role of the first follower that jumps in next What is one element a topographic map shows? Climate Landforms Space Weather which of the following is concerning for possible physical abuse If all chlorine and bromine from human sources were eliminated from the stratosphere, which statement would be correct?Chlorine and bromine would be zero.Chlorine would be less abundant than bromine.Current total chlorine would decrease by half.Bromine would be less abundant than chlorine. A service ticket by default lasts for how long? 5. Harrigan RL. Vanderbilt University Institute of Imaging Science Center for Computational Imaging XNAT: A multimodal data archive and processing environment[J]. Neuroimage,2016,124(Pt B):1097-101. ProblemSolving One leg of an isoscelesright triangle has endpoints (1, 1) and (6, 1). The otherleg passes through the point (6, 2). Draw the triangle5 on the coordinate plane below. Then show how youcan use the Distance Formula to find the length of thehypotenuse. Round your answer to the nearest tenth. Submit a report outlining the steps you will take to obtain digital evidence. In your report you must include the legal requirements, ethical considerations, and the digital sources you will be investigating in hopes of recovering data and collecting evidence to determine who was responsible for the data exfiltration.For all assignments, remember the following important elements:Proofread for spelling, grammar, and punctuation.You may respond in bullet form for this project, but use standard written English. Do not use texting abbreviations or other similar shortcuts. Determine whether the function f(x) = 3x is even or odd.The function is even because f(-x) = f(x).The function is odd because f(-x) = f(x).The function is even because f(-x) = -f(x).The function is odd because f(-x) = -f(x). Help please!!! Write an equation that represents the line.Use exact numbers. Stranded on a traffic island, speeding buses and trucks held the two pedestrians hostage.The previous sentence has an error in:a. Apostrophe usageb) Modifier usagec. Parallelismd. None of the above Order the number from least to greatest square root of 1, 1/3,2.5,square root of 2 Mike takes lithium to regulate his affect. this drug is particularly used to treat:________