Java Project

profilefacelessvoidmc
javaprogram.docx

This program is based on a charity event signing up donors.

• A donor has a Tax ID (unique due to federal and state taxation rules), name, and a pledge amount (Donor.java is given to you).

• A charity fund has a code (unique only within the organization), an unabbreviated description and a list of donors. (Charity.class is given to you in Phase 1; see API description below. You are to implement Charity.java in Phase 2.)

• The main method to be implemented in Phase 1 is contained in the CharityTester class, and prompts he user to enter:

o A (to add a donor): Adding a donor requires prompting the user for the donors’s Tax ID (similar to the SSN format), name, and major, and then calling the addDonor method in the Charity class.

o D (to delete a donor): Deleting a donor (due to backing out) requires prompting the user for the donor’s unique Tax ID and then calling the purgeDonor method in the Charity class.

o Q (to quit the program). Whenever a donor is successfully added or deleted, the main method should display the current list of donors with their pledges recorded for the charity by calling the display method, which also summarizes the current number of donors signed up (see numberPledged method)

File Summary