Calculate the weekly pay given the hours worked

Assignment Help Other Subject
Reference no: EM132301831

Assignment: Write a GUI class PayRoll() that calculates the weekly pay given the hours worked and the pay rate. Hours worked over 40 hours per week are given time and a half. For example, 32 hours at $5/hr is $160.00 for the week. While, 50 hours at $20.00/hr yields $1,100.00 for the week.

Your GUI should have:

a. two labels and two entry boxes for the user to enter the information

b. a Button ‘Compute Week's Pay' that, when clicked, computes the week's paycheck and displays the amount in a third entry box

• The entry box that displays the week's pay should display correctly, with a ‘ and two digits after the decimal.

c. a Button ‘Clear' that clears the entries

d. check for incorrect input (with a try and except)

• display this error message (for incorrect input) in a separate window: ‘Uh-Oh, Invalid input'

Test your class using the following statement in your midterm.py file:

PayRoll().mainloop()

Reference no: EM132301831

Questions Cloud

Provide medical treatment for illegal immigrants : Does the United States of America have a moral obligation to provide medical treatment for illegal immigrants? Why or why not?
Difficult aspects of organization management : Implementing change is often one of the most difficult aspects of organization management. Imagine that you are the Human Resources Director of a corporation
Stereotyping is an oversimplified opinion : Stereotyping is an oversimplified opinion or judgement about a particular group of people.
According to mintzberg model of organization : Identify the following sections in an organization belong to which organizational region according to Mintzberg’s model of organization
Calculate the weekly pay given the hours worked : Write a GUI class PayRoll() that calculates the weekly pay given the hours worked and the pay rate. Hours worked over 40 hours per week are given time.
What is self-managed team : What is self-managed team? What is it bad side? How can it becomes harmful when the business grows strong?
Waltham manufacturing produces kitchen cabinets-book cases : Waltham Manufacturing produces kitchen cabinets, book cases, custom closets, mantels, wall units, garage cabinets, bathroom cabinets, office furniture
Explain the importance of sustainability : Explain the importance of sustainability in the process of collective bargaining?
Characteristic of typical franchisor-franchisee relationship : Which of the following is not a characteristic of the typical franchisor-franchisee relationship?

Reviews

Write a Review

Other Subject Questions & Answers

  Describe the two works of art by applying questions

Describe these two works of art by applying at least three questions art historians ask and four words art historians use.

  What are the characteristics of the target market

What are the key points of difference of the 3M Greptile Grip golf glove when compared to competitors' products, such as FootJoy and Nike.

  Discuss how to find a purpose or objective that employees

Work in organizations, directed toward achieving shared goals, also answers another human need: it allows us to feel useful. Individuals need to commit

  Discuss changes that you would make to your local

Locate and evaluate a periodical or newspaper article in print or online (e.g,, Wall Street Journal, New York Times, Time magazine, The Economist, Forbes) that details an economic issue on the local (Washington DC), state, or federal level. Make s..

  How do agencies communicate le information to each other

How can managers better communicate with their subordinates in the LE organization? How do agencies communicate LE information to each other?

  Define quantitative research and provide two examples

In your own words, define quantitative research and provide two examples of quantitative designs with a brief explanation of each design.

  Create your nab company name and explain its significance

The name for my non-alcoholic beverage company is called "Splash". With Splash we intend to bring another fruit drink to the market using all natural fruit flavors. By using natural flavors we can also cut down on the sugar that's used which mak..

  Substance abuse affects people across adult lifespan

Substance abuse affects people across adult lifespan, young to old. Of those who recognize their problem, 273, 000.

  Explain the type of simulation that might have enhanced you

Explain the type of simulation that might have enhanced your learning and why. Describe how you could use this simulation to achieve the same objectives in a more meaningful way. Justify your response.

  Skeletons have bone densities

Two of the skeletons have bone densities that are 30% less than those of the other two skeletons. The skeletons with the lower bone mass also have broader front pelvic bones.

  Estimate the future cash flows of the company

Using the historical financial statements of Starwood (see attached excel file), estimate the future cash flows of the company using reasonable assumptions

  Find a strategy or goal statement

Research a company and try to find a strategy or goal statement. Do you think you could align an HPT intervention to it-What kinds of requirements do you think

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd