Create a program in python wages.py that assumes people are paid double time for hours over 60. They get paid for at most 20 hours overtime at 1.5 times the normal rate.
Q: Write a python program: Let the user specify S (the number of sides on a die) and N (the number…
A: Import the random library and prompt the user for the values of N and S. Use a for loop for N times…
Q: Write a Python program (using Google Colab) that will ask the user for his/her weight (in…
A: Step 1: Define the main() function. Initialize planet to "mars". Step 2: Prompt and accept weight on…
Q: Write a program that computes the cost of the postage on first-class mail according to the following…
A: Algorithm for calculating the cost of the delivery of the mail:Step1: Declare…
Q: Write a Python program that prompts the user for the cost of two items to be purchased. Then prompt…
A: PROGRAM EXPLANATION: Start. Take the cost of the first item as input. Take the cost of the second…
Q: Write a program that will calculate and print out bills for the city water company. The water rates…
A: The answer to the following question:-
Q: Imagine that you are managing a plant, and measure production each day. Production is in number of…
A: prod = 1list=[]day=1#taking input and appending in listwhile prod > 0: prod=int(input("Please…
Q: How to compute FInal grade =(Prelimgrade*20%)+(Midtermgrade*20%)+(Pre-Finals*20%)+(Finalgrade*40%)…
A: #Code starts print "\n PRELIM GRADE"Quiz1 = input("Enter Quiz 1 :") #taking input of quizQuiz2 =…
Q: Write a python program that takes the CGPA and no of credits completed by a student and prints…
A: CGPA = float(input("Enter CGPA: "))CreditsCompleted = int(input("Enter No.of Credits Completed: "))…
Q: Write a python program based on the given input and the desired output. Develop a mini calculator…
A: ANSWER: Python Program: Example -1 Output:
Q: Write a program for Horizon Phones, a provider of cellular phone service.Prompt a user for maximum…
A: code :-- //for Scanner classimport java.util.*; public class Main{ public static void main(String[]…
Q: Write a program that accepts a year written as a four-digit Arabic (ordinary) numeral and outputs…
A: Code in C++: #include<iostream>using namespace std;int main(){ //declaring required…
Q: Create a program which the final grade is calculated from an input like the image. So with use of…
A: According to the information given:- We have to calculate the average grade from where the final…
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: Introduction of program In this program, we will give input on Electricity Unit Consumed. Charges…
Q: Write a python program that keeps track of evidence from 25 forensic cases. The user should be able…
A: I have given a python code in step 2.
Q: In Python, Write a program that continuously asks for a non-negative score until the user enters -1.…
A: def score(): total_score_entered = 0 Scores = [] possible_score_list = [] whileTrue: enter_score =…
Q: Write a program to read two integers with the following significance. The first integer value…
A: Required: Write a program to read two integers with the following significance. The first integer…
Q: Create a program in python wages.py that assumes people are paid double time for hours over 60. They…
A: The required Python code is: import random # for random numberimport winsound # for weep soundhrs =…
Q: Write a python program to calculate the electricity bill after taking units from user. The units…
A: Required:- Write a python program to calculate the electricity bill after taking units from the…
Q: Write a Python program that takes a positive integer from the user and prints the number of digits…
A: Python Program for the above problem
Q: Create a python program for the following: Ask the user to input a color marble and set amount to 1.…
A: Take a variable to count the trials Take a variable to input the color of marble. Use a loop to take…
Q: Write a python program that computes the amount of calories burned when you run. Your program should…
A: Use an if-else ladder to find the MET with respect to speed
Q: Write a program that calculates and prints the bill for a cellular telephone company. The company…
A: code snippet:
Q: Write a python program that computes the zakat, obligatory charity, on camels. The program asks the…
A: Please give positive ratings for my efforts. Thanks. PROGRAM #function used def…
Q: In Python, Write a program whose input is two integers. Output the first integer and subsequent…
A: #get the input from the user num1=int(input()) num2=int(input()) #check if num1 is greater than…
Q: Write a program that will determine how many coins of each denomination (50kr, 25kr, 10kr, Skr, and…
A: I'm using C++ to code following given question:
Q: Write a Python program that takes the value of n from the user and calculates the value of S using…
A: Algorithm: Start Read a number n If n<=0, print Invalid Input! Else initialize S to 0 Iterate…
Q: Solve in Python: Write a program that creates a login name for a user, given the user's first name,…
A: Here I have taken input from the user and stored it into 3 different variables. Next, I have…
Q: CODE IN PYTHON In an alternate reality, chemistry Professors Hodge and Sibia have teamed up to…
A: Given The answer is given below. 1.loop until string length becomes 0 a.create new empty string temp…
Q: Write down a complete PYTHON program to do the followings; enter the information of a set of…
A: print("Enter the number of workers: ")numOfWorkers = int(input())#Then we take the hour…
Q: Create a Python program that can compute for the compatibility of two zodiac signs. Follow the…
A: Here is the approach : First take input for both the signs. Then convert them to either smallcase…
Q: a program that repeatedly asks the user whether they wish to calculate another square root. If the…
A: Program: import java.util.Scanner; public class Main{ public static double sqrt(double n) {…
Q: Write a Python program to read the salary for N employees. Your program should find and print :…
A: Given: Write a Python program to read the salary for N employees. Your program should find and print…
Q: In python Programming, Suppose you have four dogs named Leo, Tom, Jerry, and Jack, and four dog…
A: Firstly there are total 4 parts in this. Part 1: No bowl is left empty Part 2: 1 bowl is left empty…
Q: Write Python code of a program that reads a student's mark for a single subject, and prints out the…
A: The code of python is given below:
Q: Write a program FirstToFive that simulates a head-to-head match where two players, Daniel and…
A: I have provided JAVA CODE along with CODE SCREENSHOT and TWO OUTPUT…
Q: Write a program that calculates and prints the bill for a cellular telephone company. The company…
A: C++ Code: #include <iostream>#include <iomanip> using namespace std;int main(){ int…
Q: write a program that simulates the “Rock-paper-Scissors” game. In this game the user and the…
A: Python 3 code is as follows:-
Q: Write a program whose input is two integers, and whose output is the first integer and subsequent…
A: NOTE: - The code is implemented in C language, as programming language is not mentioned. PROGRAM…
Q: Python Programming. Write a program that computes the cost of a long-distance call. The cost of…
A:
Q: Imagine you are working for a lumber company, and your employer would like a program that calculates…
A: The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One…
Q: Write a Python program for ....Mr Ramkumar has divided his property into 3 parts in the ratio of…
A: Python program to divide the property into 3 parts. The property division ratio is 13:12:11 The…
Q: Write a program that reads an integer age of kids, finds the maximum of them, and counts its…
A: #include <iostream> using namespace std; int main(){ int…
Q: Write a Python program which computes win/loss record, average score and average point spread of a…
A: your_team=input("Enter the your team name: ")opponent_team=input("Enter the name of your opponent…
Q: Write a program that computes the cost of postage on a first-class letter according to the following…
A: Use an if-else block to find the cost of postage and then another if-else block to check for special…
Q: Write a program in Python whose input is two integers. Output the first integer and subsequent…
A: EXPLANATION: - The user input is read by using the input function which is of type string. The…
Q: Write a program that calculates the cost per square inch of a circular pizza,given its diameter and…
A: We need to find the per square inch of any circular pizza where diameter and price of pizza will be…
Q: This is an exercise to design and write a Python program in good programming style for a simulation…
A: Actually, the code has given below:
Q: Write a program that computes the cost of a long distance call. The cost of the call is determined…
A: The cost of the call is determined according to the following rate schedule: a. Any call started…
Q: Write a python program for a pig game that has two players that alternate turns rolling dice. In…
A:
Create a program in python wages.py that assumes people are paid double time for hours over 60. They get paid for at most 20 hours overtime at 1.5 times the normal rate.
For example, a person working 65 hours with a regular wage of $10 per hour would work at $10 per hour for 40 hours, at 1.5 * $10 for 20 hours of overtime, and 2 * $10 for 5 hours of double time, for a total of
10*40 + 1.5*10*20 + 2*10*5 = $800.
The number of hours should be generated randomly between 35 and 75.
If the number of working hours is less than 40, display message “The salary cannot be generated” with sound of system bell as a warning.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Q. Create a program in python wages.py that assumes people are paid double time for hours over 60. They get paid for at most 20 hours overtime at 1.5 times the normal rate. For example, a person working 65 hours with a regular wage of $10 per hour would work at $10 per hour for 40 hours, at 1.5 * $10 for 20 hours of overtime, and 2 * $10 for 5 hours of double time, for a total of 10*40 + 1.5*10*20 + 2*10*5 = $800. The number of hours should be generated randomly between 35 and 75. If the number of working hours is less than 40, display message “The salary cannot be generated” with sound of system bell as a warning.Write a program in Python whose input is two integers. Output the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 30 the output is: -15 -5 5 15 25 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first. For coding simplicity, output a space after every integer, including the last.Write a program that computes the cost of postage on a first-class letter according to the followingrate scale: 105 cents for the first gram or fraction of a gram, 35 cents for each additional half gram,plus a $ 15 service charge if the customer desires special delivery. Note: any partial gram increasewill add 35 cent. For example 1.1 g and 1.5 g will cost 105 +35 = 140 cents $ 1.40
- "Write a python program that computes the amount of calories burned when you run. Your program should ask for the duration of the run in minutes the speed of the run in mph and your weight in pounds. Compute the amount of calories burned and print it. The calories burned is computed using the expression below: \n", "\n", "$$ calories/minute = (MET*weight*1.6)/200 $$\n", "\n", "MET is a value given below:\n", "- if speed is 5mph or less - MET = 8\n", "- if speed is greater than 5 and less or equal 8 mph - MET = 11.5 \n", "- if speed is greater than 8 and less or equal 10 mph - MET = 14 \n", "- if speed is greater than 10 mph - MET = 20\n", "\n", "Remeber to multiply this result by the time running to show the total amount of calories burned.\n"**USE PYTHON** Suppose that you’re in a country where it’s customary to eat breakfast between 7:00 and 8:00, lunch between 12:00 and 13:00, and dinner between 18:00 and 19:00. Wouldn’t it be nice if you had a program that could tell you what to eat when? In meal.py, implement a program that prompts the user for a time and outputs whether it’s breakfast time, lunch time, or dinner time. If it’s not time for a meal, don’t output anything at all. Assume that the user’s input will be formatted in 24-hour time as #:## or ##:##. And assume that each meal’s time range is inclusive. For instance, whether it’s 7:00, 7:01, 7:59, or 8:00, or anytime in between, it’s time for breakfast. Structure your program per the below, wherein convert is a function (that can be called by main) that converts time, a str in 24-hour format, to the corresponding number of hours as a float. For instance, given a time like "7:30" (i.e., 7 hours and 30 minutes), convert should return 7.5 (i.e., 7.5 hours). def…Write a Python program for ....Mr Ramkumar has divided his property into 3 parts in the ratio of 13:12:11 for his sons Jugal,Chandan and Raunak.The eldest(Jugal)to get maximum share and the youngest(Rounak)to get minimum share.Find the share of each son if total valuation of property is 14,40,000.
- Write a program that simulates a snail trying to crawl up a building of height 6steps. The snail starts on the ground, at height 0. In each iteration, the snaileither crawls up one step, or slips off one step and falls all the way back to theground. In each iteration you would take a number as input from user and if the number is less 50 than the snail will slip otherwise it will crawl up. The program should keep going until the snail gets to the top of the building. It should then print out the number of falls that the snail took before it finally reached the top.Here is a sample execution:Iteration 1: Please enter a number between [1,100]: 60 Snail Moved: UpIteration 2: Please enter a number between [1,100]: 60 Snail Moved: UpIteration 2: Please enter a number between [1,100]: 40 Snail Moved: DownNumber of falls: 8Write down a complete PYTHON program to do the followings; enter the information of a set of workers: Social security number, Name surname, and number of hours worked in a week Calculate the wage of each worker: If number of hours worked is not more than 40 wage, then; wage = number of hours worked * hour rate Otherwise, wage = 40 * hour rate+ (number of hours worked -40)*2*hour rate Find the total wage that will be paid by the business to the workers Find the largest wage and the name of that worker whose wage is the largest Find the lowest wage and the name of that worker whose wage is the lowest Find the average wage.Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and E, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F-. A + increases the numeric value by O.3, a – decreases it by 0.3. However, an A+ has value 4.0. Enter a letter grade: B- The numeric value is 2.7.
- Write a program in Python that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Quit", "quit", or "q" for the line of text. Ex: If the input is: Hello there Hey quit then the output is: ereht olleH yeHWrite a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the…Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund