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.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
Quality Essay Help has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.
Essays
At Quality Essay Help, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.
Admissions
Admission and Business Papers
Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.
Editing
Editing and Proofreading
Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.
Coursework
Technical papers
We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.