CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Solve the task below using C++ programming language. Add extensively program comments.
Task Description
Implement a program in C++ to represent a Factory that sells its production to store suppliers. The factory has different divisions which produce different artifacts. Artifacts are sold for a certain price and can have a discount. The factory also offers Services to its clients – e.g. custom development.
For this first assignment, you need to develop the following classes:
1. Division
Data Slots:
· GUID (string) – e.g. ABCD-EFGH-1234
· Name (string) – e.g. Electronics
· PhoneNumber (string) – e.g. 0888 123456
· Description (long string)
· Parent (Division) – a parent division, can be NULL
Methods:
· Constructor(s)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run