Question
USING VBA EXCEL AND OPTION EXPLICIT RPGs are role playing games, like Zelda, and Final Fantasy. RPG characters often have a class, like fighter, thief,
USING VBA EXCEL AND OPTION EXPLICIT
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.
Theres a tip on adding a Run button to a worksheet.
This one uses If statements, like the animal sounds example.
1 Character class: fighter 2 fighter, thief, or wizard 4 Base attribute scores 5 Strength: 7 Stealth: 4 4 7 Magic: Run 1 Character class: fighter 2 fighter, thief, or wizard 4 Base attribute scores 5 Strength: 7 Stealth: 4 4 7 Magic: RunStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started