Question: can someone help me build this code using visual stuido and also using c++ Instructions Develop the code to solve the problem statement below. Follow
Instructions Develop the code to solve the problem statement below. Follow these style guidelines as you develop the code, use commenting to describe your code, practice debugging if you run into errors, and submit your final source code. Problem Statement: You are designing a game that has five treasure chests located on a map and only the fifth chest contains the token required to level up. You want to track which chest the player has found and opened. Create a Boolean array that stores five elements, and initialize them all to false. Next, ask the user to input which chest he or she just found (1-5). Using the input, use pointers to update the array to true for the chest just found. Then print out to the player if he or she levels up based on the Boolean of the fifth chest. Instructions Develop the code to solve the problem statement below. Follow these style guidelines as you develop the code, use commenting to describe your code, practice debugging if you run into errors, and submit your final source code. Problem Statement: You are designing a game that has five treasure chests located on a map and only the fifth chest contains the token required to level up. You want to track which chest the player has found and opened. Create a Boolean array that stores five elements, and initialize them all to false. Next, ask the user to input which chest he or she just found (1-5). Using the input, use pointers to update the array to true for the chest just found. Then print out to the player if he or she levels up based on the Boolean of the fifth chest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
