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
In this lab, you complete a prewritten Python program for a carpenter who creates personalized house signs. The program is suppo
ivolga24 [154]

Using the computer language in python to write a function code that personalized house signs

<h3>Writting the code in python:</h3>

<em>#Assign varibles</em>

<em>charge = 0.00</em>

<em>numChars = 8</em>

<em>color = "gold"</em>

<em>woodType = "oak"</em>

<em />

<em>#Checking for number of characters</em>

<em>if numChars > 5:</em>

<em>charge = 35 + (numChars-5)*4</em>

<em>elif numChars > 0:</em>

<em>charge = 35</em>

<em />

<em>#Checking wood type</em>

<em>if woodType == "oak":</em>

<em>charge += 20</em>

<em />

<em>#Checking for color</em>

<em>if color == "gold":</em>

<em>charge += 15</em>

<em />

<em>#Print output</em>

<em>print("The charge for this sign is $"+str(charge)+".")</em>

See more about python at brainly.com/question/13437928

#SPJ1

5 0
2 years ago
If you were an architect planning on building a large scale Municipal complex what type of engineer would you identify as essent
Daniel [21]

Answer: civil engineer

Explanation:

Based on the information given, the type of engineer that would be identified as essential to the success of the project would be the civil engineer.

Civil engineers are the engineers that are in charge of the planning and overseeing building and infrastructure construction. They plan and monitor constructions involving bridges, road, houses, power plants etc.

3 0
3 years ago
Match each item with a statement below. - A parameter in a method header. - A set of methods that can accept a call given the pa
Bas_tet [7]

Answer:

                                 

Explanation:

6 0
3 years ago
_______ is the use of software to assist in the creation, analysis, and modification of the design of a component or product.
snow_lady [41]

Answer:

C) Computer-aided Design

Explanation:

Options:

a. Computer-aided engineering

b. Computer-aided evaluation

c. Computer-aided design

d. Computer-aided manufacturing

C) Computer-aided design is correct answer

(Hope this helps can I pls have brainlist (crown)☺️)

6 0
2 years ago
________ involves disconnecting individual users from their selected internet service providers and redirecting them to illegiti
Phoenix [80]

Isp-Jacking Involves disconnecting individual users from their selected Internet service providers and redirecting them to illegitimate servers.

<h3>What is internet service providers?</h3>
  • An Internet Service Provider (ISP) is a company that provides Internet access to businesses, families, and even mobile users, such as AT&T, Verizon, Comcast, or Spectrum. ISPs provide Internet access to their customers via fiber optics, satellite, copper wire, and other means.
  • Cable, fiber, DSL (Digital Subscriber Line), and satellite internet are the most common types. As a result, Internet Service Providers, or ISPs, provide the internet to a location, and WiFi providers (such as TengoInternet) route that internet (bandwidth) through an outdoor environment or structure (Campus or Hotel).A wireless Internet service provider (WISP) is an Internet service provider (ISP) that allows subscribers to connect to a server via a wireless connection such as Wi-Fi at designated hot spots (access points).
  • ISPs provide users with access to networks that contain the necessary equipment, allowing them to establish Internet connectivity. ISPs are responsible for ensuring Internet access, routing Internet traffic, resolving domain names, and maintaining the network infrastructure that enables Internet access.

To learn more about internet service providers refer to:

brainly.com/question/18000293

#SPJ13

5 0
1 year ago
Other questions:
  • Can your computer become infected with a virus via email
    10·1 answer
  • In Java Write a program that prompts the user for a name (any String value would work for testing), and print a hello message to
    15·1 answer
  • A ____ operating system should be capable of supporting the applications and tools necessary to support Internet operations.
    10·1 answer
  • Diagnosing is solving the problem, and trouble shooting is figuring out what the problem is.
    15·1 answer
  • Indexed sequential access, an index is more useful when the number of record is
    10·1 answer
  • list the six external parts or "peripherals" of a computer system and identify which are output and which are input devices.
    15·1 answer
  • Consider the following threats to Web security, and describe how each is countered by a particular feature of SSL.
    15·1 answer
  • Which term is defined as an exploit that takes place before the security community or software developer knows about the vulnera
    12·1 answer
  • True or False: To create a function in python, you start with the keyword "def"
    5·2 answers
  • Which statement is true? Select 3 options.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!