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
4.11.4 Snake Eyes code HS<br><br> I cant see to get this right, ant help would be appreciated.
Pani-rosa [81]

Answer:

This is python, I don't know what type of programming language you are learning.

import random

# Enter your code here

dice1 = random.randint(1,6)

dice2 = random.randint(1,6)

total = 0

while True:

   if dice1 == 1 and dice2 == 1:

       total += 1

       print("Rolled: " + str(dice1) + " " + str(dice2))

       break

   else:

       total += 1

       print("Rolled: " + str(dice1) + " " + str(dice2))

       dice1 = random.randint(1,6)

       dice2 = random.randint(1,6)

       

       

print("It took you "+ str(total) + " rolls to get snake eyes.")

Explanation:

8 0
2 years ago
Working ____ means that you are viewing previously loaded or saved webpages in the browser, but you are not connected to the int
uysha [10]
Working offline is the answer
8 0
4 years ago
Identifying and preventing incorrect claim payments and fraudulent activities falls under which type of data mining applications
Assoli18 [71]

The act of knowing incorrect claim payments and fraudulent activities falls under insurance type of data mining applications.

<h3>How is data mining used?</h3>

Data mining is known to be a tool that is often used by lots of insurance providers as it helps them to be able to know or predict the claims that are fraudulent so that one can be able to rightly target their resources and recoup a good amounts of money.

Conclusively, the act of Identifying and preventing incorrect claim payments and fraudulent activities falls under insurance type of data mining applications as it helps handles all issues regarding the above.

Learn more about data mining applications from

brainly.com/question/2596411

7 0
2 years ago
Drag the tiles to the correct boxes to complete the pairs.
lianna [129]

Answer:

software

client devices

hardware

Explanation:

Plzzzzzzzzzzzzz give me brainiest

4 0
3 years ago
Which is considered both an input and output device?
Marina86 [1]

Answer:

speaker

Explanation:

its the one that gives sounds

6 0
2 years ago
Read 2 more answers
Other questions:
  • Before you start creating a database, you should first use paper to plan, test, and revise. True False
    7·2 answers
  • What's internet reendorsement?
    10·1 answer
  • Escribe, en los siguientes cuadros, los conceptos que correspondan
    10·1 answer
  • Care should be taken whenever you post comments or photos to any social media or other websites, because each of these online ac
    8·1 answer
  • What is co-operating process
    11·1 answer
  • So I emailed Brainly to deleted my account. Why haven’t they done so yet? I don’t want to get charged money for this app I was p
    14·1 answer
  • Gta! ! ! !!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    11·2 answers
  • PLEASE HURRY I WILL GIVE BRAILIEST TO WHO EVER ANSWERS AND IS CORRECT
    14·2 answers
  • Organizations following Waterfall methodology usually begin with requirements gathering, in which the development team attempts
    14·1 answer
  • Which of the following is NOT a Creative Commons license?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!