Question: C++ Can you give answer like the output example thank you EC Treasure Map (Nested Loop) Mailings Review View reasure Hap a) Request a map

C++
Can you give answer like the output example thank you  C++ Can you give answer like the output example thank you
EC Treasure Map (Nested Loop) Mailings Review View reasure Hap a) Request
a map aize between 5 and verity size with a validation l0op.

EC Treasure Map (Nested Loop) Mailings Review View reasure Hap a) Request a map aize between 5 and verity size with a validation l0op. 1t size is Lcorrest, output an error and request new values Request a starting row/colunn for the treasure location on the map validate row and column to insur. that they r. within the borders the map. if values are incorrect, output an ezror and request new Iues. )Use a nested loop to display the nap (see outpot exanple) -X and Y coordinate labels should be displayed Treasure location s ould be marked with an Blank coordinates should be marked with a H d) Use a switch statenent within a while loop to diaplay menu options: 11 Update treasure coordinates trow/oo1 2) Shift X left or right. 3) Shift X up or down. 41 Exit Progran. d) If 1is selected: Request row and col umn coordinate intornation. - Validate input with an error loop (sinilar to step b Display the updated sap and enit opt ions Request a ) horizontal offset Negat&ve right. posstive left - Validate proposed location with an erzor loop. It location cannot exist on the current ap, output an error and repeat roque - Display the updated map and 40 t) If 3 is selected: Request a /+) vertical offset Negave PP Positive down :-validate proposed location witb an error loop. tt ocation cannot t on the eurrent map, report an exzor and repeat request. -Diaplay the updated map and meas option g)I It 4 is selected: -Exit the menu while loop and output ?Exiting program Hints (1) create an integes variable dinension. (2) create a global while loop with ,4, ?? the sentinel vale (3) create a switch stacenent for the nenu within the while loop (4) create the map with a neated loop using the dimenaion varsable (S) use branching rechanisms within the loop to set and update X. (6) use do/while loop struetures to validate input values

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!