Java Homework
In this assignment we will write two departments – one representing a bank account and the other being a department that operates the department
Bank account.
Question 1 – To lecture (50%)
You must write a department called Account that represents a basic bank account.
The class should contain a field that represents the account number, a field that represents the balance and a field representing the
The name of the account holder as described below. The actions allow you to withdraw and deposit money in your account and receive
Interest on account balance.
The interest rate should be a fixed number – 3.5%.
Class Properties (Attributes)
Account number (accountNum _, Pay)
Balance (balance, real)
Account owner name (name _, string)
The constructor of the class needs to have three parameters used to initialize the fields. this
His signature will be:
public Account (int accountNum, double balance, String name)

The methods that the class should contain are:
double deposit (double amount)
The method makes a deposit of money into the account in the amount amount it returns to the new balance.
For example, if the current balance is NIS 25 and we asked to deposit 100, then the new account balance is 125,
And this value is returned.
double pullraw (double amount, double fee)
The system withdraws money from the account in an amount amount and also deducts a commission on the withdrawal in the amount of fee
She returns the new balance.
For example, if the balance currently has NIS 30 and we asked to withdraw NIS 20 and the fee is NIS 2 then the balance
The new account is 30-20-2 = 8, and this value is returned.
double addInterest ()
The method updates the balance by adding the interest earned. She returns the new balance.
For example, if the balance currently has NIS 50, since the interest rate is fixed at 3.5%, then the new balance in the account
Is 51.75 = 0.035 * 50 + 50, and this value is returned.
double getBalance ()
Method returns the balance in the account.
String toString ()
The method returns as a description string in one line of account information.
Question 2 – to lecture (50%)
The same project was written by a new department called Driver
This class will only contain a .main function
In the main function, you must take three data from the user – account number (pay), balance
Account (actual) and account holder name (string) – must be done using output messages
(For example, please insert the account number
Create a new account named accountA with the parameters you have entered from the user.

Now write the user a message – Please insert the amount you want to withdraw and receive
The amount of money he wanted to attract. Perform the withdrawal from accountA account when commission
The draw is 5 and the user prints an output message with the current balance using the action
getBalance
Start the add interest on the account (addInterest) and write to the user
Further notice with the updated balance after receipt of interest.
Write to the user a message about how much you want to deposit and receive the amount from the user
(Real) that he wants to deposit in the account. Make the deposit in the accountA account with the action
deposit and print the new account balance to the user
It is important to emphasize that input operations (with the Scanner) and output (with System.out.println) are performed only
In the Driver department. The Account only handles account data and status
In terms of programming style, be sure to:
1. Document the parts of the program with clear comments.
2. Names of variables of significance.
3. Reading program and not cumbersome.
4. Right input (tab space at each block entry with curly braces).
submission
1. Submission of the MAMAN is done electronically only, through the assignment system.
2. Make sure that the names of the departments and methods are exactly as defined in the Maman
Lots of points!
3. The solution to Question 1 will be the .Account.java file
4. The solution to Question 2 will be the .driver.java file
5. Pack the two files into a single zip file and send it only.

All papers are written by ENL (US, UK, AUSTRALIA) writers with vast experience in the field. We perform a quality assessment on all orders before submitting them.

Do you have an urgent order?  We have more than enough writers who will ensure that your order is delivered on time. 

We provide plagiarism reports for all our custom written papers. All papers are written from scratch.

24/7 Customer Support

Contact us anytime, any day, via any means if you need any help. You can use the Live Chat, email, or our provided phone number anytime.

We will not disclose the nature of our services or any information you provide to a third party.

Assignment Help Services
Money-Back Guarantee

Get your money back if your paper is not delivered on time or if your instructions are not followed.

We Guarantee the Best Grades
Assignment Help Services