Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Classify each of the following statements as an architectural (A) ordetailed (D)

ID: 3690311 • Letter: C

Question

Classify each of the following statements as an architectural (A) ordetailed (D) design specication:

(a) The nd() operation must use a binary search algorithm.

(b) The program must separate the user interface code from the rest ofthe code.

(c) The client must complete processing in no more than one secondand the server must complete processing in no more than half a second.

(d) The Register class must maintain clients in a hash table.

(e) All utilities in the graphics library must be thread-safe.

(f) All Car objects must register themselves with the Clock object, and the Clock object will notify the Car objects when a second haspassed.

(g) All observers of the Clock class must implement the ClockUser interface.

Explanation / Answer

(a) The nd() operation must use a binary search algorithm. ---- (DESIGN SPECIFICATION as it depends on implementation and use of algorithm)

(b) The program must separate the user interface code from the rest of the code. ---- (ARCHITECTURALSPECIFICATION as it indicates the structural abstract of the program)

(c) The client must complete processing in no more than one second and the server must complete processing in no more than half a second. ---- (ARCHITECTURALSPECIFICATION as the basic purpose and strategy is to be framed)

(d) The Register class must maintain clients in a hash table. ----(ARCHITECTURALSPECIFICATION as it is a structural point of development)

(e) All utilities in the graphics library must be thread-safe. -----(ARCHITECTURALSPECIFICATION as it depicts what must be done but not how it is to be done)

(f) All Car objects must register themselves with the Clock object, and the Clock object will notify the Car objects when a second has passed. ----(DESIGN SPECIFICATION as it shows the implementation of how it should work)

(g) All observers of the Clock class must implement the ClockUser interface. ----(DESIGN SPECIFICATION as it shows the implementation and practice)