TestConsolidation

I'm trying to do some consolidation but I'm not sure on the specific rules of consolidation so I'm having A LOT of difficulty on it. Here's what I'm trying to do.
Write a program that prompts for and reads in three names and creates an account with an initial balance of $100 for each. Print the three accounts, then close the first account and try to consolidate the second and third into a new account. Now print the accounts again, including the consolidated one if it was created.
I'm having difficulty with closing the first account then Consolidating :(. Here's my code so far with no errors so far.

Again, that depends on what you mean by 'closing an account'. Typically you'd close an account by removing all the money from it, i.e. withdrawing all money from your bank account, then just deleting it or somehow marking it as closed. But we are just programmers, if you need help with implementation or errors that's fine, but I doubt you'll find much help on how to interpret your project's requirements. Is this for a class? If so speak to the professor.

Again, that depends on what you mean by 'closing an account'. Typically you'd close an account by removing all the money from it, i.e. withdrawing all money from your bank account, then just deleting it or somehow marking it as closed. But we are just programmers, if you need help with implementation or errors that's fine, but I doubt you'll find much help on how to interpret your project's requirements. Is this for a class? If so speak to the professor.

I'm trying to do some form of account.close();. No matter where I put it in my program it won't work :(.