Implementation: After analysing the given requirements, implement the required application: • with Object Oriented Programming style • following the rules of good programming style (e.g. adding comments, etc.) using only the material covered in M251 (and its prerequisites) Hints: • For each class, it is required to implement constructors, setters, getters, toString() method, and any other necessary method • f the user tries to do an operation that could violate the state of objects, the operation should be ignored and the application should display an error message (e.g. adding a worker to the same workshop twice, etc.) • Checking equality of any 2 objects should be done via the equals() method • There is a class that will do the main job of keep tracking of the workshops as follows: o It has one collection to store the whole data (all workshops of all product lines) o t has static methods, one for each operation happens frequently o For each adding or removing operation, a message should be displayed to the user to explain the status of the operation (i.e. if it was successful or not) Testing: After implementing the required classes, design and implement a testing class to test them as follows: Create at least 7 workshops for at least 3 product lines and add them to the collection that stores the whole data then add and remove some workers from them. • Try to violate the state of the objects and show that your code prevents all violations. • Show that the other operations that happen frequently are working fine. • At the end, the whole data should be saved into a text file and this file should be saved automatically inside the folder contains your Java project.
Implementation: After analysing the given requirements, implement the required application: • with Object Oriented Programming style • following the rules of good programming style (e.g. adding comments, etc.) using only the material covered in M251 (and its prerequisites) Hints: • For each class, it is required to implement constructors, setters, getters, toString() method, and any other necessary method • f the user tries to do an operation that could violate the state of objects, the operation should be ignored and the application should display an error message (e.g. adding a worker to the same workshop twice, etc.) • Checking equality of any 2 objects should be done via the equals() method • There is a class that will do the main job of keep tracking of the workshops as follows: o It has one collection to store the whole data (all workshops of all product lines) o t has static methods, one for each operation happens frequently o For each adding or removing operation, a message should be displayed to the user to explain the status of the operation (i.e. if it was successful or not) Testing: After implementing the required classes, design and implement a testing class to test them as follows: Create at least 7 workshops for at least 3 product lines and add them to the collection that stores the whole data then add and remove some workers from them. • Try to violate the state of the objects and show that your code prevents all violations. • Show that the other operations that happen frequently are working fine. • At the end, the whole data should be saved into a text file and this file should be saved automatically inside the folder contains your Java project.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Screenshot for the code
and the output which is testing

Transcribed Image Text:Implementation:
After analysing the given requirements, implement the required application:
with Object Oriented Programming style
following the rules of good programming style (e.g. adding comments, etc.)
using only the material covered in M251 (and its prerequisites)
Hints:
For each class, it is required to implement constructors, setters, getters, toString() method,
and any other necessary method
• If the user tries to do an operation that could violate the state of objects, the operation
should be ignored and the application should display an error message (e.g. adding a worker
to the same workshop twice, etc.)
Checking equality of any 2 objects should be done via the equals() method
There is a class that will do the main job of keep tracking of the workshops as follows:
o t has one collection to store the whole data (all workshops of all product lines)
It has static methods, one for each operation happens frequently
For each adding or removing operation, a message should be displayed to the user to
explain the status of the operation (i.e. if it was successful or not)
Testing:
After implementing the required classes, design and implement a testing class to test them as
follows:
• Create at least 7 workshops for at least 3 product lines and add them to the collection that
stores the whole data then add and remove some workers from them.
• Try to violate the state of the objects and show that your code prevents all violations.
Show that the other operations that happen frequently are working fine.
• At the end, the whole data should be saved into a text file and this file should be saved
automatically inside the folder contains your Java project.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education