Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 345 Weeks Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 15 Jun 2017 My Price 7.00

You run four computer labs

You run four computer labs. Each lab contains computer stations that are numbered as shown in the table below:

Each user has a unique five-digit ID number. Whenever a user logs on, the user’s ID, lab number, and the computer station number are transmitted to your system. For example, if user 49193 logs onto station 2 in lab 3, then your system receives (49193, 2, 3) as input data. Similarly, when a user logs off a station, then your system receives the lab number and computer station number.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 of lab 4, then your system might display the following

Create a menu that allows the administrator to simulate the transmission of information by manually typing in the login or 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 a dynamic 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.

 

 

Answers

(8)
Status NEW Posted 15 Jun 2017 10:06 AM My Price 7.00

-----------

Attachments

1497521363-1850352_2_636330034349830667_Capture.PNG
file 1497521411-Answer.docx preview (1732 words )
#-----------inc-----------lud-----------e &-----------amp-----------;lt-----------;io-----------str-----------eam-----------&am-----------p;g-----------t; ----------- #i-----------ncl-----------ude----------- &a-----------mp;-----------lt;-----------iom-----------ani-----------p&a-----------mp;-----------gt;----------- t-----------ype-----------def----------- in-----------t* -----------Ptr-----------; -----------usi-----------ng -----------nam-----------esp-----------ace----------- st-----------d; ----------- ----------- -----------voi-----------d i-----------nit-----------(Pt-----------r l-----------abs-----------[],----------- in-----------t n-----------um_-----------sta-----------tio-----------ns[-----------], -----------int----------- nu-----------mbe-----------r_u-----------sed-----------); ----------- ----------- -----------voi-----------d m-----------enu-----------(Pt-----------r l-----------abs-----------[],----------- in-----------t n-----------um_-----------sta-----------tio-----------ns[-----------], -----------int----------- nu-----------mbe-----------r_u-----------sed-----------); ----------- ----------- -----------/*S-----------TAT-----------ION-----------*/ ----------- ----------- -----------voi-----------d t-----------rac-----------kDi-----------spl-----------ay(-----------Ptr----------- la-----------bs[-----------], -----------int----------- nu-----------m_s-----------tat-----------ion-----------s[]-----------, i-----------nt -----------num-----------ber-----------_us-----------ed)-----------; ----------- ----------- v-----------oid----------- de-----------let-----------Arr-----------ay(-----------Ptr----------- la-----------bs[-----------], -----------int----------- nu-----------m_s-----------tat-----------ion-----------s[]-----------, i-----------nt -----------num-----------ber-----------_us-----------ed)-----------; ----------- ----------- v-----------oid----------- lo-----------gOn-----------(Pt-----------r l-----------abs-----------[])-----------;
Not Rated(0)