(Solved by Humans)-A number of user can log into a server machine at any point of

Discipline:

Type of Paper:

Academic Level: Undergrad. (yrs 3-4)

Paper Format: APA

Pages: 5 Words: 1375

Question

A number of user can log into a server machine at any point of time. Given the system logs of a server in a file, and list of users and a time, develop an algorithm and write a C++ code to check if the users were logged in the server during the specified time. Server log files will contain stream of characters with details such as user name of the person, log in time (separated by ':') and log off time (separated by ':'). If the user was loggined in during the time specified then print ?Logged in? and print ?Not logged in? otherwise. A delimiter '$' is used to separate every field and reord of user in the input file. Login time details is given in 24 hour format. Login details of two users is given as follows in the file:

janaki$01:03:04$02:05:10$Meena$10:05:04$13:15:10$

The above line indicates that the first user name is janaki, login time is 01:03:04 and log off time is 02:05:10, and the second user name is Meena, log in time is 10:05:04 and log off time is 13:15:10. When a user janaki is checked for log in by time 01, 10, 25 the program must print ?Logged in? and when user checks for the user janaki for log in by time 02, 06, 25 the program must print ?Not logged in?.

Develop OOP models as required.

Hint: date and time are predefined names in g++ so don't use those names your class/struct as date and time

Input Format

Name of the file with server logs
Number of users to be checked

Name of user1 to be checked

Time to be checked for user1(separated by ':')

Name of user2 to be checked

Time to be checked for user2(separated by ':')

...

?

Name of usern to be checked

Hours to be checked

Minutes to be checked

Seconds to be checked

Output Format

For each user print either 'Logged in' or 'Not logged in'



Bypass any proctored exams 2025. Book your Exam today!
? Stressed About Your Proctored Exam? You're Not Alone. But We've Got the Solution! ?
Failing attempts? Confusing materials? Overwhelming pressure?

✨ We help you pass your exam on the FIRST TRY, no matter the platform or proctoring software.

✅ Real-time assistance
✅ 100% confidential
✅ No upfront payment—pay only after success!

? Don’t struggle alone. Join the students who are passing stress-free!
? Visit https://proctoredsolutions.com/ and never get stuck with an exam again.

? Your success is just one click away!