



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




The Royal and Loyal (R&L) company handles loyalty programs for companies that offer their customers various kinds of bonuses (E.g., bonus points, air miles, reduced rates, a larger car for the rate of a smaller one in a Car Hire company, extra or better service on an Airline etc.). Anything a company is willing to offer can be a service rendered in a loyalty program. The central class in the UML model, below, is LoyaltyProgram. A system that administers a single loyalty program will contain only one object of this class. A company that offers its customers a membership in a loyalty program is called a ProgramPartner. More than one company can enter into the same program. In such a case, customers who enter the loyalty program can profit from services rendered by any of the participating companies. Every customer of every program partner can enter the loyalty program by filling in a form and obtaining a membership card. The objects of class Customer represent people who have entered the program. The membership card, represented by the class CustomerCard, is issued to one person. Card use is not checked so the card could be used as a family or business card. Most loyalty programs allow customers to save bonus points. Each individual program partner decides when and how many bonus points are allotted for a certain purchase. Saved bonus points can be used to ābuyā specific services from one of the program partners. To account for the bonus points that are saved by the customer, every membership can be associated with a LoyaltyAccount. Various transactions on this account are possible. For example, the loyalty program āSilver and Goldā has 4 program partners: a supermarket, a chain of petrol stations, a car rental service and an airline: ļ· At the supermarket a customer earns 5 bonus points for Ā£1 spent above Ā£10: bonus points can be redeemed for items buyable only with bonus points ļ· The petrol stations offer a discount of 5% on every bill ļ· The Car Hire company offers 20 bonus points for every Ā£50 spent ļ· Customers can save bonus points for free flights with the Airline. For every normal flight the airline offers 1 bonus point for each 15 miles of flight. In this scenario, there are two types of transactions. First, there are transactions in which the customer obtains bonus points. These are Earning transactions. Second, there are transactions where the customer consumes bonus points. These are Burning transactions. The petrol stations offer discounts to members, but neither offer nor accept bonus points and therefore do not render transactions on the LoyaltyAccount.
Customers in the Silver and Gold program who make extensive use of membership are rewarded by a higher level of service: the gold card. They are also offered additional services: ļ· Every 2 months the supermarket offers āGold Cardā customers a completely free item worth about Ā£10 for which not even bonus points are needed ļ· The petrol stations offer a 10% discount on every purchase ļ· The Car Rental company offers a larger car for the same price ļ· The Airline offers a business class trip for the price of an economy class ticket Customers must meet at least one of the following conditions to get a Gold Card: ļ· Three sequential years of membership with an average annual spend of Ā£ ļ· One year of membership with a spend of Ā£ To administer different levels of service, the class ServiceLevel is introduced in the model. A service level is defined by the loyalty program and used for each membership. R&L advertises the program and its conditions. It manages all customer data and transactions on the loyalty accounts. For this purpose, program partners must inform R&L of all transactions on loyalty program membership cards. Each year, R&L sends new membership cards to all customers. When appropriate R&L upgrades a membership to a Gold Card. In this case, R&L sends out the new card with a list of additional services and invalidates the old membership card. A customer can withdraw from the program by submitting a withdrawal form to R&L. Any remaining bonus points are cancelled and the card invalidated. R&L can invalidate a membership when the customer has not used the membership card for a certain period. For the Silver and Gold program this period is one year.
collect(points) -> sum()