Advanced Functional Prog.


Packages' Builder

F. Complements

  1. By using the Parser library presented in the course, define a program to read products'information from a CSV file.
  2. Propose a program that displays the result of (12.e) in a "tree" structure as illustrated below.
Num packages: 2
  Package 1 (weight: 0.9)
    - Product 1 (weight: 0.6)
    - Product 4 (weight: 0.3)
  Package 2 (weight: 0.8)
    - Product 2 (weight: 0.4)
    - Product 3 (weight: 0.4)

answers