Question: Write a C + + program that prompts the user to enter their name and location point ( x , y ) on a map.The

Write a C++ program that prompts the user to enter their name and location point (x, y) on a map.The program will check whether the point is within the a random sized, map width of 20 and height 20 centered at 0,0 ie a(-10,-10),b(-10,10),c(10,10), d(10,-10).
-Use a function to check if the location is valid.
-Use a function to create the random sized map.
-Use if else.
-Use a global variable and/or logical operators

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 Programming Questions!