Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

java programming


  • Please log in to reply

#1
aliza

aliza

    New Member

  • Member
  • Pip
  • 2 posts
hi i am trying to make the balance sheet of employee record whose out put is
EMPOYEE RECORD
____________________________________________________________________
emp id:emp name:emp grade:emp pay:allounce(65%of emppay):tax(5% of emp pay): net pay(emp pay+allounce-tax)
____________________________________________________________________
1 asad 5 5000 3250 250
8000








____________________________________________________________________

that is the enteface of my programe i have put just one record in such a way i have required 10 employee record the saneroi of my programe is if the emp pay is 5000 tehn the emp grade should be 5 ,the allounce should be 65% of emp the ,the tax should be 5%of emp pay and the net pay should follow the formula
net pay=(emp pay+allounce-tax).

that was the the sanario of my programe that i cant apply on the java programe so please sole my problame by given the programe according to the sanario that i describe above.
  • 0

Advertisements


#2
scicatur

scicatur

    Member

  • Member
  • PipPip
  • 16 posts
Here some quick respuesta to your interfase prueba.
net_pay = emp_pay+0.65*emp_pay-0.05*emp_pay;
if( emp_pay >= 5000 ) emp_grade = 5;
simple, isn't it.
if interesado in learning java go to http://java.sun.com
adiós
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP