Question: I am working on a project for class using C++ and having a hard time figuring out how to make it do what i want

I am working on a project for class using C++ and having a hard time figuring out how to make it do what i want it to do. what i what it ti do is to list the armor and gear you can have based on what the random number generator gave you for stats, when you open the store_things varable, below should be the affected code block, it you need the entire code let me know it is a madlibs chose your own story generator so it is up to 200 lines of code at the moment, and im still coding as i have not coded in slaying the monster varable yet.

string Heavy_armor, medium_armor, light_armor, Sword, Axe, Bow, magic_staff, war_hammer, magic_book;

string verb, color, ride, Country, campsite, monster, food, cooking_device, adjective, store_things, tie;

//random number generator srand((unsigned)time(0)); int random_number_one = (rand() % 50) + 1; int random_number_two = (rand() % 50) + 1; int random_number_three = (rand() % 50) + 1; int random_number_four = (rand() % 50) + 1;

// Variables for stats double strength = random_number_one; double magic = random_number_two; double intelligence = random_number_three; double stamina = random_number_four; // what you can use based on random stats Heavy_armor, Axe, war_hammer = (strength >= 40); medium_armor, Sword, Bow = (strength >= 25); light_armor = (strength > 25); magic_staff = (magic >= 25); magic_book = (intelligence >= 35 && magic >= 35);

cout << " You open the " << store_things << " to find " << endl;

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!