Jump to content

how do i star a program like this

- - - - -

  • Please log in to reply
1 reply to this topic

#1
atoivan

atoivan

    Learning Programmer

  • Members
  • PipPipPip
  • 61 posts
Mumuni International Airport decided to have a salary plan for its employees. In the new Policy, bonus is based on the fact that one senior staff or junior staff. You have been called in as a programmer to develop a software to meet this policy’s requirement:
(a) Create a class called salary
(b) Create a methods/functions that will calculate
i. The tax which is 5% of gross salary
ii. Net salary= gross salary – tax
© Create another class called SalDemo with the main function
(d) Declare an instance of the salary class called calculate
(e) Use the cal object to check the net salary
(f) Use JOptionPane to allow a user to enter the status, time and gross salary
(g) The Net salary should pop up

Using principle of inhertantce, create a class loan which will calculate a person’s the feasibility of getting a loan using if statements.
i. If employee’s gross salary is above 1000 ghana cedis then give loan of 5000 ghana cedis
ii. If the employee’s gross salary is below 1000 gaha cedis then give loan of 3000 ghana cedis
iii. If the employess’s gross salary is below 500 ghana cedis then loan not given.
Output the loan that employees will receive due to their gross salary


NB:

it is not a home work saw it some where in a book am want to try it out

#2
DonCash

DonCash

    Newbie

  • Members
  • Pip
  • 7 posts

atoivan said:

it is not a home work saw it some where in a book am want to try it out

If this is the case, what have you tried out?
Show us the code you have written and let us know what part you are stuck on.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users