Shopping list

Write an app that shows a shopping list for a dinner party on the planet Zryx. It starts like this:

Start

The number of beings must be given. It must be greater than zero. Show appropriate error messages.

Show a shopping list, based on these recipes.

Ingredient For squalonk For grutise
Thurp 2 kg 1 kg
Mooontl 2 g 2 g
Iiitlr 3 2
Ooontoot 4 g 2 g
Frfrif 2 g 1 g

For example:

List

Submit the URL of your solution.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)

Referenced in: