a you should choose a proper constructor 2. for this object of the Act a setting an initial value (for example, $500) to Luse the set method instance variable balance of this object b. calling a proper method of class Project BankAccount to display a message about the balance in the account calling a proper method of class Projecte BankAccount to withdraw 5.300 from the d. calling a proper method of class Project BankAccount to display a message about the 3. request the initial balance from user 4 create another object of class Project4_BankAccount named myAct with the initial balance obtained from user in step 3 5. for this object of myAct, repeat step 26 through 2d, except it is to deposit $200 to the bank account in step c un the application Project4_BankAccountDemo_Yourinitial java. Snapshot your compiler window to ully show your output pane and name the image as Project BankAccount YourName.png. • You must make sure your both program files are in the same folder. IS140, TSU Table 1: Members of class Project4_BankAccount Project4, BankAccount -lowBalance: static final double -balance: double -username: String + Project4_BankAccount (usema:String): Project4_BankAccount (usemame: String, balance: double): getBalance (double setBalance (balance: double):void * deposit (amount: double):void withdraw (amount:double):void displayMessage(): od Sample Output Create an object with no initial Set $500 to the balance! balance information for Here is a The current balance in 500.00. withdraw 8300 from account! Here is account balance information for The current balance in 200.00. Please enter the user name: (Ma La Please enter the initial balance 392 Create an object with an initial balance Here is account balance information for ( The current balance in 392.00. Deposit $200 to account! Mere La account balance information for M Created by Li Ma Bank username, initiated when creating the first object of the class Bankusemame and initial balance, entered by user Different useam inted when creating the second object of the class
a you should choose a proper constructor 2. for this object of the Act a setting an initial value (for example, $500) to Luse the set method instance variable balance of this object b. calling a proper method of class Project BankAccount to display a message about the balance in the account calling a proper method of class Projecte BankAccount to withdraw 5.300 from the d. calling a proper method of class Project BankAccount to display a message about the 3. request the initial balance from user 4 create another object of class Project4_BankAccount named myAct with the initial balance obtained from user in step 3 5. for this object of myAct, repeat step 26 through 2d, except it is to deposit $200 to the bank account in step c un the application Project4_BankAccountDemo_Yourinitial java. Snapshot your compiler window to ully show your output pane and name the image as Project BankAccount YourName.png. • You must make sure your both program files are in the same folder. IS140, TSU Table 1: Members of class Project4_BankAccount Project4, BankAccount -lowBalance: static final double -balance: double -username: String + Project4_BankAccount (usema:String): Project4_BankAccount (usemame: String, balance: double): getBalance (double setBalance (balance: double):void * deposit (amount: double):void withdraw (amount:double):void displayMessage(): od Sample Output Create an object with no initial Set $500 to the balance! balance information for Here is a The current balance in 500.00. withdraw 8300 from account! Here is account balance information for The current balance in 200.00. Please enter the user name: (Ma La Please enter the initial balance 392 Create an object with an initial balance Here is account balance information for ( The current balance in 392.00. Deposit $200 to account! Mere La account balance information for M Created by Li Ma Bank username, initiated when creating the first object of the class Bankusemame and initial balance, entered by user Different useam inted when creating the second object of the class
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 5PE: Using classes, design an online address book to keep track of the names, addresses, phone numbers,...
Related questions
Question
Can you please help me do this JAVA program? Thank you (:
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 6 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT