Rewards App Text-Based Starter Code
Everything in a Sandwich Rewards App Text-Based Starter Code
Set up a project in the IDE of your choice and add the following classes to your project:
- RewardsApps: This class can be used to create a RewardsApps object, which includes a list of subscribers and available offers.
- RewardsAppStarter: This class contains your main method and will run the app.
- Reward: This class represents a reward that might be offered to a customer. Reward objects have a name, discount amount, and an expiration date. Once a reward is created it cannot be chnaged.
- Address: This class represents a mailing address. Address objects have street 1, street 2, city, state, and zip code.
- CustomerContactInfo: This class represents a customer's first name, last name, email address, and mailing address
- Customer: This class represents a customer in the app and has the CustomerContactInfo, customer id number, and date joined. This class has a static variable that keeps track of the customer count in order to generate the customer id number.