Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This programs should be in python Exercise 1: Wage calculation Create a program to calculate the wage. Assume people are paid double time for hours
This programs should be in python
Exercise 1: Wage calculation Create a program to calculate the wage. Assume people are paid double time for hours over 60. Therefore they get paid for at most 20 hours overtime at 1.5 times the normal rate. For example, a person working 70 hours with a regular wage of $20 per hour would work at $20 per hour for 40 hours, at 1.5 * $20 for 20 hours of overtime, and 2 * $20 for 10 hours 20 * 40 + 1.5 * 20 * 20 + 2 * 20 * 10 = 1800 The program shall include the following features: 1. Prompt the user to enter the name, regular wage, and how many work he/she has worked for the week. 2. Print the following information: Name Regular wage Hours worked in one week Total wage of the week Exercise 2: Using while and else statements to calculate costs Create a program to calculate the number of items purchased, total costs, and average cost of shopping. The program shall include the following features: 1. Prompt the user to enter the price of the item. Continue this until you enter the value of item price is 0. When you enter to the price prompt, you indicate there is no more 2. Calculate the total cost and the average cost of the items. 3. Print three pieces of information: number of items purchased, total cost, and average cost. Exercise 3: Calculate the area of a circle using center point and a circle point The program is used to calculate the area of a circle. Your program shall include the following features: 1. Create a distance function that calculates the distance between the center point and another point on the circumference of the circle. Use the distance equation: de V (((x) _2-x_1)]^2+( [y_2-y_1)]^2 ) 2. Create an area function that calculates the area of the circle using the distance as the radius. 3. Create a function or main function to call the other two functions to calculate distance (radius) and area of the circle. 4. Prompt for entering the coordinate values of the center point and a point on the circumference. 5. Print the area of the circle. Exercise 4: Creating functions to calculate the perimeter and area of a rectangle by giving two diagonal corner points The program is used to calculate the perimeter and area of any rectangle by giving two diagonal corner points. The main features of the program shall include: 1. Create one perimeter function and one area function for calculating the perimeter and area of the rectangles. Note: Use the two diagonal corner points. 2. Prompts for entering the coordinate values of two diagonal corner points of the rectangle. 3. Call perimeter function and area function to calculate the perimeter and area of the rectangle. 1 Print the resultsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started