0% found this document useful (0 votes)
41 views2 pages

University Resource Management System

Uploaded by

saadalimubarack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

University Resource Management System

Uploaded by

saadalimubarack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Institute of Space & Technology

KICSIT CAMPUS, Kahuta

Course: Visual Programming


Assignment 1

Note: Submit your assignment in pdf format. Attach screenshots of console for each code. The
code must not be plagiarized.

University Resource Management System


You have been tasked with building a resource management system for a university. The system
will help the administration manage resources like courses, students, library books, faculty, and
labs. The system needs to support a variety of functionalities, including tracking students enrolled
in different courses, managing books borrowed from the library, organizing faculty schedules, and
handling lab resources for practical classes.

Collections Required:

 ArrayList for dynamically handling mixed data (e.g., course names, codes, credits).
 List<T> for maintaining lists with type constraints (e.g., lists of students and faculty).
 Dictionary<TKey, TValue> for quick lookup scenarios (e.g., student details and lab
resources).
 Stack<T> to manage the library’s book borrowing and returning system.
 Queue<T> for handling faculty schedules in sequential order

Courses and Students (ArrayList and List):


The university offers multiple courses. Each course has a unique code, title, and credit hours.
Students can enroll in multiple courses.

ArrayList: Create an ArrayList called Courses to store course information dynamically. Each course
entry should be a custom object or a tuple with properties like CourseCode, CourseTitle, and
Credits. Add five courses to the Courses ArrayList and display them.

List of Students: Create a List<string> to hold the names of students enrolled in each [Link] each
course, populate the List with at least five students. Display the list of students enrolled in each course.
Allow the system to check if a student is already enrolled in a course before adding them. If the student
is already enrolled, display a message.

Library Book Management (Dictionary and Stack):


The library lends out books to students. Each book has a title, author, and a unique ID.
Institute of Space & Technology
KICSIT CAMPUS, Kahuta

Course: Visual Programming


Assignment 1

Dictionary: Use a Dictionary<int, string> where the key is the BookID (integer) and the
value is the BookTitle (string).Add five books to the dictionary and display all available books.

Stack (Book Borrowing): For each student, create a Stack<string> to manage borrowed books, where
each book title is pushed onto the stack when borrowed and popped off when [Link] students
to borrow up to three books at a [Link] the stack of borrowed books for each student. Ensure that
a book cannot be borrowed if it’s already checked out, and handle returns by removing books from the
student’s stack.

Faculty Scheduling (Queue):


Faculty members have designated time slots for lectures and office hours. The administration
needs to manage faculty schedules so that each faculty member’s sessions are handled in the
correct order.

Queue: Create a Queue<string> for each faculty member’s daily [Link] five time slots for each
faculty member (e.g., "10:00 AM - Class", "11:00 AM - Office Hours"). Allow the system to process each
time slot sequentially, showing the next available time slot. Ensure that when a session ends, it’s removed
from the queue and the next session is displayed. If there are no sessions left, display a message indicating
that the faculty member is free.

Overall Reports and Summary:


Create methods to display an overall summary of the university resources:

1. List of all courses and enrolled students.


2. Library books and their availability status.
3. Faculty schedules with the next available session.
4. Lab resources with their reservation statuses.

You might also like