Question: ****C++**** The exercise is to create a Dungeons and Dragons character generator using strings, arrays, random number generation, and the call get.line(). The lines that

****C++****

The exercise is to create a Dungeons and Dragons character generator using strings, arrays, random number generation, and the call get.line().

The lines that MUST be included are:

string ChooseRace(); string ChooseAlignment(); string ChooseBehavior(); int RangeRand(int min, int max); string PickStat();

The races include: Human, Elf, Orc, Professor, and Dwarf

The alignments are: Lawful, Neutral, and Chaotic

The behaviors are: Evil, Neutral, and Good

The stat categories are: Health, Strength, Dexterity, Intelligence, Charisma, Wisdom.

The stats go from 6 to 18 inclusive. The highest (18) is special. If you roll an 18 (you chose 18 at random) the character gets a special massive boost which comes in the form of a number between 0 and 100 inclusive. Because of this, your function returns a string - not a number.

Sample Output:

Enter character's name - use "quit" to exit: Enter character's name - use "quit" to exit: Enter character's name - use "quit" to exit: Hector the Horrible Hector the Horrible (Elf) is Neutral alignment and Neutral behavior Health: 15 Strength: 8 Dexterity: 13 Intelligence: 7 Charisma: 16 Wisdom: 6

At the beginning of this, if you enter nothing, it should basically skip over that and resend the message.

The only includes that should be needed are

#include  #include  #include  #include 

I am extremely confused on how to put all of this together, please try to explain what you do. Any help will be much appreciated!!!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!