Computer Science, asked by varshitha3313, 2 months ago

Write a program to prompt the user for days and rate per day to compute total pay. Use 50 days and a rate of 3.5 per day to test the program. Total pay is equal to (days* Rate per day). You should use input to read a string and float() to convert the string to a number.​

Answers

Answered by muskanjangde861
0

Answer:

mark as brainliest if helpful

Explanation:

hrs = input("Enter Hours:")

hrs = input("Enter Hours:")h = float(hrs)

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")x = float(xx)

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")x = float(xx)if h <= 40:

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")x = float(xx)if h <= 40: print( h * x)

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")x = float(xx)if h <= 40: print( h * x)elif h > 40:

hrs = input("Enter Hours:")h = float(hrs)xx = input("Enter the Rate:")x = float(xx)if h <= 40: print( h * x)elif h > 40: print(40* x + (h-40)*1.5*x)

Answered by codesbynaveen
1

#simply remove this text and paste in your .py file and you're done

#:taking input of numbers of days you have worked(eg) and rate per day

days=input("days you have worked=")

rate=input("rate per day =")

#:converting days & rate(input) to integer(int), in order to multiply it.

inp=float(days)

inpp=float(rate)

#:Multiplying the number of days(input) to rate per day(inpp)

out=inp*inpp

#:we got the answer now its code to print it on screen

print("total pay is(",out,")")

Similar questions