Dungeons and Dragons You have been asked to create a Dungeon and Dragons style game. They have asked you to Design a class called Character that will hold the following information: Name Age Player’s...

Dungeons and Dragons



You have been asked to create a Dungeon and Dragons style game. They have asked you to Design a class called Character that will hold the following information:



  • Name

  • Age

  • Player’s Name

  • Level

  • Gender

  • Race

  • Class (i.e. fighter, wizard)


Then create a program that will allow a user to add information into this class and then the program puts the information out. Just to demonstrate the functionality.



Note - please keep this program for use later in the course.








Upping Your Game

Using the Dungeon and Dragons style game program that you developed previously, add/altering the following functionality:



  • Add a sub/child class called Fighter. The fighter inherits the base class called character and adds these inputs:

    • Deity

    • Divine Spell -1 (a text entry)

    • Divine Spell -2 (a text entry)

    • Type of Healing (Spell, Hands-on, Item)



  • Add a sub/child class called Wizard. The wizard inherits the base class called character and adds these inputs:

    • Source of Power (Magic, Nature, Demonic)

    • Arcane Spell -1 (a text entry)

    • Arcane Spell 2 (a text entry)

    • Then create a program that will allow a user to add information into this class and then the program puts the information out. Just to demonstrate the functionality.




Your program must have the following:



  • An introductory statement that allows the user to understand what type of program they are running.

  • Variable declarations

  • User input acceptance

  • Proper mathematical calculations

  • Proper output

  • You must provide the following:

    • Your code

    • Screenshot of your fully functioning program with inputs/outputs




Jun 02, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here