Question

Write a program in python language that calculates the salary of an employee who works under...

Write a program in python language that calculates the salary of an employee who works under an hourly wage contract in a company. To read his name, the working hours of the month, his hourly wage and whether he is married or unmarried.
The reservations made to him depend on the amount of his salary. If the salary is up to € 1000 per month, it has 15% reservations, while otherwise it has 25% reservations. Also, if he is married, he has an allowance of € 50.

Homework Answers

Answer #1

name=input()
hours=int(input())
wage=int(input())
status=input()
x=hours*wage
if x<1000:
   if status=="married":
       salary=x-(0.15*x)+50
       print(salary)
  
   else:
       salary=x-(0.15*x)
       print(salary)
else:
  
   if status=="married":
       salary=x-(0.25*x)+50
       print(salary)
   else:
       salary=x-(0.25*x)
       print(salary)
  

This is the program to calculate salary of an employee.Use simple if elif to solve this problem

i think it will hep you

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write a program in python that calculates the salary of employees. The program should prompt the...
Write a program in python that calculates the salary of employees. The program should prompt the user to enter hourly rate and number of hours of work a day. Then, the program should display the salary daily, bi-weekly (5 days a week), and monthly. Sample program: Enter your hourly rate: >>> 20 Enter how many hours you work a day: >>> 8 Your daily salary is: $160 Your bi-weekly salary is: $1600 Your monthly: $3200
Write a program In python of Jupiter notebook That prompts the user to enter his/her first...
Write a program In python of Jupiter notebook That prompts the user to enter his/her first name, last name, and year of birth in a single string (in the format: fn;ln;yyyy), then calculates the age tell it to him/her after greeting him/her using the first name. Make sure to capitalize the user's first name, regardless of how he/she typed it in. Hint: review Exercise 1! Example: Enter your first name, last name, and birth year (in format fn;ln;yyyy): alex;smith;1994 Hi...
**JAVA LANGUAGE** Write a program that models an employee. An employee has an employee number, a...
**JAVA LANGUAGE** Write a program that models an employee. An employee has an employee number, a name, an address, and a hire date. A name consists of a first name and a last name. An address consists of a street, a city, a state (2 characters), and a 5-digit zip code. A date consists of an integer month, day and year. All fields are required to be non-blank. The Date fields should be reasonably valid values (ex. month 1-12, day...
Python Jupyter Notebook Write a program that prompts the user to enter his/her first name, last...
Python Jupyter Notebook Write a program that prompts the user to enter his/her first name, last name, and year of birth in a single string (in the format: fn;ln;yyyy), then calculates the age tell it to him/her after greeting him/her using the first name. Make sure to capitalize the user's first name, regardless of how he/she typed it in. Hint: review Exercise 1! Example: Enter your first name, last name, and birth year (in format fn;ln;yyyy): alex;smith;1994 Hi Alex, you...
Timberrrrr Tree, LLC ("Timberrrr") operates a tree removal service. Their slogan is "Short or Tall We...
Timberrrrr Tree, LLC ("Timberrrr") operates a tree removal service. Their slogan is "Short or Tall We Chop 'Em All". Theresa and Richard Rosen hire Timberrrr to clear 10 trees on their property. The estimate they receive from Timberrrr quotes a price of $6,000.00. A deposit of $500.00 must be paid within 7 days of the estimate, $2,500.00 must be paid at the start of the first day of Timberrrr's work. The remainder must be paid upon completion of the job....
Case Study #1: Mr Raffi Hagopian Baltimore, Maryland: The winter sun strained to enter through the...
Case Study #1: Mr Raffi Hagopian Baltimore, Maryland: The winter sun strained to enter through the grimy window of the eleventh floor studio apartment where Raffi Hagopian, seventy-nine, was beginning to awaken underneath the broken acrylic electric blanket which barely insulates him from the fifty-five degree temperature in the room. For Mr. Hagopian and millions of other elderly poor who survive on meager social security checks, this is the most risky time of the month--the week before the next check...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It slaughters, manufactures, and sells pork food products.  Pigs R Us (PRU) is a low-tech, hands-on, “bricks and mortar” type of company with solid brand recognition, an impeccable reputation for high quality and ethical standards. The processes used in manufacturing are with the highest ISO20002 standards, and the plant is maintained immaculately. The personnel are comprised of an older work force (average employee age is late...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It...
Scenario Pigs R Us is a second generation, family-owned Richmond-based company with about 400 employees. It slaughters, manufactures, and sells pork food products.  Pigs R Us (PRU) is a low-tech, hands-on, “bricks and mortar” type of company with solid brand recognition, an impeccable reputation for high quality and ethical standards. The processes used in manufacturing are with the highest ISO20002 standards, and the plant is maintained immaculately. The personnel are comprised of an older work force (average employee age is late...
Subject: Human Resource Management Main question: Which benefit plans would you choose, and which wouldn't you...
Subject: Human Resource Management Main question: Which benefit plans would you choose, and which wouldn't you choose and give reasons why you would or would not want a benefit that were used in making the benefit selections (specially at at entry level making $30000). PROCEDURES: Assume that you recently graduated from college and are just starting a new job at a large firm. You will be receiving a starting net pay (net of all taxes and mandatory deductions) of $30,000....
In narrative essay format, I want you to address a business/organization case study using multiple concepts...
In narrative essay format, I want you to address a business/organization case study using multiple concepts from class. The case question and case text begin on page 5 of this document. You need to demonstrate their best understanding of management and organizational behavior theory, and the application of those ideas to improve the understanding of various issues. You need to clearly identify at least 3 distinct, substantive issues. For each issue you need to 1), identify evidence from the case...