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
(Only ask input for chest once and display result to user)
image text in transcribed
image text in transcribed
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

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

More Books

Students also viewed these Databases questions

Question

Be able to differentiate between arbitration and mediation

Answered: 1 week ago

Question

Understand how arbitrators are credentialed and selected

Answered: 1 week ago

Question

Appreciate the advantages of arbitration

Answered: 1 week ago