You are on page 1of 1

JAVA ASSIGNMENT 7

1. Define a class “Account” with variables as “accType” and relevant method(s). Create
classes “SavingsAccount” and “CurrentAccount” inherited from “Account” and add
relevant features.
You need to WAP which will satisfy the following:
a. Figure out the inheritance need to be applied
b. Print the account type as per the execution
c. Take “balance” as input from user and based on account type
a. find out interest to receive half-yearly.
b. If the balance is greater than 2 lacs display the message “Business loan
available.”
d. If a further “FixedDeposit” class to be created then which class to inherit and
which kind of inheritance will be applicable. Create it and print the ROI applicable
against fixed deposit of Rs. 2000 per month for 15 months as well as for 2 years 3
months respectively as per the mentioned slab.

Maturity Period
General Senior Citizen
7 days to 14 days 2.50% 3.00%
15 days to 29 days 2.50% 3.00%
30 days to 45 days 3.00% 3.50%
46 days to 60 days 3.00% 3.50%
61 days to 90 days 3.00% 3.50%
91 days to 120 days 3.50% 4.00%
121 days to 150 days 3.50% 4.00%
151 days to 184 days 3.50% 4.00%
185 days to 210 days 4.40% 4.90%
211 days to 270 days 4.40% 4.90%
271 days to 289 days 4.40% 4.90%
290 days to less than 1 year 4.40% 4.90%
1 year to 389 days 4.90% 5.40%
390 days to < 18 months 4.90% 5.40%
18 months to 2 years 5.00% 5.50%
2 years 1 day to 3 years 5.15% 5.65%
3 years 1 day to 5 years 5.35% 5.85%
5 years 1 day to 10 years 5.50% 6.30%

Submission procedures:
You need to write the program using any IDE and then execute the code. After execution,
copy the code and output and paste it in a doc file. Arrange the file in proper manner so that
the question and its relevant solution is clearly understandable. Finally Submit it in PDF
FORMAT ONLY.

You might also like