The program should allow the user to customize two (2) characters, use objects to create the two characters. The program should allow the user to customize the following characteristics: Class, Weapon, and Skill. Use the functions declared within the class to customize the mentioned parameters. Use user defined functions, for example setClass(), setWeapon, and setSkill. · For class the user may choose from Knight, Wizard, or Archer. · For weapon the user may choose from Sword, Wand, and Bow. · For skill the user may choose from Bash, Fire Ball, and Arrow Charge. After customizing the two characters, a summary of the created characters must be printed. All invalid inputs must prompt the user that the input was invalid and should not terminate the program. You may either repeat the process or repeat where the invalid input was made.
Using OOP and functions, create a
The program should allow the user to customize two (2) characters, use objects to create the two characters.
The program should allow the user to customize the following characteristics: Class, Weapon, and Skill. Use the functions declared within the class to customize the mentioned parameters. Use user defined functions, for example setClass(), setWeapon, and setSkill.
· For class the user may choose from Knight, Wizard, or Archer.
· For weapon the user may choose from Sword, Wand, and Bow.
· For skill the user may choose from Bash, Fire Ball, and Arrow Charge.
After customizing the two characters, a summary of the created characters must be printed.
All invalid inputs must prompt the user that the input was invalid and should not terminate the program. You may either repeat the process or repeat where the invalid input was made.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images