practical-2004/
Question 3.
The manager of a company wants to analyse the machine usage from the records to find the
utilization of the machine. He wants to know how long each user used the machine. When the
user wants to use the machine he must login to the machine and after finishing the work he
must log off the machine.
Each log record consists of:
User identification number.
Login time and date.
Logout time and date.
Time consists of:
Hours
Minutes
Date consists of:
Day
Month
You may assume all logins and logouts are in the same year and there are 100 users
at the most. The time format is 24 hour machine hours and minutes.
Design a program:
(a) To find the duration for which each user has logged. Output all records along with the
duration in hours (format hours: minutes).
(b) Output the record of the user who logged for the longest duration. You may assume that
no user will login for more than 48 hours.
Answers
Answered by
0
Answer:
PLZZZZZZ right one by one. I wouldn't understand.
Explanation:
MARK AS BRAINLIST.
Answered by
0
PLZZZZ write one by one
I can’t understand
Please mark as brainliest
I can’t understand
Please mark as brainliest
Similar questions