Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . Consider a change in requirements in the Registration lab work from previous weeks: each unit has a unit coordinator and the unit coordinator
Consider a change in requirements in the Registration lab work from previous weeks: each unit has a unit coordinator and the unit coordinators details include: coordinators name, room number, telephone number and email.
Reflect on the redesign you would need to do to cater for new requirements for the Registration codebase. How would you futureproof your design so that any new code that you write will introduce additional functionality to cater for new requirements and not keep on modifying existing code? OpenClosed principle Note that in the past, you were given an example of what output the program should do What if the output format was changed? Would you have to go back and change existing classes? Note that formatting concerns are part of the View in the ModelViewController pattern MVC discussed in the past. The data classes are part of the Model. Do not make the Model dependent on the View.
Ideally, to change the output format should only require a changed main programclient code and not a change to the data classes. What about a change in the input format? For example, how would you cater for the input format shown at the end of the document? You will be using the first version of the input format for the rest of ict
You have a free hand in redesigning all the classes in the Registration codebase to attempt to futureproof them. Later, you will be learning from your successes and mistakes when you discover the amount of redesigning and coding that you must do to cater for expandedchanging requirements, if you do not design well and implement that chosen design carefully.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started