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
faltersainse [42]
3 years ago
12

Create a Python program to solve a simple payroll calculation. Calculate the amount of pay, given hours worked, and hourly rate.

(The formula to calculate payroll is pay.
Computers and Technology
1 answer:
Shalnov [3]3 years ago
3 0

Answer:

The Python code is given below with appropriate comments

Explanation:

hoursWorked=input("Enter number of hours worked:")   #hours worked

hW=int(hoursWorked)      #to convert the string input to integer

hourlyRate=input("Enter Hourly Rate:")

hR=float(hourlyRate)     #to convert the string input to floating point number

print "Hours Worked=",hW,", Hourly Rate=",hR,", Pay=",hW*hR

You might be interested in
Tricia listed her assets and liabilities. Credit Card Bill Car Loan Bonds Piano Bank Account Bicycle Which are Tricia’s liabilit
DIA [1.3K]
<span>Her liabilities are her credit card bill and her car loan. These are things that she owes and has to pay off, so they are liabilities due to the fact that she owes for these items. Her bonds, piano, bank account, and bicycle are counted as assets.</span>
7 0
3 years ago
Read 2 more answers
What are creative commons?
Olenka [21]

Answer:

c

Explanation:

4 0
3 years ago
Read 2 more answers
What is windows powershell? I downloaded a fake video game on my PC.(It was an accident) Now, powershell is bugging me. Is it a
IrinaVladis [17]

Answer:

The PowerShell is a kind of shell framework, which was being developed by Microsoft for covering various administrative tasks like the configuration automation and management of certain repetitive jobs. And the term 'PowerShell' does refer to both of these- and its the shell applied for executing commands, and scripting language.

And yes, you have been infected by the virus. You need to run the antivirus immediately.

Explanation:

Please check the answer section.

5 0
4 years ago
Read 2 more answers
To change the overall design of an entire document to include colors, fonts, and effects, a user should apply a _____.
Olenka [21]
User should apply a theme.

Hope this helps!
8 0
3 years ago
Read 2 more answers
Sam's manager would like him to share what he learned at a conference. He needs to share the information with twenty coworkers a
murzikaleks [220]

C or D 70% i am sure of it

3 0
3 years ago
Read 2 more answers
Other questions:
  • Observing users as they enter passwords or other personal information to a computer Auditing software often used to test compute
    6·1 answer
  • Help 30 points I will mark brainliest!!!!!!!!!!!
    10·1 answer
  • What is the size of the opening in the camera that the light passes through?
    9·2 answers
  • When you receive five job offers what does it mean
    9·1 answer
  • Under the assumption that there exists an unknown Turing machine encodableinc1bits that decides3-SATis inO(n10) time, give imple
    7·1 answer
  • Below is a recursive implementation of the factorial function. For what value of n will this function not produce the desired re
    8·1 answer
  • In which of the following work situations would word processing software be most appropriate to make the task easier?
    6·1 answer
  • 1. What are the advantages and disadvantages of the digital darkroom as compared to a regular darkroom?
    15·1 answer
  • What ethical concerns might arise from applying new IT to law enforcement?
    5·1 answer
  • Who is the monst important person and why
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!