Course of Raku / Essentials / Associative data types / Exercises
Purchase table
Problem
Take the data layout from the exercise ‘Purchase table’ that you did earlier:
Item Price N Total
Chairs $20.57 4 $82.28
Tables $50.18 1 $50.18
Propose a data structure to store these values. Write the program to print it.
Example
If you run the program, you should get the table shown above.
$ raku purchase-table.raku
Solution
Next exercise
Course navigation
← Positional data types / Subscripting ranges | Creating and calling functions →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська