Question: C++ Treasure Map - Implement a two dimensional trrasure map Requesting Map Values 1) Request a map size between 5 and 9 inclusive. - Validate
Requesting Map Values 1) Request a map size between 5 and 9 inclusive. - Validate the map size with a loop. 2) Request row/column coordinates for the treasure location. - Validate X coordinates with a loop. x must be visible on the map The Treasure Map 1) Display the map using a nested loop (see example). -Treasure location is marked with an 'X'. - Blank coordinates are be marked with a- - Row and column coordinate labels are displayed Example: Input Request and Map Display input is bolded and italici Enter a map size between 5 and 9 inclusive: 9 Initial location of the treasure (row column): 43 0 1 2 3 456768 Hints: Note that coordinates zange trom o to map size -1 Note that there aze map size rows and columns so that coozdinate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
