in Education by
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. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
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)

Related questions

0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    write a program to read an integer and find its reverse. note: if user enter 1234 then the output should be 4321 in Python Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    write a program that inputs a strig and then print the string, equal to number of times its length Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    write a program to find the simple intrest, if we input principal, rate, time… formula:si=pxrxt/100 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Write a program in Java to input any age and determine whether the age is valid or  invalid. If age is ... is valid otherwise invalid. Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    5. Write a program to count the number of spaces, upper case and lower case characters in a string, where the ... entered by the user Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    input a sentence and print total number of times consecutive alphabet comes using for and charAt function The sentence ... is studying Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... total and average. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the temperature in Celsius and convert it into Fahrenheit using the following formula ... INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    A customer purchased cold drinks of various brands. He purchased 5 bottles at a price of `35 per bottle and ... make him/her brainlest Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 27, 2021 in Education by JackTerrance
0 votes
    to write a program to accept marks of three subjects and find the total mark and average marks in 3 subject Select the correct answer from above options...
asked Dec 26, 2021 in Education by JackTerrance
0 votes
    write a program in python to enter the mark in 3 subjects and calculate total and assign grade. If total >= 200 ... grade is B' Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
...