logo

Crowdly

12-FILS-L-A2-S1: Object Oriented Programming (Seria E - 2024)

Шукаєте відповіді та рішення тестів для 12-FILS-L-A2-S1: Object Oriented Programming (Seria E - 2024)? Перегляньте нашу велику колекцію перевірених відповідей для 12-FILS-L-A2-S1: Object Oriented Programming (Seria E - 2024) в archive.curs.upb.ro.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

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.

Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на archive.curs.upb.ro?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!