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
OlgaM077 [116]
3 years ago
10

Create a Python program to solve a simple pay calculation.

Computers and Technology
1 answer:
Travka [436]3 years ago
6 0

Answer:

def weeklyPaid(hours_worked, wage):  

   if hours_worked > 40:  

       return 40 * wage + (hours_worked - 40) * wage * 1.5

   else:  

       return hours_worked * wage  

 

 

hours_worked = 50

wage = 100

 

pay = weeklyPaid(hours_worked, wage)  

 

print(f"Total gross pay: Rs.{pay:.2f} ")

Explanation:

provides gross pay

You might be interested in
What are at least three differences between a personal and non-personal blog?
qwelly [4]
The difference betweeen personal and nonpersonal blogs are that on a personal blog you give out most information you dont want people to know or it is anonomys 
4 0
3 years ago
How do you turn on the Track Changes feature in a spreadsheet?
myrzilka [38]
I would "turn on" this track changer as I would usually go to the top left corner, where it would say edit, and then, usually, as you look down at the bottom, you would then see where it would then be a switch that would say "turn on" or "turn off" track changer.
4 0
4 years ago
Match the data type to their correct explanations,
sergejj [24]

Answer:

I'm positive memo is "allows inserting a large amount of text including numbers" i just took the test on Plato and got everything wrong but that one

4 0
3 years ago
Read 2 more answers
What is the purpose of the ISOWEEKNUM function
stellarik [79]

Answer:

Explanation:

The ISOWEEKNUM Function in Excel is a Date & Time Function. This cheat sheet covers 100s of functions that are critical to know as an Excel analyst used for finding out the ISO week number of the year for the given date value (e.g., week number 37 of 52 weeks in a year). The function was introduced in MS Excel 2013.

7 0
3 years ago
Read 2 more answers
Which skill type refers to the ability to interact and communicate effectively with people? skills refer to the ability to inter
koban [17]
Interpersonal skills.
6 0
3 years ago
Read 2 more answers
Other questions:
  • A network administrator wants to have the same network mask for all networks at a particular small site. The site has the follow
    11·1 answer
  • Filtering removes data from the spreadsheet. A. True B. False
    9·2 answers
  • Acomputer with a domain name is called a
    8·1 answer
  • You are managing a global news website which has a very high traffic. To improve the performance, you redesigned the application
    10·1 answer
  • Suppose that a is a one-dimensional array of ints with a length of at least 2. Which of the following code fragments successfull
    8·1 answer
  • Which of the following statements is true regarding Wireshark?
    11·1 answer
  • Detrmine whether the following pairs of lines are paralles , perpendialor or neither. 8x+9y=5 and 4x+2y=7 Y=2x-4 and y=4x-2 X=9
    15·1 answer
  • Which of the expressions is false? when a = 10 and b = 4
    8·1 answer
  • How do I fix when it hits the second session it skips scanf..
    14·1 answer
  • What should you implement to leverage power, cooling, and networking capabilities independent from other datacenters in a region
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!