Course of Raku / Essentials / More about types / 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

See the solution

Course navigation

Solution: Replace with antonyms   |   Solution: Purchase table

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська