Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Program 02

Draw the use case diagram and specify the role of each actor. Also state
the precondition, postcondition and function of use case.

Used case diagram

A used case is a written description of how users will perform tasks on your website. It outlines, from
a user’s point of view, a system’s behavior as it responds to a request. Each use case is a represented as
a sequence of simple steps, beginning with a user’s goal and ending when that goal is fulfilled.

Fig 2.1 use case diagram for Restaurant Management System


Program 03

Identify the classes. Classify them as strong and weak classes and draw
the class diagram.

Class diagram
A class diagram is a type of diagram used in software engineering and object-oriented modeling to is
usually represent the structure and relationships of classes within a system. It illustrates the static
structure of a system by depicting classes, their attributes, methods, and the relationships between them.
Each class is typically represented as a box with three compartments: the top compartment contains the
class name, the middle compartment lists the attributes (properties or data fields) of the class, and the
bottom compartment shows the methods (functions or operations) that the class can perform. Arrows
connecting classes indicate associations, such as inheritance (subclassing) or dependencies, conveying
how classes interact with each other. Class diagrams are fundamental tools for designing and
understanding software systems, facilitating communication among developers, stakeholders, and
designers by providing a visual blueprint of the system's architecture.

Fig 3.1 Class diagram of Restaurant Management System

You might also like