CS3 Graded Exercise
•      Create an OOP diagram for the human body (see example image below)
•      Your diagram must be at least 4 levels deep (like example) and must contain at least 15 objects
•      Indicate the states/attributes of the object and the behaviors/functions they posses
•      Be mindful of which object must performs the function. For instance, in the example below the function
       eat is performed by the mouth since it involves both the teeth and tongue
•      Indicate the return types and parameters of your functions (if any)
•      Indicate the default values of your objects (if any)
•      You can submit it handwritten or printed out
•      This is due on the meeting after Humanities Week
•      This exercise is individual

Example:


                                                                         Body
                                                             CardiovascularSystem cs
                                                               DigestiveSystem ds




                                        DigestiveSystem
                                                                                       CardiovascularSystem
                                         Mouth mouth
                                                                                            Hear heart
                                 Intestine small_intestine
                                                                                           Blood blood
                                 Intestine large_intestine




                 Mouth
             Tooth[] teeth                                                                               Heart
                                                             Intestine
            Tongue tongue                                                                          int heart_rate
                                                             int length
           void drink(Drink d)                                                                      void pump()
            void eat(Food f)




                                                                                                         Blood
                             Tooth                                                                   int amount
                         String color                                                            int red_blood_cells
                                                                                                int white_blood_cells




                           Tongue
                           int size
                      void lick(Food f)

Cs q2 ex1

  • 1.
    CS3 Graded Exercise • Create an OOP diagram for the human body (see example image below) • Your diagram must be at least 4 levels deep (like example) and must contain at least 15 objects • Indicate the states/attributes of the object and the behaviors/functions they posses • Be mindful of which object must performs the function. For instance, in the example below the function eat is performed by the mouth since it involves both the teeth and tongue • Indicate the return types and parameters of your functions (if any) • Indicate the default values of your objects (if any) • You can submit it handwritten or printed out • This is due on the meeting after Humanities Week • This exercise is individual Example: Body CardiovascularSystem cs DigestiveSystem ds DigestiveSystem CardiovascularSystem Mouth mouth Hear heart Intestine small_intestine Blood blood Intestine large_intestine Mouth Tooth[] teeth Heart Intestine Tongue tongue int heart_rate int length void drink(Drink d) void pump() void eat(Food f) Blood Tooth int amount String color int red_blood_cells int white_blood_cells Tongue int size void lick(Food f)