Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions