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 is the answer to 4.9 Code Practice: Question 2
bixtya [17]

Answer:

sum = 0

for i in range(20, 100, 10):

sum = sum + i

Print(sum)

Explanation:

7 0
3 years ago
GUYS I NEED HELP!!!! Every time pc resets it clears all of my data files and content how do you fix this. Pls help
Lady bird [3.3K]

Answer:  Most of the time its caused by a virus and the virus takes the chance when your computer resets so look for a virus if that's not it maybe its power failure check if its in a window folder or just use a antivirus.

Explanation:

4 0
2 years ago
Bluetooth 5 allows data to be transferred between two devices at a rate of
Minchanka [31]

Answer:

2 MBPS.

Explanation:

The Bluetooth 5 raises the data transmission of information throughput from 1 Mbps to the 2 Mbps. The main advantage of Bluetooth 5 do not increasing the energy  utilization.The Bluetooth 5 increasing the volume of information that technologies can be distribute.

  • The main advantage of Bluetooth 5 decreases the time it would take to send and receive the signals,
  • The previous version of Bluetooth transmit the information from one device to the another with the 1 Mbps speed  .
7 0
4 years ago
Marie can now edit her photos, send them in emails, print them on a printer, and use them as wallpaper on her computer. This is
AVprozaik [17]

I could be wrong, but I believe this one would be JPG files.

4 0
4 years ago
Read 2 more answers
What is alphabet symmetry
Nataly [62]
A line of symmetry creates two congruent figures that are mirror images of each other
3 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program that calls fork(). Before calling fork(), have the main process access a variable (e.g., x) and set its value to
    5·1 answer
  • Which new jobs will be in demand in the next 20 years
    5·1 answer
  • What is the function of the Status bar in Outlook 2010?
    9·1 answer
  • Most documents are printed in ______ orientation
    9·2 answers
  • Type of media that uses laser technology to store data and programs is
    6·1 answer
  • if image size and resolution are the same, which file format, .jpg, .gif, .or .tiff, will give you the smallest file size?
    8·2 answers
  • If you’re storing some personal information like Debit/Credit card numbers or Passwords etc, on different sites for running you’
    10·1 answer
  • Public classes are accessible by all objects, which means that public classes can be ____, or used as a basis for any other clas
    10·2 answers
  • Find the complete predicate in the sentence below.
    6·1 answer
  • _____ selectors are used to select elements based on elements that are adjacent to them in the document hierarchy.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!