Looking for 12-FILS-L-A2-S1: Object Oriented Programming (Seria E - 2024) test answers and solutions? Browse our comprehensive collection of verified answers for 12-FILS-L-A2-S1: Object Oriented Programming (Seria E - 2024) at archive.curs.upb.ro.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Simulate a smart home system. Sensors send sensor events to a central hub. Each sensor event has a timestamp, severity, type and location. Notification worker threads consume events from the central hub. If the sensor event severity is low the event is logged (written on disk), if the severity is high the notification worker raises an alarm ( prints in the error console). In main test the program with 5 sensors and 3 workers. Solve the concurrent access to shared resources using synchronization, wait and notify or explicit locks. Sensors should continuously produce random events.
A photo manager software allows you to keep your photos ordered and easily accessible. Each photo has a name, date and a score (1-5). Photos can be organized in folders and folders can be organized in albums, each album having a name and tags.
Also given the collection of albums implement the methods that return:
-Map<Integer, Set<Photo>> - set of photos for each score (1,2,3,4,5).
-Map<String, List<Photo>> - list of photos sorted by their score for each album name.
You can use classes from the Collection framework in Java. The grade takes into consideration the proper use of generics, immutable classes, and the proper choice of the collection classes.
Implement all classes and upload only the Java files as a zip archive. Make sure to correctly implement (if required) Comparable interface, hashCode and equals methods.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!