Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I ( you : ) ) have to make a very simple Google map (GPS) system, where the user

ID: 3635782 • Letter: I

Question


I ( you : ) ) have to make a very simple Google map (GPS) system, where the user is first shown the route he will take to get to desired place (this route is saved in some form of data), without graphics(using loops) for example..

* * * * *

*   

* * * * *

* * *

  

Then screen will clear.
Then he will start driving, and will have to complete journey by pressing right arrow key 5 times, then down arrow key 2 times, then right arrow key 4 times, and so on till end.

Every time the driver presses the key, a star is shown and the route he is taking is checked with the route shown earlier (which is saved in some form in another class), and if he makes a mistake, he is shown how to correct it, for example, from start if driver presses right arrow key 6 times(the program will detect the 6th extra, wrong entry) and tell user how to correct it, for eg.

"Error made, GO left one key"

There could be one class for saving route, and another for users journey.
Extensive use of OOP can be used in this by extending this right? if it can be done without using a lot of OOP , plz understand that our teacher happiness, (and my marks : ) ) is directly propotional to number of OOP concepts used.

THANKS A LOT!

TOPICS WE HAVE COVERED: CLASSES AND OBJECTS, OPERATOR OVERLOADING, INHERITANCE, POLYMORPHISM , FUNCTION OVERLOADING, FRIEND FUNCTIONSCLASSES , ARRAYS AS CLASS MEMBERS, EXCEPTION HANDLING

Explanation / Answer

Dear Friend hope this will satisfy u #include #include #include #include #include #include #include using namespace std; const char UP_ARROW = 72; const char LEFT_ARROW = 75; const char DOWN_ARROW =80; const char RIGHT_ARROW =77; class routes { public: void route1(char rr[],int space[]) { int i,j=0,k=0; for( i=0;i