Help with Java
Problem
Create an Account class (Account.java) that a bank might use to represent a customer’s bank account.
Specification
- Include a private variable of type int to represent the account balance.
- Provide a constructor that has a parameter for initial balance and uses it to initialize the account balance.
- Provide 3 member functions:
- credit – adds an amount passed as an argument to the current balance.
- debit – withdraws an amount passed as an argument from the current balance.
- getBalance – returns the balance amount.
- Create a program (
AccountTest.java) that creates two Account objects and validate the methods of the class Account. (Call the methods passing the appropriate values to make sure they produce the expected results.)
Admin
- Grading
- 0 points if your program does not compile.
- +5 for comments, indentation and placement of {} per Style Guide.
- +5 for each specification met.
- Submission: Attach your
Account.javaandAccountTest.javafiles and submit.
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


