How to program java GUI?

Java GUI Program

  • Write a java graphical user interface program that will determine and display when an employee of a company gets a rise, how much he gets, and how often he gets a rise. The two facts that will determine if a user gets a rise and how much are: 1. How long he or she has been with the company 2. How old he or she is. The rise will be calculated based on user’s annual salary (gross). If the user is more than one year with the company and is under 20 years old, he gets a 5 % rise and 3 % every two years there after. If the user is more than one year with the company and is under 30 years old, he gets a 7 % rise and 4 % every two years there after. If the user is more than one year with the company and is under 40 years old, he gets a 9 % rise and 5 % every two years there after. If the user is more than one year with the company and is under 50 years old, he gets a 11 % rise and 6 % every two years there after. If the user is more than one year with the company and is under 65 years old, he gets a 13 % rise and 7 % every two years there after. User must retire at age 65 years.

  • Answer:

    Hello there math01. I've completed your code, and it seems to perform the task well. There are two files: http://xult.org/math01/GUI.java http://xult.org/math01/Calc.java Simply compile them both, and run the GUI class. A window should pop up, and you will then be able to perform these calculations. You must supply FOUR things to the program: * The salary the user started on. * The user's age * The year they started * The current year With that information, the program will calculate what their current salary is. I added a File menu so you can exit the program easily. I hope this helps! Thanks for an interesting question. --seizer-ga

math01-ga at Google Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.