Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use JAVA coding style! You don't have to write, it can be typed. Thank you in advanced! (1) Design a class named Account that
Please use JAVA coding style! You don't have to write, it can be typed. Thank you in advanced!
(1) Design a class named Account that contains: - private int data field named id for the account (default ) - private double data fiell named balance for the account - private double fiell named annual Interest Rate that stores the current interest rate (default ) Assume all accounts have same interest rate - private Date field named dateCreated that stores the date when the account was created. c default constructor that creates a defaultaccount - constructor that creates an account with the specified id \& initial balance. - Accessor \& mutator methods for id, balance, $ annual Interest Rate - Accessor method for dateCreated - method named get Monthly Interestrate() that returns the monthly interest rate - method named getMonthly Interest() that return: the monthly interest - method named withdraw that withdraws a specified amount from the account - method named deposit that deposits a specified C mount to the account - Write a test demo program that creates an Account object with an ID of 1122, a balance of $20,000.00, an annual interest rate of 4.5% - Use the withdraw method to withdrow \$2,500, \$use the deposit method to deposit $3,000,00,& print the balance, the monthly interest, \& the date when this account was createdStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started