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 users 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
Related Q & A:
- How do you pause a program until a button is pressed in JAVA?Best solution by Stack Overflow
- How to use GUI in c language?Which is best GUI for c?Best solution by Quora
- Is there any good tutorials for Mac GUI applications with Swift?Best solution by swift-tutorials.com
- How do you program using Java?Best solution by wikihow.com
- How to create this Java program?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.