Step 1:
Create a class named Account with data fields for an account number, payment amount and balance as well as the appropriate set and get methods. Include a constructor method that contains no arguments. Set the account number equal to 23456, payment amount to 250 and the balance to 3600. Write the appropriate comments and save the program. Compile and correct any errors.
Step 2:
Create a program named TestAccount to demonstrate that each method created in BankAccount works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.
Step 3:
Create an additional overloaded constructor for the Account class. This constructor should receive one argument for the account number and two assigned values for the payment amount and the balance. Make the three numbers different from the ones used in Step 1. Write the appropriate comments and save the program. Compile and correct any errors.
Step 4:
Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.
Step 5:
Create an additional overloaded constructor for the Account class. This constructor should receive two arguments, one for the account number and one for payment amount, and one assigned values for the balance. Make the three numbers different from the ones used in Step 3. Write the appropriate comments and save the program. Compile and correct any errors.
Step 6:
Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.
Step 7:
Create an additional overloaded constructor for the Account class. This constructor should receive three arguments for the account number, the payment amount, and the balance and no assigned values. Make the three numbers different from the ones used in Step 5. Write the appropriate comments and save the program. Compile and correct any errors.
Step 8:
Add any needed statements to the TestAccount class to ensure that the overloaded constructor works correctly. Make sure to create the output so that one blank line will print between the output created in Steps 4, 6, and 8. Write the appropriate comments and save the program. Compile and run the program.
An example of the output – not the blank line between sections of the output:
The account number is: 12345
The payment amount is: 150
The balance is: 3500
The account number is: 24569
The payment amount is: 250
The balance is: 4500
Additional notes:
Make sure that your comments include your name and the date created. Include comments to reflect each step above.
Be sure to compile and test the program before submission.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more