Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#3 and 4 and 5 PYTHON 3 10:52 PM | 3 | (46) Assignment Details 6202-COSC-2436-Programming Fundamentals III.... 4. Write a program that will calculate

image text in transcribedimage text in transcribed

#3 and 4 and 5

PYTHON 3

10:52 PM | 3 | (46) Assignment Details 6202-COSC-2436-Programming Fundamentals III.... 4. Write a program that will calculate the net pay of an employee. The steps for calculating the net pay is: in functions A function that gets the employee's hourly pay rate A function that gets the number of hours worked A function that calculates the employee's gross pay A function that calculates the overtime pay A function that calculates the withholdings for taxes and benefits A function that calculates the net pay A function that prints the paycheck The calls of each functions happens as follows: Regular rate = 10.00 Overtime rate = regular rate * 1.5 Hoursworked = 50 Regular pay = 40 *regular rate Overtime pay = (hoursworked - 40) * (regular rate * overtime rate) Gross pay = Regular Pay + Overtime Pay (if any) Withholdings = (Tax = 10% of the gross Pay ) + (benefits = retirement = 6% of the gross pay) Net Pay = Gross Pay - Withholdings Submit Assignment 10:53 PM Assignment Details 6202-COSC-2436-Programming Fundamentals IIl.... PA TX, TX, LA EL White LA. FL Green Get the employee category (1/2/3/4) and the state from the user and display what color code he/she has to follow for the conference. 3. Do only Pattern A, B and C. (Display four patterns using loops) Use nested loops that display the following patterns in four separate programs: Pattern A Pattern B Pattern Pattern D 5 6 5 12 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 21 321 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1 1 2 3 4 1 2 3 4 1 2 3 4 123 12 7. Celsius Temperature Table The formula for converting a temperature from Fahrenheit to Celsius is C- F - 32) where F is the Fahrenheit temperature and C is the Celsius temperature. Write a func- tion named celsius that accepts a Fahrenheit temperature as an argument. The func tion should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of the Fahrenheit temperatures through 20 and their Celsius equivalents. Submit Assignment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Different types of Grading?

Answered: 1 week ago

Question

Explain the functions of financial management.

Answered: 1 week ago

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago