Question: Please explain in details and steps. Code in Java and create a flowchart. Create a UML object model of a GiftCard and Barrel that can
Please explain in details and steps.
Code in Java and create a flowchart.
Create a UML object model of a GiftCard and Barrel that can be used in the Gift Card Game. Since both objects exist in the real world, use this realworld model to create the attributes and behaviors needed for a GiftCard and Barrel.
a The GiftCard:
i A GiftCard has three attributes: a category with assigned points a company, and a monetary value.
ii The GiftCard object will need behaviors to get these attribute values.
b The Barrel:
i The Barrel will have an array of GiftCards as its attribute.
ii There must be a way to point to the top of the Barrel for the next GiftCard.
iii. The Barrel will need to create all the GiftCards, shuffle the GiftCards, and assign the next GiftCard from the Barrel.
iv The gift cards will be read from a data file called: GiftCardData.txt This is a CSV file that will be used to create all the gift cards for the project.
Entertainment: points
Restaurant: points
Retail: points
Gas: points
Online Shopping: points
Beauty and Spa: point
Sports: point
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
