2Prepare a class diagram for each group of classes Prepare a class diagram for each group of classes. Add at least 10 relationships (associations and generalizations) to each diagram. Use association names and association end name where needed. Also use qualified associations and show multiplicity. You do not need to show attributes or operations. As you prepare the diagrams, you may add classes. Be sure to explain your diagrams.School, playground, principal, school board, classroom, book, student, teacher, cafeteria, restroom, computer, desk, chair, ruler, door, swingAutomobile, engine, wheel, brake light, door, battery, muffler, tail pipeCastle, moat, drawbridge, tower, ghost, stairs, dungeon, floor, corridor, room, window, stone, lord, lady, cook
3Add at least 10 attributes and at least 5 methods to each of the class diagrams you prepared in the previous question (question 1)
4Prepare a written description for the class diagram from question 3 Prepare a class diagram from the object diagram in the following figure:Prepare a written description for the class diagram from question 3France:Countryname=“France”BordersBordersBelgium:Conuntryname=“Belguim”Spain:Countryname=“Spain”
5Problem # 1A simple digital watch has a display and two buttons to set it, the A button and the B button. The watch has two modes of operation, display time and set time.In the display time mode, the watch displays hours and minutes, separated by a flashing colon.The set time mode has two submodes, set hours and set minutes. The A button selects modes. Each time it is pressed, the mode advances in the sequence: display, set hours, set minutes, display, etc.Within the submodes, the B button advances the hours or minutes once each time it is pressed. Buttons must be released before they can generate another event.Prepare a state diagram of the watch.
6Solution of Problem # 1 DigitalWatch A A A B / advance hour Set hoursdo / show hoursAASet minutesdo / show minutesDisplay timedo / show hours and minutesB / advance hourB / advance minute
7Assignment Consider a physical bookstore, such as in a shopping mall List three actors that are involved in the design of a checkout system. Explain the relevance of each actorOne use case is the purchase of item. Take the perspective of a customer and list another use case at a comparable level of abstraction. Summarize the purpose of each use case with a sentence.Prepare a use case diagram for physical bookstore checkout systemPrepare a normal scenario for each use case. Remember that a scenario is an example, and need not exercise all functionality of the use casePrepare an exception scenario for each use casePrepare a sequence diagram corresponding to each scenario in (d)