Answered step by step
Verified Expert Solution
Link Copied!

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

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

2 What type of information can you obtain using the Internet?

Answered: 1 week ago

Question

What do you mean by dual mode operation?

Answered: 1 week ago

Question

Explain the difference between `==` and `===` in JavaScript.

Answered: 1 week ago