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 real-world 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: 10 points
Restaurant: 10 points
Retail: 5 points
Gas: 5 points
Online Shopping: 3 points
Beauty and Spa: 1 point
Sports: 1 point
Please explain in details and steps. Code in Java

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 Programming Questions!