Challenge
No
Write a program that computes how many experience points (XP) a player earns in a game. They earn XP from killing things like rats, and zombies. You can download this starting workbook.
Here's the start screen:
The user enters numbers in the cells, and clicks the button. Here's some sample output:
Here's what each critter is worth:
Critter | XP each |
---|---|
Bat | 5 |
Rat | 7 |
Wolf | 20 |
Zombie | 25 |
Goblin | 30 |
Hobgoblin | 50 |
Upload your solution. The usual coding standards apply.
If you were logged in as a student, you could submit a solution to this exercise.
Where referenced