Define a class Account
int accNum - to store account number
String name - to store account holder name
double deposit - to store amount deposited
int period - to store number of years (period of deposit)
double rate - to store rate of interest
double interest - to store interest that is calculated
Member Methods: accept() - to accept the required data
compute() - to calculate interest as per the rate of interest
based on period of deposit
Period of Deposit Rate of interest
Upto 2 years 7.50 %
3 to 5 years 7.75 %
Above 5 years 8.00 %
display() - to display the following details as per given format
A/c No. Name Deposit Interest
Write a main method to create an object of the class and call the above member methods.
Answers
Answered by
0
Answer:
shawarma is my favorite
Explanation:
ok cool bye,
Similar questions
Math,
1 month ago
History,
1 month ago
Computer Science,
2 months ago
English,
2 months ago
English,
9 months ago