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
sergejj [24]
3 years ago
14

In Python please:

Computers and Technology
1 answer:
g100num [7]3 years ago
3 0

Answer:

def compute_pay(number_of_hours, rate_of_pay):

   if number_of_hours > 40:

       pay_for_week = (40*rate_of_pay)+((number_of_hours-40)*\

                                                (rate_of_pay+rate_of_pay*0.5))

   else:

       pay_for_week = number_of_hours*rate_of_pay

   if pay_for_week >= 375:

       print("Paying %d by direct deposit" % pay_for_week)

   else:

       print("Paying %d by mailed check" % pay_for_week)

Explanation:

  1. We define the computer pay function that receives the number of hours worked in a week and the rate of pay
  2. From the test cases we deduce that if a worker works more than 40 hours a week an extra payment is given, you can calculated it as follow: (40 * rate_of_pay) + ((number_of_hours - 40) * (rate_of_pay + rate_of_pay * 0.5))
  3. If a worker works less than 40 hours the payment is calculated as follow: pay_for_week = number_of_hours * rate_of_pay
  4. If the pay for week is equal or greater than 375 we print a payment by direct deposit otherwise we print payment by mailed check

You might be interested in
The sign used for closing a tag is​
iragen [17]

Answer:

The sign used for closing a tag is answer is /.

Explanation:

I program all the time and when I am programming in HTML I use tags all the time so I basically memorized it.

8 0
3 years ago
Comparison <br> Cloud computing and parallel processors
V125BC [204]

Anwser is 2/3

Explanation:

7 0
3 years ago
Consider a sequence of 1's and 1's with the property that the sum of any prefix of the sequence is never negative For example th
MrMuchimi

Answer:

Check the explanation

Explanation:

Answer: Solution: Algorithm:

Step 1: Start.

Step 2: Create a stack Step

3: Push an initial stack variable, it will represent that, stack is empty.

Step 4: Get input

             If +1 then push "+1"

             Else if -1 then pop

Step 5: Repeat until all input finish or Stop if empty stack variable popped. Step 6: Stop.

It is a pushdown automata problem.

It can be also represented as:

X =1+1* —1* 1No(+1)>= No(-1)}

4 0
3 years ago
what ribbon command on the Home tab can you use to change a cell's fit color automatically, based on the value of the cell
Lerok [7]

The ribbon command on the Home Tab that can be used to change a cell's font color automatically based on the value of the cell is by using the Ctrl+Shift+F (Font Color Command).

<h3>What is Font Color Command? </h3>

The font color command is used in the formatting of the font colors of cells on an Excel Sheet. The ribbon command Ctrl+Shift+F can be used or follow the process below.

To use the Font Color Command, simply follow the process:

  • Identify and select the text that you need to change.

Now, On the Home tab, select:

  • Font group,
  • In the arrow next to Font Color, click on the color to change the cell's font color.

Learn more about the Font Color command here:

brainly.com/question/5605472

<h3></h3>
6 0
2 years ago
What function does the ALU perform?
mixas84 [53]
The correct answer is B
6 0
3 years ago
Other questions:
  • Reasons for the growth of decision-making systems include:
    13·1 answer
  • Respond to the following in three to five sentences. Select the workplace skill, habit, or attitude described in this chapter th
    15·2 answers
  • Angela recently purchased a new Android smartphone. While purchasing the phone, Angela was told that she would need to set up a
    14·1 answer
  • What role/service is windows 2012 server backup part of?
    5·1 answer
  • Can someone help my friend play over-watch she new do it. I can't help her on Friday (p.s she play on Xbox she will get it on Fr
    8·1 answer
  • The ____ contains app buttons that allow you to quickly run the File Explorer or Microsoft Edge apps.
    12·1 answer
  • java Two smallest numbers Write a program that reads a list of integers, and outputs the two smallest integers in the list, in a
    6·1 answer
  • Write the line of code to calculate the area of a circle with radius 3 and store it in a variable called
    10·1 answer
  • What website or search engine that helps people find the web pages that they are looking for by tying in the subject they want?​
    5·1 answer
  • What are the steps in preparing a bootable USB installer?​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!