Question: All code must be created in Java Eclipse 1. Write a class that represent a bank account with a name, account number , and a
All code must be created in Java Eclipse
1.
Write a class that represent a bank account with a name, account number , and a bank balance, load five accounts into an array, and figure out how to find and print the account number and balance for the array member with the highest balance.
2. Rewrite the program in question1 with an ArrayList instead of an array.
3. Create a base class called person that has a name field and a haircolor field. Then create two classes that extend the base class called Boy and Girl. For these subclasses, add a DNA field that contains XX for Girls and XY for Boys. these values should be set in the constructors for the respective subclasses.
Finally create an Array called family that is a mix of boys and girls, and print the names and DNAs for the members in a loop.
4.
Take question 4 and change the array to a stack, Push on three members then pop them and print the names and haircolors.
THIS IS ALL TO BE DONE IN JAVA, will NOT WORK IN C, I am using Java Eclipse!!!!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
