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
(Only ask input for chest once and display result to user)
 I am supposed to make a code that creates a bool
array that stores 5 elements. (1-5) Then I am supposed to set
only ask once for user input and display results

14 Mod 3 2 1 2 (Global Scope Mod32.cpp: This file contains the main function. Program execution begins and ends there. // 4 #include 8 using namespace std; Bint main() bool boolArray[5] = { false }; boolArray[index++]

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!