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
Grace [21]
3 years ago
10

Now imagine that we have a list of 5 employees who have each worked 45, 15, 63, 23, and 39 hours. We'll fix rate_of_pay at 10. P

ayroll wants to mail checks for each of these employees. Use a definite loop (for loop) to loop through the list of employee hours and print the appropriate pay statement. Your output should look something like: Paying 475.0 by direct deposit Paying 150.0 by mailed check Paying 630.0 by direct deposit Paying 230.0 by mailed check Paying 390.0 by direct deposit
Computers and Technology
1 answer:
Natali [406]3 years ago
7 0

Answer:

Hi there! The question is asking for a simple loop implementation that prints payment advice for Payroll.

Explanation:

Assuming that the payment method is “mailed check” for hours worked less than 30 and “direct deposit” for hours worked greater than 30, we can implement the function as below.  

 

hours_worked = [45, 15, 63, 23, 39]

payment_method = “mailed check”

for (int index = 0; index < 5; index++) {

   if hours_worked[index] > 30 {

      payment_method = “direct deposit”

   }

   print(“Paying “ + (hours_worked[index] * pay_rate) + “by “ + payment_method)

}

You might be interested in
Recall that through either photographic or computer technology, researchers can make a composite (or "averaged") face out of any
kow [346]

Answer:

People prefer composite faces.

Explanation:

If we take some face's picture, and we make it digital, we could make a composite or averaged face, and when we compare composite faces with originals pictures, people prefer the composite faces because there was symmetry in those faces.

For example:

There was a research where a digitalized student faces men and women, researchers make a composite face for every original, people prefer composite face against the original face.

4 0
4 years ago
What theorems do we need to know for ap calculus ab.
USPshnik [31]

Answer: Intermediate Value Theorem.

Extreme Value Theorem.

Mean Value Theorem for Derivatives.

Rolle's Theorem.

Fundamental Theorem of Calculus (two parts)

Mean Value Theorem for Integrals.

Explanation:

4 0
2 years ago
A software application used at one computer to interact with other nodes on a network is called_____.
Ivanshal [37]

Answer:

A MIRCOCOMPTER NETWORK

Explanation:

3 0
4 years ago
To make a drop shadow larger what should you change about the drop shadow in gimp
vlabodo [156]
To Change the Drop Shadow Just Go to effects on the photo go to drop shadow than change the spread and Distinse and Opasity.
4 0
4 years ago
Assume that success is a variable of type boolean that has been declared. Assume that processor refers to an object that provide
Iteru [2.4K]
Try {
AutoFactory.shutdown();
} catch (ProductionInProgressException e) {
AutoFactory.reset();
}
6 0
3 years ago
Other questions:
  • Two electronics technicians are looking at the piece of testing equipment shown in the figure above. Technician A says that this
    10·1 answer
  • During the Requirements Definition stage of a systems development​ project, the employees who will be the primary users of the n
    15·1 answer
  • hi i'm bored so.... free point and if you have any Netflix shows that are good do tell also i'm going to pick one person to give
    7·2 answers
  • Which of the following statements isNOT true about abstract data types (ADTs)?A list is anexample of an ADT.ADTs hide theimpleme
    7·1 answer
  • Write only in C, not C++.
    14·1 answer
  • To copy an item, you would:
    15·2 answers
  • Write two eaxmple of operating system​
    14·2 answers
  • How do we Rewrite the following Python code to avoid error. mark=inpt("enter your mark ")
    6·1 answer
  • Which of the following industries utilize computer science?
    13·1 answer
  • Cookie Snooping
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!