Goatercise

Challenge
No

Write a program to work out how many calories a goaty workout will burn. You can download a start worksheet. It looks like this:

Start

Users fill in the green cells, and click the button. They see the calories their workout would burn. Here's how much toning exercises burn per rep:

Exercise Calories for one rep
Butt heads 20
Foreleg curl 14
Angst 27

Calories for a toning exercise are the number of sets, times the reps per set, times the value above, like 20.

Here's the burn for cardio:

Exercise Calories per minute
Treadmill 180
Unicycle 320
Worried pacing 90

Here's some output:

Output

Some more:

Output

Upload your solution to this site, not to Moodle. The usual coding standards apply.

Attachments
Where referenced