[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

simple program required

Asked by zorro2250 in Java Programming Language

Tags: calculation, programming, salary, simple

I am a complete beginner to java and have been trying to 'teach myself'sort of thing. A couple of excersises in a book have me a little confused, heres one of them:
Write a program to calculate contributions of an employee. The program should:

prompt for a salary and age, and work out the required contributions from this data.

These two items will be whole numbers, but the contributions calculation may be a floating-point number.

If the employee is aged 50 or over, their taxable income reduces by 10%.

Taxation Rates
The taxation rates and thresholds are the following:
Income/ contributions Calculation
$0 - $6,000 No contributions
$6,001 - $21,600 17% on each $1 over $6000
$21,601 - $52,000 $2,652 plus 30% on each $1 over $21,600
$52,001 - $62,500 $11,772 plus 42% on each $1 over $52,000
$62,501 + $16,182 plus 47% on each $1 over $62,500
Sample Execution
For example, the contributions calculation for an employee with a salary of $54,000 is:
11772 + (2000 * 0.42) = 12612
If this employee was over 50, their taxable income would be $48,600, and the
calculation would then be:
2652 + (27000 * 0.30) = 10752
The program, when run, might look as such:
Enter the employee’s taxable income: 54000
Enter the employee’s age: 52
Their tax payable is $10752.00

If someone could give me the programming language for that just to 'println'(no gui) it would give me a reference to go back to each time.

 
Related Solutions
 
Loading Advertisement...
 
[+][-]07/03/04 02:55 AM, ID: 11462484Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Java Programming Language
Tags: calculation, programming, salary, simple
Sign Up Now!
Solution Provided By: rafiek
Participating Experts: 6
Solution Grade: B
 
[+][-]06/22/04 06:51 AM, ID: 11369047Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 06:55 AM, ID: 11369085Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/22/04 06:56 AM, ID: 11369097Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 06:57 AM, ID: 11369107Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 06:59 AM, ID: 11369133Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 07:03 AM, ID: 11369186Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 07:08 AM, ID: 11369236Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06/22/04 07:23 AM, ID: 11369385Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 08:45 AM, ID: 11370430Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06/22/04 08:49 AM, ID: 11370472Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06/22/04 08:52 AM, ID: 11370521Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 08:53 AM, ID: 11370536Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/22/04 10:36 PM, ID: 11376406Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/23/04 10:48 AM, ID: 11381673Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92