Question
States : The goal of this tp is to create an electronic directory of loyal customers for a grocery store. It is used by employees.
States :
The goal of this tp is to create an electronic directory of loyal customers for a grocery store. It is used by employees. This directory works on a graphical interface.
This electronic directory should enable the following actions to be carried out:
- Register a new person
- Consult the list of all the individuals present in the directory
- Consult the information of a given person
- Delete a person
- Show all people whose name begins with a given letter
- Display the list of products available in the store and their characteristics
- Add / Remove money from the customer's account according to authorizations (see below)
Details:
This grocery store offers two services to customers:
1. Have money available in your account: this constitutes an asset, that is to say that
it will be a way for the customer not to take out his wallet to pay, but only to state his identity (the use of this money is not the responsibility of this tp, you have nothing to do with regard to the 'use).
2. Save a list of favorite products. These products will be used in the grocery store to offer targeted discounts to customers. By adding products to their list, customers indicate their preferences at the grocery store.
Accounts :
- There are accounts for clients, employees or managers.
- They are defined by a first name, a last name, a date of birth. An email address is
automatically added to their account when creating the account, in the form L..e@magasin.ca
- You can only add money to a customer's account. You can also add a list of favorite products. These products must be chosen from a list of available products.
- On employee accounts you can add or withdraw money and choose their favorite products.
- Manager accounts work like employees' accounts, but in addition they can add and remove products from the list of available products
Available products:
All products remember the name of the manager who added them to the list of available products.
The store sells two types of products available:
- Foods: their characteristics are a name, a color and a weight
- Furniture: their characteristics are a type (table, chair, etc.), a price and a
maximum height (in cm).
Operation:
This program is used by employees, not customers. These are the employees who carry out operations at the request of customers. For example, they use the interface to record the addition of money to a customer's account (we imagine in these cases that the customer has given money to the employee who collects it and records it on the account).
The operations are distributed between several interfaces:
A first interface allows you to display information, do research ...
will be able in particular to view the list of customers, employees ... the details of their
account (last name, first name, funds available ...).
A second interface allows you to add customers / employees / managers, to modify
account information, or adding and withdrawing money. It must therefore make it possible to select the account concerned by this request (or to create it, then to carry out the operations.
A final interface is dedicated to the management of the list of available products: we select the director who decides on the modification of the list and then we record an addition or a <..d@outlook.com
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started