Question: 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

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

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!