Write program to calculate pay of different types of employe

Assignment Help Computer Engineering
Reference no: EM132434

Question

In this Assignment, you will plan and write a GUI program to calculate pay for different types of employees. Your program should have following components-

1. Combo box to select the type of employee.

2. Two text fields to input the number of hours worked and pay rate.

3. A button to calculate the total pay.

4. Labels where appropriate.

The types of employees are as follows:

1. Salaried - These employees do not get paid by hour and earn $2000 plus a weekly bonus. Use a JOptionPane to ask for a weekly bonus.

2. Hourly - These employees are paid a sure amount per hour. Any work in excess of 40 hours is paid at time and a half

3. Volunteer - These employees do not get paid anything.
If Salaried or Volunteer is selected in the combo box, the hours and rate text fields have to be disabled, as they are not needed. Whenever employee type is changed, the hour's text field have to reset to 0 and the rate text field should reset to 0.0. If calculate button is pressed when no employee type is selected, use a JOptionPane to tell the consumer to select an employee category.

 

Reference no: EM132434

Questions Cloud

What is brendas basis at the end of 2013 : What is Brenda's basis(stock and/or debt) at the end of 2013?
Define the way for creating work breakdown structure : Define the way for creating work breakdown structure Use a hypothetical project to illustrate your understanding of the WBS.
Prepare a memorandum that outlines the tax consequences : Prepare a memorandum that outlines the tax consequences of each of the three alternative acquisitions
Evaluate approximate activity cost driver rates : Evaluate approximate Activity Cost Driver Rates (ACDR) for the drivers you have chosen.
Write program to calculate pay of different types of employe : Write program to calculate pay of different types of employe
Evaluate total amount for intangible assets : Evaluate the total amount to be reported by Langrova for intangible assets
How to expand class linkedlisttype : Expand class linkedListType. Write down a function that returns the info of the kth element of the linked list. If no such factor exists, output an appropriate message.
How to produce a work breakdown structure : How to produce a Work Breakdown Structure. Ensure main WBS tasks headings are the 5 PMBOK® process areas.
What are pros and cons of society''s increasing reliance data : What are pros and cons of society's increasing reliance data

Reviews

Write a Review

Computer Engineering Questions & Answers

  Produce two random integer numbers between 1 and 200

Produce two random integer numbers between 1 and 200.

  Examine the importance and purpose of of n-tier systems

Examine the importance and purpose of of n-tier systems

  Write program that generates casual number between 1 and 100

Write program that generates casual number between 1 and 100?

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  What profit do you see with partitioned view

Explain your idea for a database along with your thoughts for a partitioned view. 1. How will you use this partitioned view?

  Prepare a use case diagram

Prepare a Use Case Diagram based on the given problem description.

  How to write a program to find a traffic violation number

How to write a program to find a traffic violation number?

  How to create program that performs arithmetic function

How to create program that performs arithmetic function Prompt a user for values for the variables. Pass both variables to methods named sum() and difference().

  The difference between roles and groups

The difference between roles and groups

  How to create a set in third normal

How to create a set in third normal RESERVATION(reservation id, date of reservation, start date, end date, (( customer id, customer name, customer address, customer type, customer type description, ((customer preferences)), customer credit card n..

  How to concern about personal privacy, efficiency

How to concern about personal privacy, efficiency

  How to enlarge the size of the array

How to enlarge the size of the array? Enlarge the size of the array to 25. Driver will start with 10 objects in it other than has provision for up to 15 new objects. You can use java any API.

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