To measure traffic density at road junctions, cars passing through certain time intervals are counted and the average is calculated. Measurement data includes the crossing code, the start and end time of the measurement, and the number of cars. Example:
|Crossing code||Start time||End time||Cars' amount|
Start and end times are stored as four-digit integers where the first two digits indicate the time and the next two minutes. Assume that the expiration time is always greater than the start time (i.e., no need to control when entering values).
The data are recorded in 4 unidirectional N matrices (N = known) and refer to K intersections [K, (K <= N )] is not known and K> 2 must be derived when entering the data).
Write a program in a C language that it finds, and display the average car value per minute for a specified junction, say D, whose code will be entered from the keyboard (using scanf_s). If the junction code does not exist in the data, then the message: "NO RETURN MEASURES" appears. (If scanf_s does not work, try scanf)