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

Write a program to prompt the user for hours worked to compute a gross pay for an employee, and he is paid 100/hour. If he worke

d for 50 hours in a week then he will get overtime pay for the extra hours he worked i.e. he will be paid 1.5 times of M100.00 for 10 hours (50-40)
Computers and Technology
1 answer:
Elenna [48]3 years ago
6 0

Answer:

rate = 100

hours_worked = eval(input('enter number of hours worked'))

gross_pay = hours_worked * rate

if hours_worked <= 40 :

print(gross_pay)

else:

print(gross_pay + (1.5*rate*(hours_worked -40)))

Explanation:

Using python 3 :

The rate of pay is defined using the rate variable

The user is the prompted to enter the number of hours worked.

Gross_pay gives the mathematical evaluation of the amount paid base in rate and hours worked.

Since hours beyond 40 are paid as overtime. Then we have to add that to those who worked above 40 hours.

If hours_worked is 40 and below, then use gross pay

If gross pay is above 40 ; then the overtime fee is added to gross pay using the rate provided.

You might be interested in
The encapsulation unit on the presentation layer of the osi model is
Zielflug [23.3K]
<span>The encapsulation unit on the presentation layer of the OSI model is the Data link layer (2).</span>
7 0
3 years ago
There are various risks from attacks on wi-fi networks. These include all of the following except _____.
Mariulka [41]

There are various risks from attacks on wi-fi networks. These include all of the following except creating option d: malware.

<h3>What is malware?</h3>

This is said to be any program or file that purposefully hurts a computer, network, or server is known as malware, or malicious software.

Note that Computer viruses, worms, as well as Trojan horses, ransomware, and spyware are said to be examples of malware.

Lastly, Malware, often seen as malicious software, is a general word for any program or piece of code written with the intention of causing harm to a computer, network, or server.

Learn more about malware from

brainly.com/question/399317
#SPJ1

See options below

Blackbox

Acting

Miracle

Malware

5 0
1 year ago
You are designing a network for a client. As part of the design you need setup a Site to Site VPN solution to a Branch office. T
MaRussiya [10]

Answer:

The branch office needs to configured as a split tunnel to allow local connectivity and internet connectivity

Explanation:

Split tunneling is a computer networking concept which allows a network terminal to access different network domains or subnets like a public network  and a local network at the same time so that the networked system can access local as well as remote locations without changing the overall network configuration.  

5 0
4 years ago
¿por que hay peligros en internet?
puteri [66]

Answer:

Wait

it eases off.

Get home,

gathered,

very close and look up –

we find it’s all right.

Play:

they be.

For life,

but all vanished

picture faces –

matter: I do or don’t.

More,

something

out of hold

squeeze it tightly

my best,

my best life.

Opened,

something –

back at that moment –

all marchers

the room, the door, the front

rang through the outside

Explanation:

7 0
3 years ago
A(n) ____ if function is one in which the action to be taken for the true or false case includes yet another if function.
spin [16.1K]
<span>A nested IF function is one in which the action to be taken for the true or false case includes yet another if function.
</span>Nested function is a function which is defined within another function, in this case it is defined within the IF function, which <span>returns one value if a certain predefined condition is true and another value if the condition is false. </span> 
6 0
3 years ago
Other questions:
  • Jason wants to open a program with the command prompt window. Which command should he type in the Run dialog box to open the com
    10·1 answer
  • Refer to the exhibit, a technician applies the configuration in the exhibit to an unconfigured router. To verify the configurati
    13·1 answer
  • Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is
    6·1 answer
  • Which of the following is not the name of an air mass?
    7·1 answer
  • An ordinary office environment needs computers that have multiple user account settings where each user is allocated private dat
    13·1 answer
  • The two roots of a quadratic equation ax^2 + bx + c = 0 can be obtained using the following formula:
    15·1 answer
  • Write a simple hello world program in python 3
    8·2 answers
  • Mathematics and computer science share many concepts.
    5·2 answers
  • A___ is a placeholder where you can enter text to manipulate and give new graphical effects.​
    13·1 answer
  • Calculate the total resistance of this simple circuit. If R1 = 100Ω, R2 = 200Ω.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!