The purpose of this assignment is to practice building a GUI based program in Java and to use HashMa

The purpose of this assignment is to practice building a GUI based program in Java and to use HashMa

This preview shows 1 out of 2 pages.

The purpose of this assignment is to practice building a GUI based program in Java and to use  HashMaps. This assignment continues the scenario from assignment 1.     Standard Level   Your program will provide a swing based GUI that allows a user to: Register a new card (anon, basic or premium) View the list of cards Make a purchase Show a summary   The program user will be able to issue new customers with a card. When a customer registers a new card they will need to specify the type of card via radio buttons or a drop-down-box and  they will be issued with a card ID.   The program user will be able to view the list of all cards in the order they were created or in  alpha-numeric order. A TextArea will be used to show this list.   The program user will be able to find then print into the TextArea the details of a single card (it  points, and other attributes as appropriate) when the user enters their card ID into a TextField  then click a suitably named button. In your program use a HashMap to locate a card given a  card ID.   The program user will be able to delete a card. When a card is deleted any purchases made by  that user are converted to cash purchases i.e. are changed to have a null card ID. Also use a  HashMap here to locate a card given a card ID.
Image of page 1

Subscribe to view the full document.

Image of page 2
You've reached the end of this preview.
  • Fall '08
  • Staff
  • program user

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern