Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

 

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9132854

Have any Question?


Related Questions in Computer Engineering

Question advanced microprocessors amp labdirect addressing

Question: Advanced Microprocessors & Lab Direct Addressing and Initializing the Stack Directions: Please answer BOTH of the questions. About 50-75 words per question. Plagiarism will be disputed, so please be 100% origin ...

Question using a web browser perform some research on a

Question: Using a Web browser, perform some research on a newer malware variant that has been reported by a major malware containment vendor. Using a search engine, go to the vendor's Web site; this could be Symantec, Mc ...

Suppose you want to back up a huge file to a cd-r you can

Suppose you want to back up a huge file to a CD-R. You can do this by splitting the file into smaller pieces and backup up those pieces separately. Write a utility program named FileSplitter that splits a large file into ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Solve the problem by implementing the whole class with main

Solve the problem by implementing the whole class with main() function and demonstrate that your Java code can pass several appropriate test cases successfully in your main() function? Write a short recursive Java method ...

A chemistry student needsnbsp700 ml of dimethyl sulfoxide

A chemistry student needs 70.0 mL of dimethyl sulfoxide for an experiment. By consulting the  CRC Handbook of Chemistry and Physics , the student discovers that the density of dimethyl sulfoxide is 1.10 g.cm^-3. Calculat ...

The system development team at the xyz company is working

The system development team at the XYZ Company is working on developing a new customer order entry system. In the process of designing the new system, the team has identified the following data entity attributes: Invento ...

Anbspwhen aqueous solutions (a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are

(a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are mixed, does a precipitate form? _____ yes -no (b)  Write a balanced equation for the precipitation reaction that occurs when aqueous solutions of  potassium c ...

Reflective journal entryreflective journal entry on writing

Reflective Journal Entry Reflective Journal Entry on writing a Bibliography Assignment Topic; Research Question: One of the most common questions that new students learning programming students ask is what programming la ...

Question suppose we have 29 bytes of virtual memory and 27

Question : Suppose we have 29 bytes of virtual memory and 27 bytes of physical main memory. Suppose the page size is 23 bytes. (a) How many pages are there in virtual memory? (b) How many page frames are there in main me ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As