Question: Problem Design a class named Account that contain: A private int data field named id for the account (default 0) .A private double data field

Problem Design a class named Account that contain: A private int data field named id for the account (default 0) .A private double data field named balance for the account (default 0) A private double data field named annualinterestRate for the account's current interest rate (default 0) A no-arg constructor that creates a default account .A constructor that creates an account with the specified id, initial balance and annual interest rate. The accessor and mutator methods for d, balance and annuallnterestRate. A method called withdraw that withdraws a specified amount from the account A method called deposit that deposits a specified amount from the account percentage. (which is annualinterestRate/12) Monthly Interest Rate* balance) .A method called getMonthlyinterestRate( that return the monthly interest rate in .A method called getMonthlylnterest) that return the monthly interest. (which is Implement the class in UNIX system. Write a test program that creates an Account object with an account ID of 1122, a balance of $20,000 and an annual interest rate of 4.5%. Use the withdraw method of withdraw $2,500, use deposit method to deposit $3,000, and print the balance and the monthly interest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
