Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started