RPGs are role playing games, like Zelda, and Final Fantasy. RPG characters often have a class, like fighter, thief, or wizard.
Write a program that shows the base attributes of character classes. The user types in a class – fighter, thief, or wizard – and the program shows the attribute scores for strength, stealth, and magic. For example:
Use this table:
Class | Strength | Stealth | Magic |
Fighter | 7 | 4 | 4 |
Thief | 4 | 7 | 4 |
Wizard | 4 | 4 | 7 |
As always: comments, good variable names, etc.
Hints:
- Check out the tip on configuring Excel.
- There's a tip on adding a Run button to a worksheet.
- This one uses
If
statements, like the animal sounds example.
Upload your Excel file.
(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)