Questions One.
The management of Accra Polytechnic has decided to introduce a new salary scheme for its faculty. In the Policy,
bonus is base on the fact that one is a senior staff or junior staff. You have been call in as a programmer to
develop a software to meet this policy`s requirement: Your task has been broken down in the as follow.
a) Creaate a class called Sallary.
b) Create method that will calculate.
c) The tax which is 5% of the gross salary.
d) Bonus depending on the status of employee-senior/junior
i. Senior staff-1 hour-50 pounds
ii. Junior staff-1 hour-20 pounds
iii. Net Salary - Bonus+gross salary-tax.
e) Create another class called SalDemo with the main funtion.
f) Declare an instance of the salary class called Sal.
g) Use the cal project to check the net salary.
h) Use scanner class to allow a user to enter the status, time and the gross salary.
Question two
At United Standard Bank limited, a customer should be able to deposit money, withdraw money and check
his-her balance. You have been approached to develop a system for the USB bank.
Required:
a) Create a class call customer.
b) The balance of the customer should be 1000 pounds
c) Create methods for the deposit, withdrawal and checking of balance transactions.
Use the appropriate data members to help you accomplish this.
d) Create another class called Bank within the main function.
e) Declare an instance of the Customer class called Cust.
f) Use the Cust object to check the current balance.
g) Use scanner to allow a user enters a deposit. The program should display new balance.
h) Use the Scanner to allow the user to place a withdrawal amount. The program should display the new balance.