1. Please apply composite pattern to design and implement the File Management System. The structure of files and folders in the File Management System should be hierarchically organized like the following: Root Folder File_1 File_2 Folder_A File_3 File_4 1.1 Please apply composite pattern to design the system, and document the design with UML class diagram (20 points) 1.2 Please use C++ AND another OOPL to implement the system (80 points)
Added by Richard D.
Close
Step 1
Designing the UML class diagram for the File Management System using the composite pattern: The composite pattern allows us to treat individual objects and groups of objects uniformly. In the case of the File Management System, we can treat both files and folders Show more…
Show all steps
Your feedback will help us improve your experience
Danielle Ashley and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
FIGURE 2.4: A COMPARISON OF THE OO, UML, AND ER MODELS Object Representation UML Class Diagram ER Model INVOICE CUSTOMER generates +belongs to CUSTOMER generates INVOICE INVOICE INV_DATE INV_NUMBER INV_SHIP_DATE INV_TOTAL INV_NUMBER: Integer INV_DATE: Date INV_SHIP_DATE: Date INV_TOTAL: Double IN_NUMBER INV_DATE INV_SHIP_DATE IN_TOTAL 1.1 0.1 1.1 CUSTOMER +belongs to LINE LINE LINE
Supreeta N.
Write the class definition for an Employee using the following UML: Employee -empName: String -empSurname: String -empNumber: String -empSalary: double +Employee() +Employee(n: String, sn: String, num: String) +setEmpName (nm: String): void +setEmpSurname (snm: String): void +setEmpNumber (num: String): void +setEmpSalary (sal: double): void +getEmpName(): String +getEmpSurname(): String +getEmpNumber(): String +getEmpSalary(): double +increaseSalary(amt: double): void +toString(): String The argument of the increaseSalary() method is a value representing the percentage increase required. Now write another class that contains a main method in which you use both constructors to construct 2 Employee objects. Use the Scanner class to enter values for all the instance variables. Now call the appropriate method/s to display the property values for each object. Increase the salary of each object by 10% and 15% respectively (use the Scanner class for input). Now display the property values for each object again.
Willis J.
User Registration Page Database Main Page Register (Input) Verify input Verification Res A [Valid Input] Add New User Redirection [Non Valid Input] - Display Error
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD