Question: I am supposed to make a code that creates a bool array that stores 5 elements. (1-5) Then I am supposed to set them all

I am supposed to make a code that creates a bool array that stores 5 elements. (1-5) Then I am supposed to set them all to false. using the input the user selects, use pointers to update the bool array to true for the array for the chest found. If the chest is the correct (using ) print to player they leveled up. If it is wrong print out to user wrong chest.
The instructions are in the picture.
This is all the code I have I am stuck.
please help
I am supposed to make a code that creates a bool array
that stores 5 elements. (1-5) Then I am supposed to set them

Mod 3 2 (Global Scope) B/ Mod_3_2.cpp : This file contains the 'main' function. Program execution begins and ends there. 2. include 8. using namespace std3; 10 Bint main() 11 12 13 bool boolArray[5]- ( false ); boolArray[index++] endl; cout boolArray[1] 8. using namespace std3; 10 Bint main() 11 12 13 bool boolArray[5]- ( false ); boolArray[index++] endl; cout boolArray[1]

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!