Вы находитесь на странице: 1из 2

Rules:

1) Do not need to use the database

2) Do not write html/css

3) Use only OOP concept

4) Use inheritance, abstract classes, polymorphism, singleton pattern

Description:

The factories keep records of the production and distribution of products at points of sale. In
production, each product is assigned a unique serial number. Sales outlets can be handed over
request for the delivery of the necessary products, indicating how much they need. There are
more factories and multiple outlets within the company, where sales outlets send requests to
the headquarters companies, and each factory can, if necessary, send products to any point of
sale.

Tasks:

1. Create a company

2. Create a 'Factory 1' factory within the company

3. Create a 'Store' store within the company

4. Create an employee at the factory, 'Worker 1', a debt: a worker in production

5. Create an employee at the factory, 'Worker 2', indebtedness: production supervisor. This one
the employee is the supervisor 'Worker 1'.

6. Create an employee at the factory, 'Worker 3' , Debt: Transport Supervisor

7. Create an employee at the point of sale, 'Worker 4' , debt: seller

8. Create 20 monitors in the factory "Factory", under the control of 'Worker 2'

9. Send a request from the 'Store' store for the delivery of 10 monitors and 50 keyboards

10. Transport 10 monitors and 30 keyboards from factory "Factory" to sales point 'Store',
controlled by 'Worker 3'

11. Create a Buyers 'Buyer 1'

12.' Buyer 1' buys a monitor from 'Store' at a price of 80 eur, pay in cash, from seller 'Worker 4'

-------------------------------------------------------------------------------------------------------------------
Extra task:

Add a log of actions in the system. Actions log in format [date] [time] [action] [extra information]

Example of a single log file line: [03/20/2016 11:30] Transport, products: 10 x keyboard, 15 x
mouse, from:

'Factory name' , in: 'Store name' , supervisor: 'Supervisor name'

Need to log in:

- Production of each product individually (serial number, product type, factory where it is

produced, date and time, supervisor name)

- Delivery requirements (requested place of sale, list of types with quantities)

- Transport of products (factory name, name of destination - point of sale, list of types with
quantities,

name of responsible person)

- Every sale (list of serial numbers, point of sale, name of the employee who sold,

payment method (cash / card), customer name (if paid by card))

Вам также может понравиться