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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!