Question

In: Computer Science

How to write this Python You are a small business owner and you have six employees....

How to write this Python
You are a small business owner and you have six employees. All the employees have the same pay rate, that is $12 per hour. Write a program that will ask the user to enter the number of hours worked by each employee, then display the amounts of gross pay for each employee.

1.    Get the number of worked hours for each employee and store it in a list.
2.    Use the stored value in each element to calculate the gross pay for each employee and display the amount. 
3.    Match your output format to the below sample output.

Answer should look like this

Enter the hours worked by employee 1: 20
Enter the hours worked by employee 2: 25
Enter the hours worked by employee 3: 29
Enter the hours worked by employee 4: 30
Enter the hours worked by employee 5: 20
Enter the hours worked by employee 6: 19

Enter the hourly pay rate: 12

Gross pay for employee 1: $240.00
Gross pay for employee 2: $300.00
Gross pay for employee 3: $348.00
Gross pay for employee 4: $360.00
Gross pay for employee 5: $240.00
Gross pay for employee 6: $228.00

Solutions

Expert Solution

If you have any doubts, please give me comment...

hours_worked = []

for i in range(1, 7):

    hours = int(input("Enter the hours worked by employee "+str(i)+": "))

    hours_worked.append(hours)

print()

pay_rate = int(input("Enter the hourly pay rate: "))

print()

for i in range(6):

    print("Gross pay for employee %d: $%.2f"%(i+1, hours_worked[i]*pay_rate))


Related Solutions

Your client is the owner of a business with six employees, and is thinking about setting...
Your client is the owner of a business with six employees, and is thinking about setting up a qualified retirement plan. What questions would you ask the client, and why, to determine what kind of plan would be best for her? What questions would you ask the client, and why, to determine whether there might be some retirement-planning alternative better than a qualified plan?
Assume you are the owner of a small apparel manufacturer with approximately fifty employees. Your business...
Assume you are the owner of a small apparel manufacturer with approximately fifty employees. Your business is located in a blighted area of town where the jobs you provide are important, but the insurance costs of doing business there are significant, too. Recently, fire and theft coverage has escalated in cost, but it is essential to protect your premises and inventory, and local ordinances require that you purchase it. You have customarily provided health coverage for your employees and their...
As the head of a small insurance company with six employees, you are concerned about how...
As the head of a small insurance company with six employees, you are concerned about how effectively your company is using its networking and human resources. Budgets are tight, and you are struggling to meet payrolls because employees are reporting many overtime hours. You do not believe that the employees have a sufficiently heavy work load to warrant working longer hours and are looking into the amount of time they spend on the Internet. Each employee uses a computer with...
You are a cost management consultant and you have been asked by a small business owner...
You are a cost management consultant and you have been asked by a small business owner for business advice. Your client owns a chain of small, local operations that support larger caterers for special events. Your client provides the tents for outside events, the soft drinks and snacks for the children of events, along with floral and other decorative arrangements. This kind of business is extremely competitive and your client would like to know how far she can lower her...
You are a cost management consultant and you have been asked by a small business owner...
You are a cost management consultant and you have been asked by a small business owner for business advice. Your client owns a chain of small, local operations that support larger caterers for special events. Your client provides the tents for outside events, the soft drinks and snacks for the children of events, along with floral and other decorative arrangements. This kind of business is extremely competitive and your client would like to know how far she can lower her...
You are a cost management consultant and you have been asked by a small business owner...
You are a cost management consultant and you have been asked by a small business owner for business advice. Your client owns a chain of small, local operations that support larger caterers for special events. Your client provides the tents for outside events, the soft drinks and snacks for the children of events, along with floral and other decorative arrangements. This kind of business is extremely competitive and your client would like to know how far she can lower her...
Assume that you are a consultant to a small business. The owner of the business does...
Assume that you are a consultant to a small business. The owner of the business does not have an accounting background and has turned to you for assistance.The owner believes that one or more employees may be stealing inventory from the business. Write a memorandum to the business owner in which you identify the type of business and answer the following questions: Identify two (2) signs that an employee might be stealing from the business that detail what should the...
DO YOU THINK YOU HAVE THE CHARACTERISTICS TO BE A SUCCESSFUL SMALL BUSINESS OWNER-COMPARE AND CONTRAST....
DO YOU THINK YOU HAVE THE CHARACTERISTICS TO BE A SUCCESSFUL SMALL BUSINESS OWNER-COMPARE AND CONTRAST. Interview 0ne or two business owners. Ask them to describe the characteristics they think are necessary for being a successful entrepreneur. Using your finding, write a report that includes the following: a. A profile of a successful small business owner? b. A comparison of your personal characteristics with the profile of the successful entrepreneur?
- Put yourself on a small business owner shoes, what are the factors that you will...
- Put yourself on a small business owner shoes, what are the factors that you will consider before choosing an e-commerce? -From your personal experience, have you ever experienced a fraud while using an e- commerce website, tell someone`s experience if you don’t have your own? -talk about the essentials to e-commerce success that are affecting the customer`s shopping experience? (Acquiring customer , Maximizing web site preformance, Retaining customer ).
If you were a small business owner, how would your inability to collect your receivable timely...
If you were a small business owner, how would your inability to collect your receivable timely affect your business operations?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT