Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a class named BankAccount with data fields for a count number and a balance. Include a constructor that takes arguments for each field. The
Create a class named BankAccount with data fields for a count number and a balance. Include a constructor that takes arguments for each field. The constructor sets the balance to 0 if it is below the required $200.00 minimum for an account Include a method that displays the account details, including an explanation if the balance was reduced to 0. Write the class TestAccount in which you instantiate two BankAccount objects, prompt a user for values of the account number and the balance, and then display the values for each field in each account object. Make sure to format the balance output as currency with the "S" sign and values of dollars and cents (use Java currency formatter) Save both classes as BankAccount.java and TestAccount.java Compile, run and test the application. Submit two original java files as an attachment to your initial response. (Please do not copy paste the whole file codes into your response.) Zip them into a single zip file and attach the zip file to your post. In the initial response itself, provide comments and explanations of your solution, including the UML diagram of your application
Step 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