Write a computer program that could be used to track, by lab, which user is logg
ID: 3662413 • Letter: W
Question
Write a computer program that could be used to track, by lab, which user is logged onto which computer. For example, if user 49193 is logged into station 2 in lab 3 and user 99577 is logged into station 1 oflab 4, then your system might display the following:LabNumberComputer Stations11: empty 2: empty 3: empty 4: empty 5: empty11: empty 2: empty 3: empty 4: empty 5: empty 6: empty31: empty 2: 49193 3: empty 4: empty41: 99577 2: empty 3: empty
Create a menu that allows the administrator to stimulate the transmission of information by
manually typing in the login of logoff data. Whenever someone logs in or out, the display should
be updated. Also write a search option
so that the administrator can type in a user ID and the
system will output what lab and station number that user is logged into, or “None” if the user ID
is not logged into any computer station.
You should use a fixed array of length 4 for the labs. Each
array entry points to an
array that
stores the user login information for each respective computer station.
The structure is shown in the figure below. This structure is sometimes called a ragged array
since the columns are of unequal length.
You may ass
ume that the number of computers in each
lab is fixed and specified during compilation time.