The Artima Developer Community
Sponsored Link •

Design Forum
Need help in Java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Vasu

Posts: 1
Nickname: masi
Registered: Dec, 2002

Need help in Java Posted: Dec 14, 2002 12:09 AM
Reply to this message Reply
Advertisement
Hi

I need a urgent help on how to write a Java program that calulates the wage for the staffs.

(1) Read in from the keyboard the current Basic Hourly Wage. This will always be a value between 7.50 and 12.50.
(2) Read in from the keyboard a worker's first and family names.
(3) Read in his skill grade (A, B, or Q.
(4) Read in the number of weeks he wants to calculate his earnings for: this will always be a number between 1 and 6.
(5) For each week, read in the number of hours he worked that week.

and the output must be:

The program should print out the worker's name and skill grade, and then
(a) How much take home pay in total the worker received.
(b) How much is invested in his National Welfare Fund account. (Remember, interest is calculated at the end of each week, and is compounded: that is, previous interest is added to the amount on which interest is paid. Assume that the worker's Fund has nothing in it to start.)

Can anyone help me on this? I need an urgent help on how write this program.

Regards
Masi
frm lovely Kerala

Topic: Article on the "Evils of new" ? Previous Topic   Next Topic Topic: AOP

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use