70 likes | 189 Views
Exercise 7 OOD. Exercise – Cohesion. Write a code that explore the following cohesion levels: Coincidental, Logical, Temporal, Procedural, Communicational, Functional , Informational. Exercise – Cohesion (Cont’d). Module 1: Manage display of Flights timing.
E N D
Exercise 7 OOD
Exercise – Cohesion • Write a code that explore the following cohesion levels: • Coincidental, • Logical, • Temporal, • Procedural, • Communicational, • Functional , • Informational.
Exercise – Cohesion (Cont’d) Module 1:Manage display of Flights timing. Module 2:Activate printer.Disable alarm. Convert parameter from binary to ASCII.Clear Display. Module 4:Get next Arriving Flight Identification, and update arrival record. Module 3:Calculate arrival time, and display it on Display Board. Module 6:Compute:Arrival Time, Or Departure Time, OrDelay Time, Or Total Delay Time. Module 5:Reset Display Board, Clear Input registers, Send ‘Ready’ signal. Module 7:Display: Arrival Time, Or Departure Time, OrDelay Time, Or Total Delay Time.
Exercise – Cohesion (Cont’d) • Module1: Functional, • Module2: Coincidental, • Module3: Communicational, • Module4: Procedural, • Module5: Temporal, • Module6: Logical, • Module7: Logical , • From a final exam…
Exercise – Coupling • Write a code that explore the following coupling levels: • Content, • Common, • Control, • Stamp , • Data.
From Encapsulation To Info. Hiding • What is the difference between Data encapsulation and Abstract data type? • What is the difference between abstraction and information hiding?
Exercise 7 OOD The End