Question: Java CS 182 Module 11 Lab Account Class (3) (Protected View) - Word (Unlicensed Product) Sign in File Home Insert Design Layout References Mailings Review

Java

Java CS 182 Module 11 Lab Account Class (3) (Protected View) -Word (Unlicensed Product) Sign in File Home Insert Design Layout References Mailings

CS 182 Module 11 Lab Account Class (3) (Protected View) - Word (Unlicensed Product) Sign in File Home Insert Design Layout References Mailings Review View HelpTell me what you want to do PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit,it's safer to stay in Protected View.Enable Editing PRODUCT NOTICE Most of the features of Word have been disabled because it hasn't been activated.ctivt Lab Assignment #1 Lab 10 Objective We are going to develop a class and a Test Application to verify the correct operation. (The Account class) Design a class named Account that contains: 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 that stores the current interest rate (default 0). All accounts have the same interest rate (static variable). A private Date data field named dateCreated that stores the date when the account was created. (import java.util.Date) A no-argument constructor that creates a default account. A constructor that creates an account with the specified id and initial balance. The accessor and mutator methods for id, balance, and annuallnterestRate, A method named getMonthlylnterest0 that returns the monthly interest that is accrued on the current balance. A method named withdraw that withdraws a specified amount from the account A method named deposit that deposits a specified amount to the account A toString method which will print the current Account ld, the balance, the monthly interest and the date when the account was created. (FYI. The Date class also contains a toString() method which will provide a String of the date created) Lab Tasks Implement the class above. Write a test program that creates an array of Account objects, using a constant MAX_ACCOUNTS to define the size of the Account array o Prompt the user if they would like to create an account. If so, create an Account in the array and prompt the user for the Account ld and the initial balance. Promot the user for the interest rate. a withdrawal amount and a deoosit amount o Page 1 of 2 563 words + 100% 10:10 PMM O Type here to search 11/1/2018 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!