studiram u inostranstvu i tek sam poceo odma su nam dali domaci ovog tipa a ja ih nista ne kontam moli sve one koji mogu da mi pomognu oko ovog problema jer nerazumem nista. Izvinjavam se sto ga nisam prveo na Srpski ali nadam se da svi znate Engleski. Malo sam u frci sa vremenom moram da ga predam u ponedeljak zato se i obracam vama za pomoc. Unapred zahvalan
Assignment 5
COMPUTER LAB
Write a program to observe the students for using computers in lab.
Each computer has a UNIQUE computer_id (string). There can be maximum 15 computers in lab.
There must be three lists in your homework:
- First one contains the computer ids, currently aren’t used by a student (EMPTY COMPUTERS). This list must be sorted according to the computer ids. (String)
- Second one contains the computer ids, currently are used by a student (FULL COMPUTERS). This list must be sorted according to the computer ids. (String)
Third one contains the student numbers.
In your program, define a menu as follows:
1- ADD A NEW COMPUTER
2 - DELETE A COMPUTER
3 - USE A COMPUTER
4 - UNUSE A COMPUTER
5 - LIST ALL COMPUTERS
6 - EXIT
Ø ADD A NEW COMPUTER: Take computer id from the user and then add it to the first list. (IMMEDIATELY place the new item into correct position of the list)
Ø DELETE A COMPUTER: Take computer id from the user and delete it from the first list. We can’t delete a computer used by a student.
Ø
Ø USE A COMPUTER: Take computer id and student number from the user.
Ø UNUSE A COMPUTER: Take computer id only from the user.
Ø LIST ALL COMPUTERS: List all computers (empty or full) to the user. The list must be sorted according to the computer