By DePaul Dimadis
Choose your prefered Language: greek_flag uk_flag

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
27 1330 1337 27
14 1422 1435 52
27 1407 1502 95
27 1507 1514 67
14 1503 1509 57
27 2117 2233 65



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)