Question: Write / Copy and Paste your final code from compiler in text format and also paste snapshots of output Q2. GPS coordinates include latitude and
Write / Copy and Paste your final code from compiler in text format and also paste snapshots of output
Q2. GPS coordinates include latitude and longitude of a particular location e.g coordinate 33.56 is latitude and 73.07 is longitude of Foundation University. Suppose two persons needs to travel from point 1 to point 5 using a path. The following table contains the longitudes and latitude of Coordinates involved in those paths. (25 Marks) Person Coordinates Longitude Latitude 1 ci 111 last 2 digits of reg no C2 112 last 2 digits of reg no C3 113 last 2 digits of reg no C4 114 last 2 digits of reg no C5 115 last 2 digits of reg no 2 ci C2 C3 C4 C5 221 222 223 224 225 last 2 digits of reg no + 1 last 2 digits of reg no + 1 last 2 digits of reg no + 1 last 2 digits of reg no + 1 last 2 digits of reg no + 1 Now you are required to write a C++ program using structures within structures and arrays of structures. 1. You should initialize the required values at declaration. 2. Your program should display the coordinates for all points for both persons separately using a user defined function. The output of program should be like (1) - Cordinates for Person1 Coordinate 1 88) Coordinate 2 (1 88) Coordinate 3 (1 , 88) Coordinate 4 (1 88 Coordinate 5 (1 88) Cordinates for Person2 Coordinate 1 (1 89) Coordinate 2 (1 89 Coordinate 3 (1 89) Coordinate 4 (1 89 Coordinate 5 (1 89
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
