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

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  What are three goals of safety in computing?

What are three goals of safety in computing?

  What will do to get deadline to receive a passing grade

What will do to get deadline to receive a passing grade? You have to complete and submit course project previous to the deadline to receive a passing grade for this course.

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Explain the method to create a scheme for vb mail order

Explain the method to create a scheme for VB Mail Order

  Data representation and logic

Representing Text and Numbers, Binary Arithmetic, Interpreting Logical Statements, Logic Puzzle, Binary and Algorithms.

  Mathematics in computing

Write the selection sort algorithm

  Describe the mechanics of Buffer overflows

Prepare a complete tutorial, including an analogy to describe the mechanics and a graphic to support your analogy, on one of the subsequent areas

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Describe stages of the processor

Describe the decode stage and Describe the execution stage of add, andi, mul, divi, and neg.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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