Курс по Raku / Основи / Повече за типовете / Асоциативни типове данни / Exercises

Таблица за покупки

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

Навигация в курса

Решение: Замяна с антоними   |   Решение: Таблица за покупки