1pub const EX_0001: &str = r#"
19 ┌───┬────────────┬───────╥──────┐
20 │ U │ Customer │ Order ║ │
21 ╞═══╪════════════╪═══════╬══════╡
22 │ 1 │ "Business" │ <10 ║ 0.10 │
23 ├───┼────────────┼───────╫──────┤
24 │ 2 │ "Business" │ >=10 ║ 0.15 │
25 ├───┼────────────┼───────╫──────┤
26 │ 3 │ "Private" │ - ║ 0.05 │
27 └───┴────────────┴───────╨──────┘
28% { Customer:"Business", Order: -3.23 }, 0.10
29% { Customer:"Business", Order: 9.00 }, 0.10
30% { Customer:"Business", Order: 10.00 }, 0.15
31% { Customer:"Business", Order: 120.00 }, 0.15
32% { Customer:"Private", Order: -2.34 }, 0.05
33% { Customer:"Private", Order: 10.00 }, 0.05
34% { Customer:"Private", Order: 101.00 }, 0.05
35% { Customer:"Government", Order: 10.00 }, null
36"#;
37
38pub const EX_0002: &str = r#"
54 ┌───┬──────────┬───────╥──────╥─────────────┐
55 │ U │ Customer │ Order ║ ║ Description │
56 ╞═══╪══════════╪═══════╬══════╬═════════════╡
57 │ 1 │"Business"│ <10 ║ 0.10 ║ Small order │
58 ├───┼──────────┼───────╫──────╫─────────────┤
59 │ 2 │"Business"│ >=10 ║ 0.15 ║ Large order │
60 ├───┼──────────┼───────╫──────╫─────────────┤
61 │ 3 │"Private" │ - ║ 0.05 ║ All orders │
62 └───┴──────────┴───────╨──────╨─────────────┘
63% { Customer:"Business", Order: -3.23 }, 0.10
64% { Customer:"Business", Order: 9.00 }, 0.10
65% { Customer:"Business", Order: 10.00 }, 0.15
66% { Customer:"Business", Order: 120.00 }, 0.15
67% { Customer:"Private", Order: -2.34 }, 0.05
68% { Customer:"Private", Order: 10.00 }, 0.05
69% { Customer:"Private", Order: 101.00 }, 0.05
70% { Customer:"Government", Order: 10.00 }, null
71"#;
72
73pub const EX_0003: &str = r#"
89 ┌───┬──────────┬───────╥──────────┬──────────┐
90 │ U │ Customer │ Order ║ Discount │ Priority │
91 ╞═══╪══════════╪═══════╬══════════╪══════════╡
92 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" │
93 ├───┼──────────┼───────╫──────────┼──────────┤
94 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" │
95 ├───┼──────────┼───────╫──────────┼──────────┤
96 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
97 └───┴──────────┴───────╨──────────┴──────────┘
98% { Customer:"Business", Order: -3.23 }, { Discount: 0.10, Priority: "Normal" }
99% { Customer:"Business", Order: 9.00 }, { Discount: 0.10, Priority: "Normal" }
100% { Customer:"Business", Order: 10.00 }, { Discount: 0.15, Priority: "High" }
101% { Customer:"Business", Order: 120.00 }, { Discount: 0.15, Priority: "High" }
102% { Customer:"Private", Order: -2.34 }, { Discount: 0.05, Priority: "Low" }
103% { Customer:"Private", Order: 10.00 }, { Discount: 0.05, Priority: "Low" }
104% { Customer:"Private", Order: 101.00 }, { Discount: 0.05, Priority: "Low" }
105% { Customer:"Government", Order: 10.00 }, null
106"#;
107
108pub const EX_0004: &str = r#"
119 ┌───┬──────────┬───────╥──────────┬──────────╥─────────────┐
120 │ U │ Customer │ Order ║ Discount │ Priority ║ Description │
121 ╞═══╪══════════╪═══════╬══════════╪══════════╬═════════════╡
122 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" ║ Small order │
123 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┤
124 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" ║ Large order │
125 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┤
126 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │
127 └───┴──────────┴───────╨──────────┴──────────╨─────────────┘
128% { Customer:"Business", Order: -3.23 }, { Discount: 0.10, Priority: "Normal" }
129% { Customer:"Business", Order: 9.00 }, { Discount: 0.10, Priority: "Normal" }
130% { Customer:"Business", Order: 10.00 }, { Discount: 0.15, Priority: "High" }
131% { Customer:"Business", Order: 120.00 }, { Discount: 0.15, Priority: "High" }
132% { Customer:"Private", Order: -2.34 }, { Discount: 0.05, Priority: "Low" }
133% { Customer:"Private", Order: 10.00 }, { Discount: 0.05, Priority: "Low" }
134% { Customer:"Private", Order: 101.00 }, { Discount: 0.05, Priority: "Low" }
135% { Customer:"Government", Order: 10.00 }, null
136"#;
137
138pub const EX_0005: &str = r#"
149 ┌───┬───────────┬───────╥──────┐
150 │ U │ Customer │ Order ║ │
151 │ ├───────────┼───────╫──────┤
152 │ │"Business",│ <10, ║ 0.05,│
153 │ │"Private" │ >=10 ║ 0.10,│
154 │ │ │ ║ 0.15 │
155 ╞═══╪═══════════╪═══════╬══════╡
156 │ 1 │"Business" │ <10 ║ 0.10 │
157 ├───┼───────────┼───────╫──────┤
158 │ 2 │"Business" │ >=10 ║ 0.15 │
159 ├───┼───────────┼───────╫──────┤
160 │ 3 │"Private" │ - ║ 0.05 │
161 └───┴───────────┴───────╨──────┘
162% { Customer:"Business", Order: -3.23 }, 0.10
163% { Customer:"Business", Order: 9.00 }, 0.10
164% { Customer:"Business", Order: 10.00 }, 0.15
165% { Customer:"Business", Order: 120.00 }, 0.15
166% { Customer:"Private", Order: -2.34 }, 0.05
167% { Customer:"Private", Order: 10.00 }, 0.05
168% { Customer:"Private", Order: 101.00 }, 0.05
169% { Customer:"Government", Order: 10.00 }, null
170"#;
171
172pub const EX_0006: &str = r#"
183 ┌───┬───────────┬───────╥──────╥─────────────┐
184 │ U │ Customer │ Order ║ ║ Description │
185 │ ├───────────┼───────╫──────╫─────────────┤
186 │ │"Business",│ <10, ║ 0.10,║ │
187 │ │"Private" │ >=10 ║ 0.15,║ │
188 │ │ │ ║ 0.05 ║ │
189 ╞═══╪═══════════╪═══════╬══════╬═════════════╡
190 │ 1 │"Business" │ <10 ║ 0.10 ║ Small │
191 ├───┼───────────┼───────╫──────╫─────────────┤
192 │ 2 │"Business" │ >=10 ║ 0.15 ║ Large │
193 ├───┼───────────┼───────╫──────╫─────────────┤
194 │ 3 │"Private" │ - ║ 0.05 ║ All │
195 └───┴───────────┴───────╨──────╨─────────────┘
196% { Customer:"Business", Order: -3.23 }, 0.10
197% { Customer:"Business", Order: 9.00 }, 0.10
198% { Customer:"Business", Order: 10.00 }, 0.15
199% { Customer:"Business", Order: 120.00 }, 0.15
200% { Customer:"Private", Order: -2.34 }, 0.05
201% { Customer:"Private", Order: 10.00 }, 0.05
202% { Customer:"Private", Order: 101.00 }, 0.05
203% { Customer:"Government", Order: 10.00 }, null
204"#;
205
206pub const EX_0007: &str = r#"
217 ┌───┬───────────┬───────╥──────────┬──────────┐
218 │ U │ Customer │ Order ║ Discount │ Priority │
219 │ ├───────────┼───────╫──────────┼──────────┤
220 │ │"Business",│ <10, ║ 0.10, │"Normal", │
221 │ │"Private" │ >=10 ║ 0.15, │ "High", │
222 │ │ │ ║ 0.05 │ "Low" │
223 ╞═══╪═══════════╪═══════╬══════════╪══════════╡
224 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" │
225 ├───┼───────────┼───────╫──────────┼──────────┤
226 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" │
227 ├───┼───────────┼───────╫──────────┼──────────┤
228 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
229 └───┴───────────┴───────╨──────────┴──────────┘
230% { Customer:"Business", Order: -3.23 }, { Discount: 0.10, Priority: "Normal" }
231% { Customer:"Business", Order: 9.00 }, { Discount: 0.10, Priority: "Normal" }
232% { Customer:"Business", Order: 10.00 }, { Discount: 0.15, Priority: "High" }
233% { Customer:"Business", Order: 120.00 }, { Discount: 0.15, Priority: "High" }
234% { Customer:"Private", Order: -2.34 }, { Discount: 0.05, Priority: "Low" }
235% { Customer:"Private", Order: 10.00 }, { Discount: 0.05, Priority: "Low" }
236% { Customer:"Private", Order: 101.00 }, { Discount: 0.05, Priority: "Low" }
237% { Customer:"Government", Order: 10.00 }, null
238"#;
239
240pub const EX_0008: &str = r#"
251 ┌───┬────────────┬───────╥──────────┬───────────╥─────────────┬─────────────┐
252 │ U │ Customer │ Order ║ Discount │ Priority ║ Description │ Reference │
253 │ ├────────────┼───────╫──────────┼───────────╫─────────────┼─────────────┤
254 │ │ "Business",│ <10, ║ 0.10, │ "Normal", ║ │ │
255 │ │ "Private" │ >=10 ║ 0.15, │ "High", ║ │ │
256 │ │ │ ║ 0.05 │ "Low" ║ │ │
257 ╞═══╪════════════╪═══════╬══════════╪═══════════╬═════════════╪═════════════╡
258 │ 1 │ "Business" │ <10 ║ 0.10 │ "Normal" ║ Small │ Ref 1 │
259 ├───┼────────────┼───────╫──────────┼───────────╫─────────────┼─────────────┤
260 │ 2 │ "Business" │ >=10 ║ 0.15 │ "High" ║ Large │ Ref 2 │
261 ├───┼────────────┼───────╫──────────┼───────────╫─────────────┼─────────────┤
262 │ 3 │ "Private" │ - ║ 0.05 │ "Low" ║ All │ Ref 3 │
263 └───┴────────────┴───────╨──────────┴───────────╨─────────────┴─────────────┘
264% { Customer: "Business", Order: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
265% { Customer: "Business", Order: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
266% { Customer: "Business", Order: 10.00 }, { "Discount": 0.15, "Priority": "High" }
267% { Customer: "Business", Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
268% { Customer: "Private", Order: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
269% { Customer: "Private", Order: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
270% { Customer: "Private", Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
271% { Customer: "Government", Order: 300.01 }, null
272"#;
273
274pub const EX_0009: &str = r#"
285 ┌───┬──────────┬───────╥──────────┐
286 │ U │ Customer │ Order ║ Discount │
287 ╞═══╪══════════╪═══════╬══════════╡
288 │ 1 │"Business"│ <10 ║ 0.10 │
289 ├───┼──────────┼───────╫──────────┤
290 │ 2 │"Business"│ >=10 ║ 0.15 │
291 ├───┼──────────┼───────╫──────────┤
292 │ 3 │"Private" │ - ║ 0.05 │
293 └───┴──────────┴───────╨──────────┘
294% { Customer:"Business", Order: -3.23 }, 0.10
295% { Customer:"Business", Order: 9.00 }, 0.10
296% { Customer:"Business", Order: 10.00 }, 0.15
297% { Customer:"Business", Order: 120.00 }, 0.15
298% { Customer:"Private", Order: -2.34 }, 0.05
299% { Customer:"Private", Order: 10.00 }, 0.05
300% { Customer:"Private", Order: 101.00 }, 0.05
301% { Customer:"Government", Order: 10.00 }, null
302"#;
303
304pub const EX_0010: &str = r#"
315 ┌───┬──────────┬───────╥──────────╥─────────────┐
316 │ U │ Customer │ Order ║ Discount ║ Description │
317 ╞═══╪══════════╪═══════╬══════════╬═════════════╡
318 │ 1 │"Business"│ <10 ║ 0.10 ║ Small │
319 ├───┼──────────┼───────╫──────────╫─────────────┤
320 │ 2 │"Business"│ >=10 ║ 0.15 ║ Large │
321 ├───┼──────────┼───────╫──────────╫─────────────┤
322 │ 3 │"Private" │ - ║ 0.05 ║ All │
323 └───┴──────────┴───────╨──────────╨─────────────┘
324% { Customer:"Business", Order: -3.23 }, 0.10
325% { Customer:"Business", Order: 9.00 }, 0.10
326% { Customer:"Business", Order: 10.00 }, 0.15
327% { Customer:"Business", Order: 120.00 }, 0.15
328% { Customer:"Private", Order: -2.34 }, 0.05
329% { Customer:"Private", Order: 10.00 }, 0.05
330% { Customer:"Private", Order: 101.00 }, 0.05
331% { Customer:"Government", Order: 10.00 }, null
332"#;
333
334pub const EX_0011: &str = r#"
345 ┌───┬──────────┬───────╥─────────────────────┐
346 │ U │ Customer │ Order ║ Order options │
347 │ │ type │ size ╟──────────┬──────────┤
348 │ │ │ ║ Discount │ Priority │
349 ╞═══╪══════════╪═══════╬══════════╪══════════╡
350 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" │
351 ├───┼──────────┼───────╫──────────┼──────────┤
352 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" │
353 ├───┼──────────┼───────╫──────────┼──────────┤
354 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
355 └───┴──────────┴───────╨──────────┴──────────┘
356% { Customer type: "Business", Order size: -3.23 }, { Discount: 0.10, Priority: "Normal" }
357% { Customer type: "Business", Order size: 9.00 }, { Discount: 0.10, Priority: "Normal" }
358% { Customer type: "Business", Order size: 10.00 }, { Discount: 0.15, Priority: "High" }
359% { Customer type: "Business", Order size: 120.00 }, { Discount: 0.15, Priority: "High" }
360% { Customer type: "Private", Order size: -2.34 }, { Discount: 0.05, Priority: "Low" }
361% { Customer type: "Private", Order size: 10.00 }, { Discount: 0.05, Priority: "Low" }
362% { Customer type: "Private", Order size: 101.00 }, { Discount: 0.05, Priority: "Low" }
363% { Customer type: "Government", Order size: 300.01 }, null
364"#;
365
366pub const EX_0012: &str = r#"
377 ┌───┬──────────┬───────╥─────────────────────╥─────────────┬───────────┐
378 │ U │ Customer │ Order ║ Order options ║ │ │
379 │ │ │ ╟──────────┬──────────╢ Description │ Reference │
380 │ │ type │ size ║ Discount │ Priority ║ │ │
381 ╞═══╪══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
382 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" ║ Small order │ Ref 1 │
383 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
384 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" ║ Large order │ Ref 2 │
385 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
386 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │ Ref 3 │
387 └───┴──────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
388% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
389% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
390% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
391% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
392% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
393% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
394% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
395% { Customer type: "Government", Order size: 300.01 }, null
396"#;
397
398pub const EX_0013: &str = r#"
409 ┌───┬───────────┬───────╥──────────┐
410 │ U │ Customer │ Order ║ Discount │
411 │ ├───────────┼───────╫──────────┤
412 │ │"Business",│ <10, ║ 0.10, │
413 │ │"Private" │ >=10 ║ 0.15, │
414 │ │ │ ║ 0.05 │
415 ╞═══╪═══════════╪═══════╬══════════╡
416 │ 1 │"Business" │ <10 ║ 0.10 │
417 ├───┼───────────┼───────╫──────────┤
418 │ 2 │"Business" │ >=10 ║ 0.15 │
419 ├───┼───────────┼───────╫──────────┤
420 │ 3 │"Private" │ - ║ 0.05 │
421 └───┴───────────┴───────╨──────────┘
422% { Customer:"Business", Order: -3.23 }, 0.10
423% { Customer:"Business", Order: 9.00 }, 0.10
424% { Customer:"Business", Order: 10.00 }, 0.15
425% { Customer:"Business", Order: 120.00 }, 0.15
426% { Customer:"Private", Order: -2.34 }, 0.05
427% { Customer:"Private", Order: 10.00 }, 0.05
428% { Customer:"Private", Order: 101.00 }, 0.05
429% { Customer:"Government", Order: 10.00 }, null
430"#;
431
432pub const EX_0014: &str = r#"
443 ┌───┬───────────┬───────╥──────────╥─────────────┬───────────┐
444 │ U │ Customer │ Order ║ Discount ║ Description │ Reference │
445 │ ├───────────┼───────╫──────────╫─────────────┼───────────┤
446 │ │"Business",│ <10, ║ 0.10, ║ │ │
447 │ │"Private" │ >=10 ║ 0.15, ║ │ │
448 │ │ │ ║ 0.05 ║ │ │
449 ╞═══╪═══════════╪═══════╬══════════╬═════════════╪═══════════╡
450 │ 1 │"Business" │ <10 ║ 0.10 ║ Small order │ Ref 1 │
451 ├───┼───────────┼───────╫──────────╫─────────────┼───────────┤
452 │ 2 │"Business" │ >=10 ║ 0.15 ║ Large order │ Ref 2 │
453 ├───┼───────────┼───────╫──────────╫─────────────┼───────────┤
454 │ 3 │"Private" │ - ║ 0.05 ║ All orders │ Ref 3 │
455 └───┴───────────┴───────╨──────────╨─────────────┴───────────┘
456% { Customer:"Business", Order: -3.23 }, 0.10
457% { Customer:"Business", Order: 9.00 }, 0.10
458% { Customer:"Business", Order: 10.00 }, 0.15
459% { Customer:"Business", Order: 120.00 }, 0.15
460% { Customer:"Private", Order: -2.34 }, 0.05
461% { Customer:"Private", Order: 10.00 }, 0.05
462% { Customer:"Private", Order: 101.00 }, 0.05
463% { Customer:"Government", Order: 10.00 }, null
464"#;
465
466pub const EX_0015: &str = r#"
477 ┌───┬───────────┬───────╥─────────────────────┐
478 │ U │ │ ║ Order options │
479 │ │ Customer │ Order ╟──────────┬──────────┤
480 │ │ type │ size ║ Discount │ Priority │
481 │ ├───────────┼───────╫──────────┼──────────┤
482 │ │"Business",│ <10, ║ 0.10, │"Normal", │
483 │ │"Private" │ >=10 ║ 0.15, │ "High", │
484 │ │ │ ║ 0.05 │ "Low" │
485 ╞═══╪═══════════╪═══════╬══════════╪══════════╡
486 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" │
487 ├───┼───────────┼───────╫──────────┼──────────┤
488 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" │
489 ├───┼───────────┼───────╫──────────┼──────────┤
490 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
491 └───┴───────────┴───────╨──────────┴──────────┘
492% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
493% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
494% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
495% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
496% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
497% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
498% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
499% { Customer type: "Government", Order size: 300.01 }, null
500"#;
501
502pub const EX_0016: &str = r#"
513 ┌───┬───────────┬───────╥─────────────────────╥─────────────┬───────────┐
514 │ U │ │ ║ Order options ║ │ │
515 │ │ Customer │ Order ╟──────────┬──────────╢ Description │ Reference │
516 │ │ type │ size ║ Discount │ Priority ║ │ │
517 │ ├───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
518 │ │"Business",│ <10, ║ 0.10, │"Normal", ║ │ │
519 │ │"Private" │ >=10 ║ 0.15, │ "High", ║ │ │
520 │ │ │ ║ 0.05 │ "Low" ║ │ │
521 ╞═══╪═══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
522 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" ║ Small order │ Ref 1 │
523 ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
524 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" ║ Large order │ Ref 2 │
525 ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
526 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │ Ref 3 │
527 └───┴───────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
528% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
529% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
530% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
531% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
532% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
533% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
534% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
535% { Customer type: "Government", Order size: 300.01 }, null
536"#;
537
538pub const EX_0017: &str = r#"
549 ┌─────────────────────────────┐
550 │ Discount │
551 ├───┬──────────┬───────╥──────┤
552 │ U │ Customer │ Order ║ │
553 ╞═══╪══════════╪═══════╬══════╡
554 │ 1 │"Business"│ <10 ║ 0.10 │
555 ├───┼──────────┼───────╫──────┤
556 │ 2 │"Business"│ >=10 ║ 0.15 │
557 ├───┼──────────┼───────╫──────┤
558 │ 3 │"Private" │ - ║ 0.05 │
559 └───┴──────────┴───────╨──────┘
560% { Customer:"Business", Order: -3.23 }, 0.10
561% { Customer:"Business", Order: 9.00 }, 0.10
562% { Customer:"Business", Order: 10.00 }, 0.15
563% { Customer:"Business", Order: 120.00 }, 0.15
564% { Customer:"Private", Order: -2.34 }, 0.05
565% { Customer:"Private", Order: 10.00 }, 0.05
566% { Customer:"Private", Order: 101.00 }, 0.05
567% { Customer:"Government", Order: 10.00 }, null
568"#;
569
570pub const EX_0018: &str = r#"
581 ┌──────────────┐
582 │ Discount │
583 ├───┬──────────┼───────╥──────╥─────────────┐
584 │ U │ Customer │ Order ║ ║ Description │
585 ╞═══╪══════════╪═══════╬══════╬═════════════╡
586 │ 1 │"Business"│ <10 ║ 0.10 ║ Small order │
587 ├───┼──────────┼───────╫──────╫─────────────┤
588 │ 2 │"Business"│ >=10 ║ 0.15 ║ Large order │
589 ├───┼──────────┼───────╫──────╫─────────────┤
590 │ 3 │"Private" │ - ║ 0.05 ║ All orders │
591 └───┴──────────┴───────╨──────╨─────────────┘
592% { Customer:"Business", Order: -3.23 }, 0.10
593% { Customer:"Business", Order: 9.00 }, 0.10
594% { Customer:"Business", Order: 10.00 }, 0.15
595% { Customer:"Business", Order: 120.00 }, 0.15
596% { Customer:"Private", Order: -2.34 }, 0.05
597% { Customer:"Private", Order: 10.00 }, 0.05
598% { Customer:"Private", Order: 101.00 }, 0.05
599% { Customer:"Government", Order: 10.00 }, null
600"#;
601
602pub const EX_0019: &str = r#"
613 ┌───────────────────────┐
614 │ Order │
615 │ options │
616 ├───┬──────────┬───────╥┴─────────┬──────────┐
617 │ U │ Customer │ Order ║ Discount │ Priority │
618 ╞═══╪══════════╪═══════╬══════════╪══════════╡
619 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" │
620 ├───┼──────────┼───────╫──────────┼──────────┤
621 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" │
622 ├───┼──────────┼───────╫──────────┼──────────┤
623 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
624 └───┴──────────┴───────╨──────────┴──────────┘
625% { Customer: "Business", Order: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
626% { Customer: "Business", Order: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
627% { Customer: "Business", Order: 10.00 }, { "Discount": 0.15, "Priority": "High" }
628% { Customer: "Business", Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
629% { Customer: "Private", Order: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
630% { Customer: "Private", Order: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
631% { Customer: "Private", Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
632% { Customer: "Government", Order: 300.01 }, null
633"#;
634
635pub const EX_0020: &str = r#"
646 ┌───────────────────────┐
647 │ Order │
648 │ options │
649 ├───┬──────────┬───────╥┴─────────┬──────────╥─────────────┬───────────┐
650 │ U │ Customer │ Order ║ Discount │ Priority ║ Description │ Reference │
651 ╞═══╪══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
652 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" ║ Small order │ Ref 1 │
653 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
654 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" ║ Large order │ Ref 2 │
655 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
656 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │ Ref 3 │
657 └───┴──────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
658% { Customer: "Business", Order: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
659% { Customer: "Business", Order: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
660% { Customer: "Business", Order: 10.00 }, { "Discount": 0.15, "Priority": "High" }
661% { Customer: "Business", Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
662% { Customer: "Private", Order: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
663% { Customer: "Private", Order: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
664% { Customer: "Private", Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
665% { Customer: "Government", Order: 300.01 }, null
666"#;
667
668pub const EX_0021: &str = r#"
679 ┌───────────────┐
680 │ Discount │
681 ├───┬───────────┼───────╥──────┐
682 │ U │ Customer │ Order ║ │
683 │ ├───────────┼───────╫──────┤
684 │ │"Business",│ <10, ║ 0.10,│
685 │ │"Private" │ >=10 ║ 0.15,│
686 │ │ │ ║ 0.05 │
687 ╞═══╪═══════════╪═══════╬══════╡
688 │ 1 │"Business" │ <10 ║ 0.10 │
689 ├───┼───────────┼───────╫──────┤
690 │ 2 │"Business" │ >=10 ║ 0.15 │
691 ├───┼───────────┼───────╫──────┤
692 │ 3 │"Private" │ - ║ 0.05 │
693 └───┴───────────┴───────╨──────┘
694% { Customer:"Business", Order: -3.23 }, 0.10
695% { Customer:"Business", Order: 9.00 }, 0.10
696% { Customer:"Business", Order: 10.00 }, 0.15
697% { Customer:"Business", Order: 120.00 }, 0.15
698% { Customer:"Private", Order: -2.34 }, 0.05
699% { Customer:"Private", Order: 10.00 }, 0.05
700% { Customer:"Private", Order: 101.00 }, 0.05
701% { Customer:"Government", Order: 10.00 }, null
702"#;
703
704pub const EX_0022: &str = r#"
715 ┌───────────────┐
716 │ Discount │
717 ├───┬───────────┼───────╥──────╥─────────────┐
718 │ U │ Customer │ Order ║ ║ Description │
719 │ ├───────────┼───────╫──────╫─────────────┤
720 │ │"Business",│ <10, ║ 0.10,║ │
721 │ │"Private" │ >=10 ║ 0.15,║ │
722 │ │ │ ║ 0.05 ║ │
723 ╞═══╪═══════════╪═══════╬══════╬═════════════╡
724 │ 1 │"Business" │ <10 ║ 0.10 ║ Small order │
725 ├───┼───────────┼───────╫──────╫─────────────┤
726 │ 2 │"Business" │ >=10 ║ 0.15 ║ Large order │
727 ├───┼───────────┼───────╫──────╫─────────────┤
728 │ 3 │"Private" │ - ║ 0.05 ║ All orders │
729 └───┴───────────┴───────╨──────╨─────────────┘
730% { Customer:"Business", Order: -3.23 }, 0.10
731% { Customer:"Business", Order: 9.00 }, 0.10
732% { Customer:"Business", Order: 10.00 }, 0.15
733% { Customer:"Business", Order: 120.00 }, 0.15
734% { Customer:"Private", Order: -2.34 }, 0.05
735% { Customer:"Private", Order: 10.00 }, 0.05
736% { Customer:"Private", Order: 101.00 }, 0.05
737% { Customer:"Government", Order: 10.00 }, null
738"#;
739
740pub const EX_0023: &str = r#"
751 ┌─────────────────────────────────────────────┐
752 │ Order properties │
753 ├───┬───────────┬───────╥──────────┬──────────┤
754 │ U │ Customer │ Order ║ Discount │ Priority │
755 │ ├───────────┼───────╫──────────┼──────────┤
756 │ │"Business",│ <10, ║ 0.10, │"Normal", │
757 │ │"Private" │ >=10 ║ 0.15, │ "High", │
758 │ │ │ ║ 0.05 │ "Low" │
759 ╞═══╪═══════════╪═══════╬══════════╪══════════╡
760 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" │
761 ├───┼───────────┼───────╫──────────┼──────────┤
762 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" │
763 ├───┼───────────┼───────╫──────────┼──────────┤
764 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
765 └───┴───────────┴───────╨──────────┴──────────┘
766% { Customer: "Business", Order: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
767% { Customer: "Business", Order: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
768% { Customer: "Business", Order: 10.00 }, { "Discount": 0.15, "Priority": "High" }
769% { Customer: "Business", Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
770% { Customer: "Private", Order: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
771% { Customer: "Private", Order: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
772% { Customer: "Private", Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
773% { Customer: "Government", Order: 300.01 }, null
774"#;
775
776pub const EX_0024: &str = r#"
787 ┌────────────────────────────────────────────────┐
788 │ Order properties │
789 ├───┬───────────┬───────╥──────────┬──────────╥──┴────────┐
790 │ U │ Customer │ Order ║ Discount │ Priority ║ Reference │
791 │ ├───────────┼───────╫──────────┼──────────╫───────────┤
792 │ │"Business",│ <10, ║ 0.10, │"Normal", ║ │
793 │ │"Private" │ >=10 ║ 0.15, │ "High", ║ │
794 │ │ │ ║ 0.05 │ "Low" ║ │
795 ╞═══╪═══════════╪═══════╬══════════╪══════════╬═══════════╡
796 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" ║ Ref 4 │
797 ├───┼───────────┼───────╫──────────┼──────────╫───────────┤
798 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" ║ Ref 3 │
799 ├───┼───────────┼───────╫──────────┼──────────╫───────────┤
800 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ Ref 2 │
801 └───┴───────────┴───────╨──────────┴──────────╨───────────┘
802% { Customer: "Business", Order: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
803% { Customer: "Business", Order: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
804% { Customer: "Business", Order: 10.00 }, { "Discount": 0.15, "Priority": "High" }
805% { Customer: "Business", Order: 120.00 }, { "Discount": 0.15, "Priority": "High" }
806% { Customer: "Private", Order: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
807% { Customer: "Private", Order: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
808% { Customer: "Private", Order: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
809% { Customer: "Government", Order: 300.01 }, null
810"#;
811
812pub const EX_0025: &str = r#"
823 ┌────────────────────┐
824 │ Discount │
825 ├───┬──────────┬─────┴─╥──────────┐
826 │ U │ Customer │ Order ║ Discount │
827 ╞═══╪══════════╪═══════╬══════════╡
828 │ 1 │"Business"│ <10 ║ 0.10 │
829 ├───┼──────────┼───────╫──────────┤
830 │ 2 │"Business"│ >=10 ║ 0.15 │
831 ├───┼──────────┼───────╫──────────┤
832 │ 3 │"Private" │ - ║ 0.05 │
833 └───┴──────────┴───────╨──────────┘
834% { Customer:"Business", Order: -3.23 }, 0.10
835% { Customer:"Business", Order: 9.00 }, 0.10
836% { Customer:"Business", Order: 10.00 }, 0.15
837% { Customer:"Business", Order: 120.00 }, 0.15
838% { Customer:"Private", Order: -2.34 }, 0.05
839% { Customer:"Private", Order: 10.00 }, 0.05
840% { Customer:"Private", Order: 101.00 }, 0.05
841% { Customer:"Government", Order: 10.00 }, null
842"#;
843
844pub const EX_0026: &str = r#"
855 ┌────────────────────┐
856 │ Discount │
857 ├───┬──────────┬─────┴─╥──────────╥─────────────┐
858 │ U │ Customer │ Order ║ Discount ║ Description │
859 ╞═══╪══════════╪═══════╬══════════╬═════════════╡
860 │ 1 │"Business"│ <10 ║ 0.10 ║ Small order │
861 ├───┼──────────┼───────╫──────────╫─────────────┤
862 │ 2 │"Business"│ >=10 ║ 0.15 ║ Large order │
863 ├───┼──────────┼───────╫──────────╫─────────────┤
864 │ 3 │"Private" │ - ║ 0.05 ║ All orders │
865 └───┴──────────┴───────╨──────────╨─────────────┘
866% { Customer:"Business", Order: -3.23 }, 0.10
867% { Customer:"Business", Order: 9.00 }, 0.10
868% { Customer:"Business", Order: 10.00 }, 0.15
869% { Customer:"Business", Order: 120.00 }, 0.15
870% { Customer:"Private", Order: -2.34 }, 0.05
871% { Customer:"Private", Order: 10.00 }, 0.05
872% { Customer:"Private", Order: 101.00 }, 0.05
873% { Customer:"Government", Order: 10.00 }, null
874"#;
875
876pub const EX_0027: &str = r#"
887 ┌──────────────────┐
888 │ Order properties │
889 ├───┬──────────┬───┴───╥─────────────────────┐
890 │ U │ Customer │ Order ║ Order properties │
891 │ │ type │ size ╟──────────┬──────────┤
892 │ │ │ ║ Discount │ Priority │
893 ╞═══╪══════════╪═══════╬══════════╪══════════╡
894 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" │
895 ├───┼──────────┼───────╫──────────┼──────────┤
896 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" │
897 ├───┼──────────┼───────╫──────────┼──────────┤
898 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
899 └───┴──────────┴───────╨──────────┴──────────┘
900% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
901% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
902% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
903% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
904% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
905% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
906% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
907% { Customer type: "Government", Order size: 300.01 }, null
908"#;
909
910pub const EX_0028: &str = r#"
921 ┌──────────────────┐
922 │ Order properties │
923 ├───┬──────────┬───┴───╥─────────────────────╥─────────────┬───────────┐
924 │ U │ Customer │ Order ║ Order properties ║ │ │
925 │ │ type │ size ╟──────────┬──────────╢ Description │ Reference │
926 │ │ │ ║ Discount │ Priority ║ │ │
927 ╞═══╪══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
928 │ 1 │"Business"│ <10 ║ 0.10 │ "Normal" ║ Small order │ Ref 1 │
929 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
930 │ 2 │"Business"│ >=10 ║ 0.15 │ "High" ║ Large order │ Ref 2 │
931 ├───┼──────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
932 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │ Ref 3 │
933 └───┴──────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
934% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
935% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
936% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
937% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
938% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
939% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
940% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
941% { Customer type: "Government", Order size: 300.01 }, null
942"#;
943
944pub const EX_0029: &str = r#"
955 ┌──────────────────────────────────┐
956 │ Discount │
957 ├───┬───────────┬───────╥──────────┤
958 │ U │ Customer │ Order ║ Discount │
959 │ ├───────────┼───────╫──────────┤
960 │ │"Business",│ <10, ║ 0.10, │
961 │ │"Private" │ >=10 ║ 0.15, │
962 │ │ │ ║ 0.05 │
963 ╞═══╪═══════════╪═══════╬══════════╡
964 │ 1 │"Business" │ <10 ║ 0.10 │
965 ├───┼───────────┼───────╫──────────┤
966 │ 2 │"Business" │ >=10 ║ 0.15 │
967 ├───┼───────────┼───────╫──────────┤
968 │ 3 │"Private" │ - ║ 0.05 │
969 └───┴───────────┴───────╨──────────┘
970% { Customer:"Business", Order: -3.23 }, 0.10
971% { Customer:"Business", Order: 9.00 }, 0.10
972% { Customer:"Business", Order: 10.00 }, 0.15
973% { Customer:"Business", Order: 120.00 }, 0.15
974% { Customer:"Private", Order: -2.34 }, 0.05
975% { Customer:"Private", Order: 10.00 }, 0.05
976% { Customer:"Private", Order: 101.00 }, 0.05
977% { Customer:"Government", Order: 10.00 }, null
978"#;
979
980pub const EX_0030: &str = r#"
990 ┌─────────────────────────────────────┐
991 │ Discount │
992 ├───┬───────────┬───────╥──────────╥──┴────────┐
993 │ U │ Customer │ Order ║ Discount ║ Reference │
994 │ ├───────────┼───────╫──────────╫───────────┤
995 │ │"Business",│ <10, ║ 0.10, ║ │
996 │ │"Private" │ >=10 ║ 0.15, ║ │
997 │ │ │ ║ 0.05 ║ │
998 ╞═══╪═══════════╪═══════╬══════════╬═══════════╡
999 │ 1 │"Business" │ <10 ║ 0.10 ║ Ref 0 │
1000 ├───┼───────────┼───────╫──────────╫───────────┤
1001 │ 2 │"Business" │ >=10 ║ 0.15 ║ Ref 1 │
1002 ├───┼───────────┼───────╫──────────╫───────────┤
1003 │ 3 │"Private" │ - ║ 0.05 ║ Ref 2 │
1004 └───┴───────────┴───────╨──────────╨───────────┘
1005% { Customer:"Business", Order: -3.23 }, 0.10
1006% { Customer:"Business", Order: 9.00 }, 0.10
1007% { Customer:"Business", Order: 10.00 }, 0.15
1008% { Customer:"Business", Order: 120.00 }, 0.15
1009% { Customer:"Private", Order: -2.34 }, 0.05
1010% { Customer:"Private", Order: 10.00 }, 0.05
1011% { Customer:"Private", Order: 101.00 }, 0.05
1012% { Customer:"Government", Order: 10.00 }, null
1013"#;
1014
1015pub const EX_0031: &str = r#"
1026 ┌─────────────────────────────────────┐
1027 │ Order options │
1028 ├───┬───────────┬───────╥─────────────┴───────┐
1029 │ U │ │ ║ Order options │
1030 │ │ Customer │ Order ╟──────────┬──────────┤
1031 │ │ type │ size ║ Discount │ Priority │
1032 │ ├───────────┼───────╫──────────┼──────────┤
1033 │ │"Business",│ <10, ║ 0.10, │"Normal", │
1034 │ │"Private" │ >=10 ║ 0.15, │ "High", │
1035 │ │ │ ║ 0.05 │ "Low" │
1036 ╞═══╪═══════════╪═══════╬══════════╪══════════╡
1037 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" │
1038 ├───┼───────────┼───────╫──────────┼──────────┤
1039 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" │
1040 ├───┼───────────┼───────╫──────────┼──────────┤
1041 │ 3 │"Private" │ - ║ 0.05 │ "Low" │
1042 └───┴───────────┴───────╨──────────┴──────────┘
1043% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
1044% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
1045% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
1046% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
1047% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
1048% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
1049% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
1050% { Customer type: "Government", Order size: 300.01 }, null
1051"#;
1052
1053pub const EX_0032: &str = r#"
1064 ┌─────────────────────────────────────┐
1065 │ Order options │
1066 ├───┬───────────┬───────╥─────────────┴───────╥─────────────┬───────────┐
1067 │ U │ │ ║ Order options ║ │ │
1068 │ │ Customer │ Order ╟──────────┬──────────╢ Description │ Reference │
1069 │ │ type │ size ║ Discount │ Priority ║ │ │
1070 │ ├───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
1071 │ │"Business",│ <10, ║ 0.10, │"Normal", ║ │ │
1072 │ │"Private" │ >=10 ║ 0.15, │ "High", ║ │ │
1073 │ │ │ ║ 0.05 │ "Low" ║ │ │
1074 ╞═══╪═══════════╪═══════╬══════════╪══════════╬═════════════╪═══════════╡
1075 │ 1 │"Business" │ <10 ║ 0.10 │ "Normal" ║ Small order │ Ref 1 │
1076 ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
1077 │ 2 │"Business" │ >=10 ║ 0.15 │ "High" ║ Large order │ Ref 2 │
1078 ├───┼───────────┼───────╫──────────┼──────────╫─────────────┼───────────┤
1079 │ 3 │"Private" │ - ║ 0.05 │ "Low" ║ All orders │ Ref 3 │
1080 └───┴───────────┴───────╨──────────┴──────────╨─────────────┴───────────┘
1081% { Customer type: "Business", Order size: -3.23 }, { "Discount": 0.10, "Priority": "Normal" }
1082% { Customer type: "Business", Order size: 9.00 }, { "Discount": 0.10, "Priority": "Normal" }
1083% { Customer type: "Business", Order size: 10.00 }, { "Discount": 0.15, "Priority": "High" }
1084% { Customer type: "Business", Order size: 120.00 }, { "Discount": 0.15, "Priority": "High" }
1085% { Customer type: "Private", Order size: -2.34 }, { "Discount": 0.05, "Priority": "Low" }
1086% { Customer type: "Private", Order size: 10.00 }, { "Discount": 0.05, "Priority": "Low" }
1087% { Customer type: "Private", Order size: 101.00 }, { "Discount": 0.05, "Priority": "Low" }
1088% { Customer type: "Government", Order size: 300.01 }, null
1089"#;
1090
1091pub const EX_0033: &str = r#"
1102 ┌─────────────────╥───────────────┬──────────┬───────────────┐
1103 │ Applicant age ║ <25 │ [25..60] │ >60 │
1104 ├─────────────────╫──────┬────────┼──────────┼────────┬──────┤
1105 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1106 ╞═════════════════╬══════╪════════╪══════════╪════════╪══════╡
1107 │ ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1108 ├─────────────────╫──────┼────────┼──────────┼────────┼──────┤
1109 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1110 └─────────────────╨──────┴────────┴──────────┴────────┴──────┘
1111% { Applicant age: 20, Medical history: "good" }, "Low"
1112% { Applicant age: 24, Medical history: "bad" }, "Medium"
1113% { Applicant age: 25, Medical history: "good" }, "Medium"
1114% { Applicant age: 25, Medical history: "bad" }, "Medium"
1115% { Applicant age: 60, Medical history: "good" }, "Medium"
1116% { Applicant age: 60, Medical history: "bad" }, "Medium"
1117% { Applicant age: 61, Medical history: "good" }, "Medium"
1118% { Applicant age: 61, Medical history: "bad" }, "High"
1119% { Applicant age: 61, Medical history: "well" }, null
1120"#;
1121
1122pub const EX_0034: &str = r#"
1133 ┌─────────────────╥───────────────┬──────────┬───────────────┐
1134 │ Applicant age ║ <25 │ [25..60] │ >60 │
1135 ├─────────────────╫──────┬────────┼──────────┼────────┬──────┤
1136 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1137 ╞═════════════════╬══════╪════════╪══════════╪════════╪══════╡
1138 │ ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1139 ╞═════════════════╬══════╪════════╪══════════╪════════╪══════╡
1140 │ Reference ║ Ref0 │ Ref1 │ Ref2 │ Ref3 │ Ref4 │
1141 ├─────────────────╫──────┼────────┼──────────┼────────┼──────┤
1142 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1143 └─────────────────╨──────┴────────┴──────────┴────────┴──────┘
1144% { Applicant age: 20, Medical history: "good" }, "Low"
1145% { Applicant age: 24, Medical history: "bad" }, "Medium"
1146% { Applicant age: 25, Medical history: "good" }, "Medium"
1147% { Applicant age: 25, Medical history: "bad" }, "Medium"
1148% { Applicant age: 60, Medical history: "good" }, "Medium"
1149% { Applicant age: 60, Medical history: "bad" }, "Medium"
1150% { Applicant age: 61, Medical history: "good" }, "Medium"
1151% { Applicant age: 61, Medical history: "bad" }, "High"
1152% { Applicant age: 61, Medical history: "well" }, null
1153"#;
1154
1155pub const EX_0035: &str = r#"
1166 ┌───────────────────────╥───────────────┬──────────┬───────────────┐
1167 │ Applicant age ║ <25 │ [25..60] │ >60 │
1168 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1169 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1170 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1171 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1172 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1173 │ Special Discount ║ 10 │ 7 │ 6 │ 4 │ 0 │
1174 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1175 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1176 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1177% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1178% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 7}
1179% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 6}
1180% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 6}
1181% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 6}
1182% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 6}
1183% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 4}
1184% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1185% { Applicant age: 61, Medical history: "well" }, null
1186"#;
1187
1188pub const EX_0036: &str = r#"
1199 ┌───────────────────────╥───────────────┬──────────┬───────────────┐
1200 │ Applicant age ║ <25 │ [25..60] │ >60 │
1201 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1202 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1203 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1204 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1205 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1206 │ Special Discount ║ 10 │ 4 │ 5 │ 3 │ 0 │
1207 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1208 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1209 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1210 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1211 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1212 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1213 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1214% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1215% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 4}
1216% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1217% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1218% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1219% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1220% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 3}
1221% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1222% { Applicant age: 61, Medical history: "well" }, null
1223"#;
1224
1225pub const EX_0037: &str = r#"
1236 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1237 │ Applicant age │ <25, [25..60], >60 ║ <25 │ [25..60] │ >60 │
1238 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1239 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1240 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1241 │ │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1242 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1243 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1244 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1245% { Applicant age: 20, Medical history: "good" }, "Low"
1246% { Applicant age: 24, Medical history: "bad" }, "Medium"
1247% { Applicant age: 25, Medical history: "good" }, "Medium"
1248% { Applicant age: 25, Medical history: "bad" }, "Medium"
1249% { Applicant age: 60, Medical history: "good" }, "Medium"
1250% { Applicant age: 60, Medical history: "bad" }, "Medium"
1251% { Applicant age: 61, Medical history: "good" }, "Medium"
1252% { Applicant age: 61, Medical history: "bad" }, "High"
1253% { Applicant age: 61, Medical history: "well" }, null
1254"#;
1255
1256pub const EX_0038: &str = r#"
1267 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1268 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1269 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1270 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1271 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1272 │ │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1273 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1274 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1275 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1276 │ Reference │ ║ R0 │ R1 │ R2 │ R3 │ R4 │
1277 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1278 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1279 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1280% { Applicant age: 20, Medical history: "good" }, "Low"
1281% { Applicant age: 24, Medical history: "bad" }, "Medium"
1282% { Applicant age: 25, Medical history: "good" }, "Medium"
1283% { Applicant age: 25, Medical history: "bad" }, "Medium"
1284% { Applicant age: 60, Medical history: "good" }, "Medium"
1285% { Applicant age: 60, Medical history: "bad" }, "Medium"
1286% { Applicant age: 61, Medical history: "good" }, "Medium"
1287% { Applicant age: 61, Medical history: "bad" }, "High"
1288% { Applicant age: 61, Medical history: "well" }, null
1289"#;
1290
1291pub const EX_0039: &str = r#"
1302 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1303 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1304 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1305 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1306 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1307 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1308 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1309 │ Special Discount │ 0,3,5,6,10 ║ 10 │ 6 │ 5 │ 3 │ 0 │
1310 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1311 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1312 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1313% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1314% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 6}
1315% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1316% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1317% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1318% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1319% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 3}
1320% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1321% { Applicant age: 61, Medical history: "well" }, null
1322"#;
1323
1324pub const EX_0040: &str = r#"
1335 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1336 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1337 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1338 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1339 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1340 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1341 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1342 │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
1343 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1344 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1345 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1346 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1347 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1348 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1349 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1350% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1351% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1352% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1353% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1354% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1355% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1356% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1357% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1358% { Applicant age: 61, Medical history: "well" }, null
1359"#;
1360
1361pub const EX_0041: &str = r#"
1372 ┌───────────────────────╥───────────────┬──────────┬───────────────┐
1373 │ Applicant age ║ <25 │ [25..60] │ >60 │
1374 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1375 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1376 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1377 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1378 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1379 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1380 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1381% { Applicant age: 20, Medical history: "good" }, "Low"
1382% { Applicant age: 24, Medical history: "bad" }, "Medium"
1383% { Applicant age: 25, Medical history: "good" }, "Medium"
1384% { Applicant age: 25, Medical history: "bad" }, "Medium"
1385% { Applicant age: 60, Medical history: "good" }, "Medium"
1386% { Applicant age: 60, Medical history: "bad" }, "Medium"
1387% { Applicant age: 61, Medical history: "good" }, "Medium"
1388% { Applicant age: 61, Medical history: "bad" }, "High"
1389% { Applicant age: 61, Medical history: "well" }, null
1390"#;
1391
1392pub const EX_0042: &str = r#"
1403 ┌───────────────────────╥───────────────┬──────────┬───────────────┐
1404 │ Applicant age ║ <25 │ [25..60] │ >60 │
1405 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1406 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1407 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1408 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1409 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1410 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1411 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1412 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1413 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1414 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1415 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1416% { Applicant age: 20, Medical history: "good" }, "Low"
1417% { Applicant age: 24, Medical history: "bad" }, "Medium"
1418% { Applicant age: 25, Medical history: "good" }, "Medium"
1419% { Applicant age: 25, Medical history: "bad" }, "Medium"
1420% { Applicant age: 60, Medical history: "good" }, "Medium"
1421% { Applicant age: 60, Medical history: "bad" }, "Medium"
1422% { Applicant age: 61, Medical history: "good" }, "Medium"
1423% { Applicant age: 61, Medical history: "bad" }, "High"
1424% { Applicant age: 61, Medical history: "well" }, null
1425"#;
1426
1427pub const EX_0043: &str = r#"
1438 ┌─────────────────────────────────╥───────────────┬──────────┬───────────────┐
1439 │ Applicant age ║ <25 │ [25..60] │ >60 │
1440 ├─────────────────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1441 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1442 ╞═════════╤═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1443 │ Sell │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1444 │ ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1445 │ options │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
1446 ├─────────┴───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1447 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1448 └─────────────────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1449% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1450% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1451% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1452% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1453% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1454% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1455% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1456% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1457% { Applicant age: 61, Medical history: "well" }, null
1458"#;
1459
1460pub const EX_0044: &str = r#"
1471 ┌─────────────────────────────────╥───────────────┬──────────┬───────────────┐
1472 │ Applicant age ║ <25 │ [25..60] │ >60 │
1473 ├─────────────────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1474 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1475 ╞═════════╤═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1476 │ Sell │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1477 │ ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1478 │ options │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
1479 ╞═════════╧═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1480 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1481 ├─────────────────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1482 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1483 ├─────────────────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1484 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1485 └─────────────────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1486% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1487% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1488% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1489% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1490% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1491% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1492% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1493% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1494% { Applicant age: 61, Medical history: "well" }, null
1495"#;
1496
1497pub const EX_0045: &str = r#"
1508 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1509 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1510 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1511 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1512 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1513 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1514 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1515 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1516 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1517% { Applicant age: 20, Medical history: "good" }, "Low"
1518% { Applicant age: 24, Medical history: "bad" }, "Medium"
1519% { Applicant age: 25, Medical history: "good" }, "Medium"
1520% { Applicant age: 25, Medical history: "bad" }, "Medium"
1521% { Applicant age: 60, Medical history: "good" }, "Medium"
1522% { Applicant age: 60, Medical history: "bad" }, "Medium"
1523% { Applicant age: 61, Medical history: "good" }, "Medium"
1524% { Applicant age: 61, Medical history: "bad" }, "High"
1525% { Applicant age: 61, Medical history: "well" }, null
1526"#;
1527
1528pub const EX_0046: &str = r#"
1539 ┌───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1540 │ Applicant age │ <25, [25..60], >60 ║ <25 │ [25..60] │ >60 │
1541 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1542 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1543 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1544 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1545 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1546 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1547 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1548 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1549 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1550 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1551 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1552% { Applicant age: 20, Medical history: "good" }, "Low"
1553% { Applicant age: 24, Medical history: "bad" }, "Medium"
1554% { Applicant age: 25, Medical history: "good" }, "Medium"
1555% { Applicant age: 25, Medical history: "bad" }, "Medium"
1556% { Applicant age: 60, Medical history: "good" }, "Medium"
1557% { Applicant age: 60, Medical history: "bad" }, "Medium"
1558% { Applicant age: 61, Medical history: "good" }, "Medium"
1559% { Applicant age: 61, Medical history: "bad" }, "High"
1560% { Applicant age: 61, Medical history: "well" }, null
1561"#;
1562
1563pub const EX_0047: &str = r#"
1574 ┌─────────────────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1575 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1576 ├─────────────────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1577 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1578 ╞═════════╤═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1579 │ Sell │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1580 │ ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1581 │ options │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
1582 ├─────────┴───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1583 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1584 └─────────────────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1585% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1586% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1587% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1588% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1589% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1590% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1591% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1592% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1593% { Applicant age: 61, Medical history: "well" }, null
1594"#;
1595
1596pub const EX_0048: &str = r#"
1607 ┌─────────────────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┐
1608 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1609 ├─────────────────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1610 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1611 ╞═════════╤═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1612 │ Sell │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1613 │ ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1614 │ options │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
1615 ╞═════════╧═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1616 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1617 ├─────────────────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1618 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1619 ├─────────────────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1620 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1621 └─────────────────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1622% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1623% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1624% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1625% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1626% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1627% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1628% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1629% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1630% { Applicant age: 61, Medical history: "well" }, null
1631"#;
1632
1633pub const EX_0049: &str = r#"
1644 ┌──────────────────────────────┐
1645 │ Applicant risk rating │
1646 ├───────────────────────╥──────┴────────┬──────────┬───────────────┐
1647 │ Applicant age ║ <25 │ [25..60] │ >60 │
1648 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1649 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1650 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1651 │ ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1652 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1653 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1654 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1655% { Applicant age: 20, Medical history: "good" }, "Low"
1656% { Applicant age: 24, Medical history: "bad" }, "Medium"
1657% { Applicant age: 25, Medical history: "good" }, "Medium"
1658% { Applicant age: 25, Medical history: "bad" }, "Medium"
1659% { Applicant age: 60, Medical history: "good" }, "Medium"
1660% { Applicant age: 60, Medical history: "bad" }, "Medium"
1661% { Applicant age: 61, Medical history: "good" }, "Medium"
1662% { Applicant age: 61, Medical history: "bad" }, "High"
1663% { Applicant age: 61, Medical history: "well" }, null
1664"#;
1665
1666pub const EX_0050: &str = r#"
1677 ┌──────────────────────────────┐
1678 │ Applicant risk rating │
1679 ├───────────────────────╥──────┴────────┬──────────┬───────────────┐
1680 │ Applicant age ║ <25 │ [25..60] │ >60 │
1681 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1682 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1683 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1684 │ ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1685 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1686 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1687 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1688 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1689 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1690 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1691 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1692% { Applicant age: 20, Medical history: "good" }, "Low"
1693% { Applicant age: 24, Medical history: "bad" }, "Medium"
1694% { Applicant age: 25, Medical history: "good" }, "Medium"
1695% { Applicant age: 25, Medical history: "bad" }, "Medium"
1696% { Applicant age: 60, Medical history: "good" }, "Medium"
1697% { Applicant age: 60, Medical history: "bad" }, "Medium"
1698% { Applicant age: 61, Medical history: "good" }, "Medium"
1699% { Applicant age: 61, Medical history: "bad" }, "High"
1700% { Applicant age: 61, Medical history: "well" }, null
1701"#;
1702
1703pub const EX_0051: &str = r#"
1714 ┌──────────────────────────────┐
1715 │ Sell options │
1716 ├───────────────────────╥──────┴────────┬──────────┬───────────────┐
1717 │ Applicant age ║ <25 │ [25..60] │ >60 │
1718 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1719 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1720 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1721 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1722 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1723 │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
1724 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1725 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1726 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1727% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1728% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1729% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1730% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1731% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1732% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1733% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1734% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1735% { Applicant age: 61, Medical history: "well" }, null
1736"#;
1737
1738pub const EX_0052: &str = r#"
1749 ┌──────────────────────────────────────────────────┐
1750 │ Sell options │
1751 ├───────────────────────╥───────────────┬──────────┼───────────────┐
1752 │ Applicant age ║ <25 │ [25..60] │ >60 │
1753 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1754 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1755 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1756 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1757 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1758 │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
1759 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1760 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1761 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1762 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1763 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1764 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1765 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1766% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1767% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1768% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1769% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1770% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1771% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1772% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1773% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1774% { Applicant age: 61, Medical history: "well" }, null
1775"#;
1776
1777pub const EX_0053: &str = r#"
1788 ┌────────────────────────────────────────────────────────────────────────┐
1789 │ Applicant risk rating │
1790 ├───────────────────────┬─────────────────────╥───────────────┬──────────┼───────────────┐
1791 │ Applicant age │ <25, [25..60], >60 ║ <25 │ [25..60] │ >60 │
1792 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1793 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1794 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1795 │ │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1796 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1797 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1798 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1799% { Applicant age: 20, Medical history: "good" }, "Low"
1800% { Applicant age: 24, Medical history: "bad" }, "Medium"
1801% { Applicant age: 25, Medical history: "good" }, "Medium"
1802% { Applicant age: 25, Medical history: "bad" }, "Medium"
1803% { Applicant age: 60, Medical history: "good" }, "Medium"
1804% { Applicant age: 60, Medical history: "bad" }, "Medium"
1805% { Applicant age: 61, Medical history: "good" }, "Medium"
1806% { Applicant age: 61, Medical history: "bad" }, "High"
1807% { Applicant age: 61, Medical history: "well" }, null
1808"#;
1809
1810pub const EX_0054: &str = r#"
1821 ┌──────────────────────────────────────────────────────────────────────────────────────┐
1822 │ Applicant risk rating │
1823 ├───────────────────────┬─────────────────────╥───────────────┬──────────┬─────────────┴─┐
1824 │ Applicant age │ <25, [25..60], >60 ║ <25 │ [25..60] │ >60 │
1825 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1826 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1827 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1828 │ │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1829 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1830 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1831 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1832 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1833 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1834 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1835 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1836% { Applicant age: 20, Medical history: "good" }, "Low"
1837% { Applicant age: 24, Medical history: "bad" }, "Medium"
1838% { Applicant age: 25, Medical history: "good" }, "Medium"
1839% { Applicant age: 25, Medical history: "bad" }, "Medium"
1840% { Applicant age: 60, Medical history: "good" }, "Medium"
1841% { Applicant age: 60, Medical history: "bad" }, "Medium"
1842% { Applicant age: 61, Medical history: "good" }, "Medium"
1843% { Applicant age: 61, Medical history: "bad" }, "High"
1844% { Applicant age: 61, Medical history: "well" }, null
1845"#;
1846
1847pub const EX_0055: &str = r#"
1858 ┌────────────────────────────────────────────────────────────────────────┐
1859 │ Sell options │
1860 ├───────────────────────┬─────────────────────╥───────────────┬──────────┼───────────────┐
1861 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1862 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1863 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1864 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1865 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1866 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1867 │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
1868 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1869 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1870 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1871% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1872% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1873% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1874% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1875% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1876% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1877% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1878% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1879% { Applicant age: 61, Medical history: "well" }, null
1880"#;
1881
1882pub const EX_0056: &str = r#"
1893 ┌────────────────────────────────────────────────────────────────────────┐
1894 │ Sell options │
1895 ├───────────────────────┬─────────────────────╥───────────────┬──────────┼───────────────┐
1896 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
1897 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1898 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
1899 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1900 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1901 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1902 │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
1903 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1904 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
1905 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1906 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
1907 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1908 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
1909 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1910% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
1911% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1912% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1913% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1914% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1915% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
1916% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
1917% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
1918% { Applicant age: 61, Medical history: "well" }, null
1919"#;
1920
1921pub const EX_0057: &str = r#"
1932 ┌──────────────────────────────────┐
1933 │ Applicant risk rating │
1934 ├───────────────────────╥──────────┴────┬──────────┬───────────────┐
1935 │ Applicant age ║ <25 │ [25..60] │ >60 │
1936 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1937 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1938 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1939 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1940 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1941 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1942 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1943% { Applicant age: 20, Medical history: "good" }, "Low"
1944% { Applicant age: 24, Medical history: "bad" }, "Medium"
1945% { Applicant age: 25, Medical history: "good" }, "Medium"
1946% { Applicant age: 25, Medical history: "bad" }, "Medium"
1947% { Applicant age: 60, Medical history: "good" }, "Medium"
1948% { Applicant age: 60, Medical history: "bad" }, "Medium"
1949% { Applicant age: 61, Medical history: "good" }, "Medium"
1950% { Applicant age: 61, Medical history: "bad" }, "High"
1951% { Applicant age: 61, Medical history: "well" }, null
1952"#;
1953
1954pub const EX_0058: &str = r#"
1965 ┌──────────────────────────────────┐
1966 │ Applicant risk rating │
1967 ├───────────────────────╥──────────┴────┬──────────┬───────────────┐
1968 │ Applicant age ║ <25 │ [25..60] │ >60 │
1969 ├───────────────────────╫──────┬────────┼──────────┼────────┬──────┤
1970 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
1971 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1972 │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
1973 ╞═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
1974 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
1975 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1976 │ Reference ║ Ref0 │ Ref1 │ Ref2 │ Ref3 │ Ref4 │
1977 ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
1978 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
1979 └───────────────────────╨──────┴────────┴──────────┴────────┴──────┘
1980% { Applicant age: 20, Medical history: "good" }, "Low"
1981% { Applicant age: 24, Medical history: "bad" }, "Medium"
1982% { Applicant age: 25, Medical history: "good" }, "Medium"
1983% { Applicant age: 25, Medical history: "bad" }, "Medium"
1984% { Applicant age: 60, Medical history: "good" }, "Medium"
1985% { Applicant age: 60, Medical history: "bad" }, "Medium"
1986% { Applicant age: 61, Medical history: "good" }, "Medium"
1987% { Applicant age: 61, Medical history: "bad" }, "High"
1988% { Applicant age: 61, Medical history: "well" }, null
1989"#;
1990
1991pub const EX_0059: &str = r#"
2002 ┌────────────────────────────────────────────────────────────┐
2003 │ Sell options │
2004 ├─────────────────────────────────╥───────────────┬──────────┼───────────────┐
2005 │ Applicant age ║ <25 │ [25..60] │ >60 │
2006 ├─────────────────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2007 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
2008 ╞═════════╤═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2009 │ Sell │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2010 │ ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2011 │ options │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
2012 ├─────────┴───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2013 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
2014 └─────────────────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2015% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
2016% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2017% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2018% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2019% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2020% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2021% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2022% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
2023% { Applicant age: 61, Medical history: "well" }, null
2024"#;
2025
2026pub const EX_0060: &str = r#"
2037 ┌────────────────────────────────────────────────────────────┐
2038 │ Sell options │
2039 ├─────────────────────────────────╥───────────────┬──────────┼───────────────┐
2040 │ Applicant age ║ <25 │ [25..60] │ >60 │
2041 ├─────────────────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2042 │ Medical history ║"good"│ "bad" │ - │ "good" │"bad" │
2043 ╞═════════╤═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2044 │ Sell │ Applicant risk rating ║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2045 │ ├───────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2046 │ options │ Special Discount ║ 10 │ 5 │ 5 │ 5 │ 0 │
2047 ╞═════════╧═══════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2048 │ Additional acceptance ║ No │ No │ No │ No │ Yes │
2049 ├─────────────────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2050 │ Reference ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
2051 ├─────────────────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2052 │ U ║ 1 │ 2 │ 3 │ 4 │ 5 │
2053 └─────────────────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2054% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
2055% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2056% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2057% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2058% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2059% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2060% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2061% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
2062% { Applicant age: 61, Medical history: "well" }, null
2063"#;
2064
2065pub const EX_0061: &str = r#"
2076 ┌──────────────────────────────┐
2077 │ Applicant risk rating │
2078 ├───────────────────────┬──────┴──────────────╥───────────────┬──────────┬───────────────┐
2079 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
2080 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2081 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
2082 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2083 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2084 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2085 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
2086 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2087% { Applicant age: 20, Medical history: "good" }, "Low"
2088% { Applicant age: 24, Medical history: "bad" }, "Medium"
2089% { Applicant age: 25, Medical history: "good" }, "Medium"
2090% { Applicant age: 25, Medical history: "bad" }, "Medium"
2091% { Applicant age: 60, Medical history: "good" }, "Medium"
2092% { Applicant age: 60, Medical history: "bad" }, "Medium"
2093% { Applicant age: 61, Medical history: "good" }, "Medium"
2094% { Applicant age: 61, Medical history: "bad" }, "High"
2095% { Applicant age: 61, Medical history: "well" }, null
2096"#;
2097
2098pub const EX_0062: &str = r#"
2109 ┌────────────────────────────────────────────────────────────────────────────────────────┐
2110 │ Applicant risk rating │
2111 ├───────────────────────┬─────────────────────╥───────────────┬──────────┬───────────────┤
2112 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
2113 ├───────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2114 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
2115 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2116 │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2117 ╞═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2118 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
2119 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2120 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
2121 ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2122 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
2123 └───────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2124% { Applicant age: 20, Medical history: "good" }, "Low"
2125% { Applicant age: 24, Medical history: "bad" }, "Medium"
2126% { Applicant age: 25, Medical history: "good" }, "Medium"
2127% { Applicant age: 25, Medical history: "bad" }, "Medium"
2128% { Applicant age: 60, Medical history: "good" }, "Medium"
2129% { Applicant age: 60, Medical history: "bad" }, "Medium"
2130% { Applicant age: 61, Medical history: "good" }, "Medium"
2131% { Applicant age: 61, Medical history: "bad" }, "High"
2132% { Applicant age: 61, Medical history: "well" }, null
2133"#;
2134
2135pub const EX_0063: &str = r#"
2146┌──────────────────────────────────────────────────────────────────────────────────┐
2147│ Sell options │
2148├─────────────────────────────────┬─────────────────────╥───────────────┬──────────┼───────────────┐
2149│ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
2150├─────────────────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2151│ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
2152╞═════════╤═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2153│ Sell │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2154│ ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2155│ options │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
2156├─────────┴───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2157│ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
2158└─────────────────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2159% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
2160% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2161% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2162% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2163% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2164% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2165% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2166% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
2167% { Applicant age: 61, Medical history: "well" }, null
2168"#;
2169
2170pub const EX_0064: &str = r#"
2181 ┌──────────────────────────────────────────────────────────────────────────────────┐
2182 │ Sell options │
2183 ├─────────────────────────────────┬─────────────────────╥───────────────┬──────────┼───────────────┐
2184 │ Applicant age │ <25,[25..60],>60 ║ <25 │ [25..60] │ >60 │
2185 ├─────────────────────────────────┼─────────────────────╫──────┬────────┼──────────┼────────┬──────┤
2186 │ Medical history │ "good","bad" ║"good"│ "bad" │ - │ "good" │"bad" │
2187 ╞═════════╤═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2188 │ Sell │ Applicant risk rating │"Low","Medium","High"║"Low" │"Medium"│ "Medium" │"Medium"│"High"│
2189 │ ├───────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2190 │ options │ Special Discount │ 0, 5, 10 ║ 10 │ 5 │ 5 │ 5 │ 0 │
2191 ╞═════════╧═══════════════════════╪═════════════════════╬══════╪════════╪══════════╪════════╪══════╡
2192 │ Additional acceptance │ ║ No │ No │ No │ No │ Yes │
2193 ├─────────────────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2194 │ Reference │ ║ Rf 0 │ Rf 1 │ Rf 2 │ Rf 3 │ Rf 4 │
2195 ├─────────────────────────────────┼─────────────────────╫──────┼────────┼──────────┼────────┼──────┤
2196 │ U │ ║ 1 │ 2 │ 3 │ 4 │ 5 │
2197 └─────────────────────────────────┴─────────────────────╨──────┴────────┴──────────┴────────┴──────┘
2198% { Applicant age: 20, Medical history: "good" }, {Applicant risk rating: "Low", Special Discount: 10}
2199% { Applicant age: 24, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2200% { Applicant age: 25, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2201% { Applicant age: 25, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2202% { Applicant age: 60, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2203% { Applicant age: 60, Medical history: "bad" }, {Applicant risk rating: "Medium", Special Discount: 5}
2204% { Applicant age: 61, Medical history: "good" }, {Applicant risk rating: "Medium", Special Discount: 5}
2205% { Applicant age: 61, Medical history: "bad" }, {Applicant risk rating: "High", Special Discount: 0}
2206% { Applicant age: 61, Medical history: "well" }, null
2207"#;
2208
2209pub const EX_0065: &str = r#"
2220 ┌───────────────────╥─────────────────────────────────┐
2221 │ ║ Customer │
2222 │ ╟──────────┬─────────┬────────────┤
2223 │ ║"Business"│"Private"│"Government"│
2224 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2225 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2226 │ Order size ├──────╫──────────┼─────────┼────────────┤
2227 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2228 └────────────┴──────╨──────────┴─────────┴────────────┘
2229"#;
2230
2231pub const EX_0066: &str = r#""#;
2243
2244pub const EX_0067: &str = r#"
2255 ┌────────────────────╥─────────────────────────────────┐
2256 │ ║ Customer │
2257 ├────────────────────╫──────────┬─────────┬────────────┤
2258 │ Discount, ║ │ │ │
2259 │ Priority ║"Business"│"Private"│"Government"│
2260 ╞═════════════╤══════╬══════════╪═════════╪════════════╡
2261 │ │ <10 ║ 0.05, │ 0, │ 0.15, │
2262 │ │ ║ "Normal" │ "Low" │ "High" │
2263 │ Order size ├──────╫──────────┼─────────┼────────────┤
2264 │ │ >=10 ║ 0.10, │ 0, │ 0.15, │
2265 │ │ ║ "High" │ "Normal"│ "High" │
2266 └─────────────┴──────╨──────────┴─────────┴────────────┘
2267"#;
2268
2269pub const EX_0068: &str = r#""#;
2281
2282pub const EX_0069: &str = r#"
2293 ┌──────────────────────────╥─────────────────────────────────┐
2294 │ ║ Customer │
2295 │ ╟─────────────────────────────────┤
2296 │ ║"Business","Private","Government"│
2297 ├──────────────────────────╫──────────┬─────────┬────────────┤
2298 │ 0.05, 0, 0.15 ║"Business"│"Private"│"Government"│
2299 ╞════════════╤══════╤══════╬══════════╪═════════╪════════════╡
2300 │ │ <10, │ <10 ║ 0.05 │ 0 │ 0.15 │
2301 │ Order size │ ├──────╫──────────┼─────────┼────────────┤
2302 │ │ >=10 │ >=10 ║ 0.10 │ 0 │ 0.15 │
2303 └────────────┴──────┴──────╨──────────┴─────────┴────────────┘
2304"#;
2305
2306pub const EX_0070: &str = r#""#;
2318
2319pub const EX_0071: &str = r#"
2330 ┌───────────────────╥─────────────────────────────────┐
2331 │ ║ Customer │
2332 │ ╟──────────┬─────────┬────────────┤
2333 │ ║"Business"│"Private"│"Government"│
2334 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2335 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2336 │ Order size ├──────╫──────────┼─────────┼────────────┤
2337 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2338 └────────────┴──────╨──────────┴─────────┴────────────┘
2339"#;
2340
2341pub const EX_0072: &str = r#""#;
2353
2354pub const EX_0073: &str = r#"
2365 ┌───────────────────╥─────────────────────────────────┐
2366 │ ║ Customer │
2367 │ ╟──────────┬─────────┬────────────┤
2368 │ ║"Business"│"Private"│"Government"│
2369 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2370 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2371 │ Order size ├──────╫──────────┼─────────┼────────────┤
2372 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2373 └────────────┴──────╨──────────┴─────────┴────────────┘
2374"#;
2375
2376pub const EX_0074: &str = r#""#;
2388
2389pub const EX_0075: &str = r#"
2400 ┌───────────────────╥─────────────────────────────────┐
2401 │ ║ Customer │
2402 │ ╟──────────┬─────────┬────────────┤
2403 │ ║"Business"│"Private"│"Government"│
2404 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2405 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2406 │ Order size ├──────╫──────────┼─────────┼────────────┤
2407 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2408 └────────────┴──────╨──────────┴─────────┴────────────┘
2409"#;
2410
2411pub const EX_0076: &str = r#"
2424// "#;
2425
2426pub const EX_0077: &str = r#"
2437 ┌───────────────────╥─────────────────────────────────┐
2438 │ ║ Customer │
2439 │ ╟──────────┬─────────┬────────────┤
2440 │ ║"Business"│"Private"│"Government"│
2441 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2442 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2443 │ Order size ├──────╫──────────┼─────────┼────────────┤
2444 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2445 └────────────┴──────╨──────────┴─────────┴────────────┘
2446"#;
2447
2448pub const EX_0078: &str = r#""#;
2460
2461pub const EX_0079: &str = r#"
2472 ┌───────────────────╥─────────────────────────────────┐
2473 │ ║ Customer │
2474 │ ╟──────────┬─────────┬────────────┤
2475 │ ║"Business"│"Private"│"Government"│
2476 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2477 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2478 │ Order size ├──────╫──────────┼─────────┼────────────┤
2479 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2480 └────────────┴──────╨──────────┴─────────┴────────────┘
2481"#;
2482
2483pub const EX_0080: &str = r#""#;
2495
2496pub const EX_0081: &str = r#"
2507 ┌───────────────────╥─────────────────────────────────┐
2508 │ ║ Customer │
2509 │ ╟──────────┬─────────┬────────────┤
2510 │ ║"Business"│"Private"│"Government"│
2511 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2512 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2513 │ Order size ├──────╫──────────┼─────────┼────────────┤
2514 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2515 └────────────┴──────╨──────────┴─────────┴────────────┘
2516"#;
2517
2518pub const EX_0082: &str = r#""#;
2530
2531pub const EX_0083: &str = r#"
2542 ┌───────────────────╥─────────────────────────────────┐
2543 │ ║ Customer │
2544 │ ╟──────────┬─────────┬────────────┤
2545 │ ║"Business"│"Private"│"Government"│
2546 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2547 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2548 │ Order size ├──────╫──────────┼─────────┼────────────┤
2549 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2550 └────────────┴──────╨──────────┴─────────┴────────────┘
2551"#;
2552
2553pub const EX_0084: &str = r#""#;
2565
2566pub const EX_0085: &str = r#"
2577 ┌───────────────────╥─────────────────────────────────┐
2578 │ ║ Customer │
2579 │ ╟──────────┬─────────┬────────────┤
2580 │ ║"Business"│"Private"│"Government"│
2581 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2582 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2583 │ Order size ├──────╫──────────┼─────────┼────────────┤
2584 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2585 └────────────┴──────╨──────────┴─────────┴────────────┘
2586"#;
2587
2588pub const EX_0086: &str = r#""#;
2600
2601pub const EX_0087: &str = r#"
2612 ┌───────────────────╥─────────────────────────────────┐
2613 │ ║ Customer │
2614 │ ╟──────────┬─────────┬────────────┤
2615 │ ║"Business"│"Private"│"Government"│
2616 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2617 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2618 │ Order size ├──────╫──────────┼─────────┼────────────┤
2619 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2620 └────────────┴──────╨──────────┴─────────┴────────────┘
2621"#;
2622
2623pub const EX_0088: &str = r#""#;
2635
2636pub const EX_0089: &str = r#"
2647 ┌─────────────────────────────────────────────────────┐
2648 │ Discount │
2649 ├───────────────────╥─────────────────────────────────┤
2650 │ ║ Customer │
2651 │ Discount ╟──────────┬─────────┬────────────┤
2652 │ ║"Business"│"Private"│"Government"│
2653 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2654 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2655 │ Order size ├──────╫──────────┼─────────┼────────────┤
2656 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2657 └────────────┴──────╨──────────┴─────────┴────────────┘
2658"#;
2659
2660pub const EX_0090: &str = r#""#;
2672
2673pub const EX_0091: &str = r#"
2684 ┌───────────────────╥─────────────────────────────────┐
2685 │ ║ Customer │
2686 │ ╟──────────┬─────────┬────────────┤
2687 │ ║"Business"│"Private"│"Government"│
2688 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2689 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2690 │ Order size ├──────╫──────────┼─────────┼────────────┤
2691 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2692 └────────────┴──────╨──────────┴─────────┴────────────┘
2693"#;
2694
2695pub const EX_0092: &str = r#" "#;
2707
2708pub const EX_0093: &str = r#"
2719 ┌───────────────────╥─────────────────────────────────┐
2720 │ ║ Customer │
2721 │ ╟──────────┬─────────┬────────────┤
2722 │ ║"Business"│"Private"│"Government"│
2723 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2724 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2725 │ Order size ├──────╫──────────┼─────────┼────────────┤
2726 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2727 └────────────┴──────╨──────────┴─────────┴────────────┘
2728"#;
2729
2730pub const EX_0094: &str = r#""#;
2742
2743pub const EX_0095: &str = r#"
2754 ┌───────────────────╥─────────────────────────────────┐
2755 │ ║ Customer │
2756 │ ╟──────────┬─────────┬────────────┤
2757 │ ║"Business"│"Private"│"Government"│
2758 ╞════════════╤══════╬══════════╪═════════╪════════════╡
2759 │ │ <10 ║ 0.05 │ 0 │ 0.15 │
2760 │ Order size ├──────╫──────────┼─────────┼────────────┤
2761 │ │ >=10 ║ 0.10 │ 0 │ 0.15 │
2762 └────────────┴──────╨──────────┴─────────┴────────────┘
2763"#;
2764
2765pub const EX_0096: &str = r#""#;
2777
2778pub const EX_0097: &str = r#"
2796 ┌─────────────────────────────────────────────────────────────┐
2797 │ Discount │
2798 ├───────────────────╥─────────────────────────────────────────┤
2799 │ ║ Customer, Delivery │
2800 │ ╟──────────┬─────────────────┬────────────┤
2801 │ Discount ║"Business"│ "Private" │"Government"│
2802 │ ╟──────────┼──────────┬──────┼────────────┤
2803 │ ║ - │ same day │ slow │ - │
2804 ╞════════════╤══════╬══════════╪══════════╪══════╪════════════╡
2805 │ │ <10 ║ 0.05 │ 0 │ 0.05 │ 0.15 │
2806 │ Order size ├──────╫──────────┼──────────┼──────┼────────────┤
2807 │ │ >=10 ║ 0.10 │ 0 │ 0.05 │ 0.15 │
2808 └────────────┴──────╨──────────┴──────────┴──────┴────────────┘
2809"#;
2810
2811pub const EX_0100: &str = r#"
2813 ┌───────────────────────────┐
2814 │ information item name │
2815 ├───┬────────────────────┬──┴─────────────────╥────────────────────┐
2816 │ C │ input expression 1 │ input expression 2 ║ output label │
2817 │ ├────────────────────┼────────────────────╫────────────────────┤
2818 │ │ input value 1a, │ input value 2a, ║ output value 1a, │
2819 │ │ input value 1b │ input value 2b ║ output value 1b │
2820 ╞═══╪════════════════════╪════════════════════╬════════════════════╡
2821 │ 1 │ │ input entry 2.1 ║ output entry 1.1 │
2822 ├───┤ input entry 1.1 ├────────────────────╫────────────────────┤
2823 │ 2 │ │ input entry 2.2 ║ output entry 1.2 │
2824 ├───┼────────────────────┼────────────────────╫────────────────────┤
2825 │ 3 │ input entry 1.2 │ - ║ output entry 1.3 │
2826 ├───┼────────────────────┼────────────────────╫────────────────────┤
2827 │ 4 │ input entry 1.3 │ input entry 2.3 ║ output entry 1.4 │
2828 └───┴────────────────────┴────────────────────╨────────────────────┘
2829"#;
2830
2831pub const EX_0101: &str = r#"
2833 ┌───────────────────────────────────────────────────────────────────────────────────────┐
2834 │ information item name │
2835 ├───┬────────────────────┬────────────────────╥─────────────────────────────────────────┤
2836 │ U │ │ ║ output label │
2837 │ │ input expression 1 │ input expression 2 ╟────────────────────┬────────────────────┤
2838 │ │ │ ║ output component 1 │ output component 1 │
2839 │ ├────────────────────┼────────────────────╫────────────────────┼────────────────────┤
2840 │ │ input value 1a, │ input value 2a, ║ output value 1a, │ output value 2a, │
2841 │ │ input value 1b │ input value 2b ║ output value 1b │ output value 2b │
2842 ╞═══╪════════════════════╪════════════════════╬════════════════════╪════════════════════╡
2843 │ 1 │ │ input entry 2.1 ║ output entry 1.1 │ output entry 2.1 │
2844 ├───┤ input entry 1.1 ├────────────────────╫────────────────────┼────────────────────┤
2845 │ 2 │ │ input entry 2.2 ║ output entry 1.2 │ output entry 2.2 │
2846 ├───┼────────────────────┼────────────────────╫────────────────────┼────────────────────┤
2847 │ 3 │ │ input entry 2.3 ║ output entry 1.3 │ output entry 2.3 │
2848 ├───┤ input entry 1.2 ├────────────────────╫────────────────────┼────────────────────┤
2849 │ 4 │ │ input entry 2.4 ║ output entry 1.4 │ output entry 2.4 │
2850 ├───┼────────────────────┼────────────────────╫────────────────────┼────────────────────┤
2851 │ 5 │ input entry 1.4 │ input entry 2.5 ║ output entry 1.5 │ output entry 2.5 │
2852 └───┴────────────────────┴────────────────────╨────────────────────┴────────────────────┘
2853"#;
2854
2855pub const EX_0102: &str = r#"
2857 ┌───────────────────────────┐
2858 │ information item name │
2859 ├───┬────────────────────┬──┴─────────────────╥────────────────────╥──────────────────────┬──────────────────────┐
2860 │ U │ input expression 1 │ input expression 2 ║ output label ║ annotation 1 │ annotation 2 │
2861 │ ├────────────────────┼────────────────────╫────────────────────╫──────────────────────┼──────────────────────┤
2862 │ │ input value 1a, │ input value 2a, ║ output value 1a, ║ │ │
2863 │ │ input value 1b │ input value 2b ║ output value 1b ║ │ │
2864 ╞═══╪════════════════════╪════════════════════╬════════════════════╬══════════════════════╪══════════════════════╡
2865 │ 1 │ │ input entry 2.1 ║ output entry 1.1 ║ annotation entry 1.1 │ annotation entry 2.1 │
2866 ├───┤ input entry 1.1 ├────────────────────╫────────────────────╫──────────────────────┼──────────────────────┤
2867 │ 2 │ │ input entry 2.2 ║ output entry 1.2 ║ annotation entry 1.2 │ annotation entry 2.2 │
2868 ├───┼────────────────────┼────────────────────╫────────────────────╫──────────────────────┼──────────────────────┤
2869 │ 3 │ input entry 1.2 │ - ║ output entry 1.3 ║ annotation entry 1.3 │ annotation entry 2.3 │
2870 ├───┼────────────────────┼────────────────────╫────────────────────╫──────────────────────┼──────────────────────┤
2871 │ 4 │ input entry 1.3 │ input entry 2.3 ║ output entry 1.4 ║ annotation entry 1.4 │ annotation entry 2.4 │
2872 └───┴────────────────────┴────────────────────╨────────────────────╨──────────────────────┴──────────────────────┘
2873"#;
2874
2875pub const EX_0103: &str = r#"
2877 ┌───────────────────────────┐
2878 │ information item name │
2879 ├────────────────────┬──────┴─────────────╥─────────────────────────────────────┬──────────────────┐
2880 │ input expression 1 │ input value 1a, ║ input entry 1.1 │ input entry 1.2 │
2881 │ │ input value 1b ║ │ │
2882 ├────────────────────┼────────────────────╫──────────────────┬──────────────────┼──────────────────┤
2883 │ input expression 2 │ input value 2a, ║ input entry 2.1 │ input entry 2.2 │ - │
2884 │ │ input value 2b ║ │ │ │
2885 ╞════════════════════╪════════════════════╬══════════════════╪══════════════════╪══════════════════╡
2886 │ output label │ output value 1a, ║ output entry 1.1 │ output entry 1.2 │ output entry 1.3 │
2887 │ │ output value 1b ║ │ │ │
2888 ├────────────────────┼────────────────────╫──────────────────┼──────────────────┼──────────────────┤
2889 │ U │ ║ 1 │ 2 │ 3 │
2890 └────────────────────┴────────────────────╨──────────────────┴──────────────────┴──────────────────┘
2891"#;
2892
2893pub const EX_0104: &str = r#"
2895 ┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
2896 │ information item name │
2897 ├──────────────────────┬──────────────────╥─────────────────────────────────────┬──────────────────┤
2898 │ input expression 1 │ input value 1a, ║ input entry 1.1 │ input entry 1.2 │
2899 │ │ input value 1b ║ │ │
2900 ├──────────────────────┼──────────────────╫──────────────────┬──────────────────┼──────────────────┤
2901 │ input expression 2 │ input value 2a, ║ input entry 2.1 │ input entry 2.2 │ - │
2902 │ │ input value 2b ║ │ │ │
2903 ╞════════╤═════════════╪══════════════════╬══════════════════╪══════════════════╪══════════════════╡
2904 │ │ output │ output value 1a, ║ output entry 1.1 │ output entry 1.2 │ output entry 1.3 │
2905 │ output │ component 1 │ output value 1b ║ │ │ │
2906 │ label ├─────────────┼──────────────────╫──────────────────┼──────────────────┼──────────────────┤
2907 │ │ output │ output value 2a, ║ output entry 2.1 │ output entry 2.2 │ output entry 2.3 │
2908 │ │ component 2 │ output value 2b ║ │ │ │
2909 ├────────┴─────────────┼──────────────────╫──────────────────┼──────────────────┼──────────────────┤
2910 │ U │ ║ 1 │ 2 │ 3 │
2911 └──────────────────────┴──────────────────╨──────────────────┴──────────────────┴──────────────────┘
2912"#;
2913
2914pub const EX_0105: &str = r#"
2916 ┌───────────────────────────┐
2917 │ information item name │
2918 ├────────────────────┬──────┴─────────────╥─────────────────────────────────────────────┬──────────────────────┐
2919 │ input expression 1 │ input value 1a, ║ input entry 1.1 │ input entry 1.1 │
2920 │ │ input value 1b ║ │ │
2921 ├────────────────────┼────────────────────╫──────────────────────┬──────────────────────┼──────────────────────┤
2922 │ input expression 2 │ input value 2a, ║ input entry 2.1 │ input entry 2.2 │ - │
2923 │ │ input value 2b ║ │ │ │
2924 ╞════════════════════╪════════════════════╬══════════════════════╪══════════════════════╪══════════════════════╡
2925 │ output label │ output value 1a, ║ output entry 1.1 │ output entry 1.2 │ output entry 1.3 │
2926 │ │ output value 1b ║ │ │ │
2927 ╞════════════════════╪════════════════════╬══════════════════════╪══════════════════════╪══════════════════════╡
2928 │ annotation 1 │ ║ annotation entry 1.1 │ annotation entry 1.2 │ annotation entry 1.3 │
2929 ├────────────────────┼────────────────────╫──────────────────────┼──────────────────────┼──────────────────────┤
2930 │ annotation 2 │ ║ annotation entry 2.1 │ annotation entry 2.2 │ annotation entry 2.3 │
2931 ├────────────────────┼────────────────────╫──────────────────────┼──────────────────────┼──────────────────────┤
2932 │ U │ ║ 1 │ 2 │ 3 │
2933 └────────────────────┴────────────────────╨──────────────────────┴──────────────────────┴──────────────────────┘
2934"#;
2935
2936pub const EX_0106: &str = r#"
2938 ┌────────────────────────────────────────────────────────────────┐
2939 │ information item name │
2940 ├──────────────────────────────────╥─────────────────────────────┤
2941 │ ║ input expression 1 │
2942 │ output label ╟──────────────┬──────────────┤
2943 │ ║ input entry │ input entry │
2944 │ ║ 1.1 │ 1.2 │
2945 ╞════════════════════╤═════════════╬══════════════╪══════════════╡
2946 │ │ input entry ║ output entry │ output entry │
2947 │ │ 2.1 ║ 1.1 │ 1.3 │
2948 │ input expression 2 ├─────────────╫──────────────┼──────────────┤
2949 │ │ input entry ║ output entry │ output entry │
2950 │ │ 2.2 ║ 1.2 │ 1.4 │
2951 └────────────────────┴─────────────╨──────────────┴──────────────┘
2952"#;
2953
2954pub const EX_0107: &str = r#"
2956 ┌───────────────────────────────────────────────────────────────┐
2957 │ information item name │
2958 ├───────────────────────╥───────────────────────────────────────┤
2959 │ output label ║ input expression 1 │
2960 ├───────────────────────╫───────────────────┬───────────────────┤
2961 │ output component 1, ║ input entry 1a │ input entry 1b │
2962 │ output component 2 ║ │ │
2963 ╞════════════╤══════════╬═══════════════════╪═══════════════════╡
2964 │ │ input ║ output entry 1.1, │ output entry 1.3, │
2965 │ input │ entry 2a ║ output entry 2.1 │ output entry 2.3 │
2966 │ expression ├──────────╫───────────────────┼───────────────────┤
2967 │ 2 │ input ║ output entry 1.2, │ output entry 1.4, │
2968 │ │ entry 2b ║ output entry 2.2 │ output entry 2.4 │
2969 └────────────┴──────────╨───────────────────┴───────────────────┘
2970"#;