oodm it final
TRANSCRIPT
-page
1..*
-shapes
0..*
Practical 3Aim : Prepare a class diagram for given group of classes using multiplicity, generalization,
association concepts.And add at least 5-7 attributes and 3-5 operations for particular class
[A] Page, Shape, Point, Line, Arc, Ellipse, Rectangle, Circle
Page Shape
0-Dimensional 1-Dimensional 2-Dimensional
Point Line Arc
Ellipse Rectangle Circle
+pageno : any(idl)Page
#color : string(idl)#position : any(idl)#dimension : fixed(idl)
Shape
0 Dimensional
#orientation : float(idl)
1 Dimensional
#width : fixed(idl)#height : fixed(idl)
2 Dimensional
Point#length : fixed(idl)
Line
#diameter : fixed(idl)#arcAngle : float(idl)
Arc
#orientation : float(idl)
Ellipse
#orientation : float(idl)
Rectangle#orientation : float(idl)#radius : fixed(idl)
Circle
Practical 3Aim : Prepare a class diagram for given group of classes using multiplicity,
generalization, association concepts.And add at least 5-7 attributes and 3-5 operations for particular class
[A] Page, Shape, Point, Line, Arc, Ellipse, Rectangle, Circle
#City1
#Airport0..1#Airport
1
#Departure
1..*
#Airport1 #Arriva
l
1..*
-Airline1
-Flights*
-Airline
1
-Pilots
*-Pilot2..*
-Flight
1-Flights
1
-Plane0..*
-Flight1..*
-Passenger*-Plane1
-Seat*
Ava
ilAirp
orts
leavingflights
Arrivingflights
com
pany
fligh
ts
recruits
navigates
allocated
travels
capacity
Practical 4Aim : Prepare a class diagram for given group of classes using
multiplicity, generalization, association concepts.And add at least 5-7 attributes and 3-5 operations for particular class
[A] City, Airport, Airline, Pilot, Flight, Plane, Seat, Passenger
City Airline Pilot
Airport Flight
Passenger
Plane
Seat
#name : string(idl)City
#name : string(idl)Airport #date : fixed(idl)
#flightnumber : string(idl)
Flight
#name : string(idl)Airline
#name : string(idl)Pilot
#model : string(idl)#serialnumber : string(idl)#hoursflown : float(idl)
Plane
#name : string(idl)Passenger
#location : fixed(idl)Seat
Practical 4Aim : Prepare a class diagram for given group of classes using
multiplicity, generalization, association concepts.And add at least 5-7 attributes and 3-5 operations for particular class
[A] City, Airport, Airline, Pilot, Flight, Plane, Seat, Passenger
+School
1
+Room*
-Principal1
-School1
-students*
-school1
-teachers*
*
*
*
*
1..*
*
Persons
Principal Student Teachers
SchoolBooks
Room
Restroom Staffroom Cafeteria Classroom
Playground
Schoolboard
Computer
Desk
Chair
Door
Swing
-playground0..*
1
1..2 11 0..*
1
0..*
0..*
1
1
1..*
1
1..*
Practical 5Aim : Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[A] School, Playground, Principal, School board, Classroom, Book, Student, Teacher, Restroom, Computer, Desk, Chair, Door, Swing
+admission() : boolean(idl)+maintenance() : string(idl)
+name : string(idl)+id : string(idl)+location : string(idl)+type : string(idl)+contact : long double(idl)+medium : string(idl)+level : string(idl)
School
Room
+doors : fixed(idl)+windows : fixed(idl)+chairs : fixed(idl)+fans : fixed(idl)
Restroom+desk : fixed(idl)+chairs : fixed(idl)+window : fixed(idl)+fans : fixed(idl)+ac : fixed(idl)-lights : fixed(idl)
Staffroom
+tables : fixed(idl)+chairs : fixed(idl)+doors : fixed(idl)+window : fixed(idl)+fans : fixed(idl)-lights : fixed(idl)
Cafeteria +desks : fixed(idl)+chairs : fixed(idl)+window : fixed(idl)+fans : fixed(idl)+lights : fixed(idl)+doors : fixed(idl)
Classroom
Persons
#name : string(idl)#std : fixed(idl)#rollno : string(idl)#dob : any(idl)#contact : string(idl)
Student#name : string(idl)#dob : any(idl)#contact : string(idl)#qualifications : string(idl)#timeperiod : any(idl)
Principal
#name : string(idl)#dob : any(idl)#contact : string(idl)+qualifications : string(idl)
Teachers
#name : string(idl)#author : string(idl)#type : string(idl)#version : string(idl)#category : string(idl)
Books
Practical 5Aim : Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[A] School, Playground, Principal, School board, Classroom, Book, Student, Teacher, Restroom, Computer, Desk, Chair, Door, Swing
#Auto
1
#Engine1
-LMV1
-Doors2..5
-HMV1
-Doors
2
-TW
1
-BRKL1
-lmv1
-BRKL2
-TW1
-Tailpipe2..4
-LMV1
-Tailpipe2..4
-HMV
1
-Tailpipe
1
-LMV
1
-Muffer1
-TW1
-Brakes
2
-LMV 1
-Brakes4
-HMV1
-Brakes
4..*
-TW
1
-Battery
1
-LMV1
-Battery1..2
-HMV1
-battery
1..*
Automobile
Engine
Two wheeler
Wheels
-Vehical
1
-wheels
2..*
Breaklight
Light motor vehical Heavy motor vehical
Tail pipe
Muffer
Battery
Door
Brakes
Practical 5-b assosiation
Practical 5Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[B] Automobile, Engine, Wheel, Brake, Brake light, Door, Battery, Muffler, Tail pipe
-r&d() : string(idl)+paintjob() : string(idl)+service() : string(idl)+testing() : boolean(idl)
-wheels : fixed(idl)-vehicaltype : string(idl)-cost : double(idl)-manufacturer : string(idl)-bodytype : string(idl)
Automobile
-r&d() : string(idl)+repair() : string(idl)+maintainance() : string(idl)
-type : string(idl)-fueltype : string(idl)-turbo : boolean(idl)-rpm : float(idl)-displacement : string(idl)-radiotors : fixed(idl)-cranshafttype : string(idl)-transmissiontype : string(idl)-gearboxsystem : string(idl)
Engine
-r&d() : string(idl)+fitting() : string(idl)+maintainance() : string(idl)+replacement() : boolean(idl)
-alloytype : fixed(idl)-manufacturer : string(idl)-cost : double(idl)-design : string(idl)-size : fixed(idl)-tyretype : string(idl)
Wheels
-r&d() : string(idl)+testing() : string(idl)+fitting() : string(idl)+replacement() : boolean(idl)
-type : string(idl)-durability : string(idl)-cost : double(idl)-diameter : float(idl)-brakecallipers : string(idl)-brakeliner : fixed(idl)
Brakes
-r&d() : string(idl)+repair() : string(idl)+fitting() : string(idl)+testing() : boolean(idl)
-color : fixed(idl)-type : string(idl)-dimension : fixed(idl)-orientation : fixed(idl)
Brakelights
-r&d() : string(idl)+fitting() : string(idl)+repair() : string(idl)+testing() : boolean(idl)
-type : fixed(idl)-size : string(idl)-cost : double(idl)-color : string(idl)-windowtint : string(idl)-windowtype : string(idl)-lockingsystem : fixed(idl)
Door
-r&d() : string(idl)+repair() : string(idl)+fitting() : string(idl)+testing() : boolean(idl)
-type : fixed(idl)-capacity : string(idl)-cost : double(idl)-dimension : string(idl)
Battery
-r&d() : string(idl)+repair() : string(idl)+fitting() : string(idl)+testing() : boolean(idl)
-type : fixed(idl)-cost : fixed(idl)-material : string(idl)-size : fixed(idl)-dimension : string(idl)-orientation : fixed(idl)-paint : string(idl)
Muffer
-r&d() : string(idl)+fitting() : string(idl)+repair() : string(idl)+testing() : boolean(idl)
-size : fixed(idl)-type : string(idl)-cost : double(idl)-manufacturer : string(idl)-material : fixed(idl)
Tailpipe
Twowheeler
-vehicaltype : string(idl)
Lightmotorvehical
-vehicaltype : string(idl)
Heavymotorvehical
Practical 5Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[B] Automobile, Engine, Wheel, Brake, Brake light, Door, Battery, Muffler, Tail pipe
#castle
1
#moat
1
+draw bridge 1..*
+moat
1
+tower 1..*
1 1
+lord1
+tower1
+stairs
1
+castle
1
+stone*
0..* 1..*
+castle 1
+ghost
0..*+castle
1+dragon
0..*
+castle
1
+cook
1..*
+castle1
+lady
1..*
1
-floor*
1
+room*
+floor1..*
+coridor0..*
+room1..*
+window0..*
CastleMoat
Drawbridge
Stone Tower
Stairs
Lord
Floor
Corridor
Room
Ghost
Dragon
Cook
Lady
Window
Practical 6Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[C] Castle, Moat, Draw bridge, Tower, Ghost, Stairs, Dungeon, Floor, Corridor, Room, Window, Stone, Lord, Lady, Cook
#maintaince() : boolean(idl)-security()
+name : string(idl)+location : string(idl)#buildtime : fixed(idl)+king : string(idl)+symbol : any(idl)
Castle
-protection() : boolean(idl)#maitanince() : boolean(idl)
-length : float(idl)-depth : float(idl)-filled type : string(idl)
Moat
#maintaince() : boolean(idl)-working() : boolean(idl)
#length : string(idl)#type : string(idl)#material : string(idl)-durability : string(idl)
Drawbridge
#maintaince() : boolean(idl)-watch() : boolean(idl)
#height : string(idl)#durability : string(idl)#type : fixed(idl)-material : string(idl)#standing capacity : any(idl)
Tower
+frighteingg() : string(idl)
+name : string(idl)+type : string(idl)+identity : string(idl)
Ghost
#maintaince() : boolean(idl)
+type : string(idl)-material : string(idl)#dimension : string(idl)#durability : string(idl)
Stairs
#strength() : string(idl)-warfare() : string(idl)
+name : string(idl)+armour : string(idl)+type : string(idl)-wapon : string(idl)
Dragon
#maintaince() : boolean(idl)
+dimension : string(idl)#type : string(idl)#capacity : string(idl)#material : string(idl)
Floor
#maintaince() : boolean(idl)-()
#width : float(idl)#hight : float(idl)#length : float(idl)-material : string(idl)#roof type : string(idl)
Corridor
#maintaince() : boolean(idl)+resting() : string(idl)+leaveing() : string(idl)
+location : string(idl)+walls : any(idl)+doors : any(idl)+windows : any(idl)+type : string(idl)+capacity : any(idl)#entites : any(idl)
Room
#maintaince() : boolean(idl)-security()
+type : string(idl)+dimension : string(idl)+location : string(idl)#material : string(idl)+frames : string(idl)
Window
#fabrication() : string(idl)#fitting() : boolean(idl)
#type : string(idl)+width : string(idl)+length : float(idl)+shape : string(idl)+colour : string(idl)
Stone
#manegment() : string(idl)
+name : string(idl)+hight : any(idl)#physic : string(idl)+qualification : string(idl)
Lord
#cooking() : boolean(idl)#main()
+name : string(idl)+hight : any(idl)#physic : string(idl)#qualification : string(idl)+relative : string(idl)
Lady
#working() : boolean(idl)-grocery shopping()
+gender : boolean(idl)+total cooks : string(idl)
Cook
Practical 6Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[C] Castle, Moat, Draw bridge, Tower, Ghost, Stairs, Dungeon, Floor, Corridor, Room, Window, Stone, Lord, Lady, Cook
-Statment1
-Expr1..* 1
-Args
0..*
-CP1
-Func1..*
-Args
0..*
-Function 1
-CP
1
-Statment*
-Expression
1
-Operators
0..*
-CP
1
-Indicator0..*
Computer program
Statement Indicator
Function
Argument list
Expressiion
Constant Variable
Operators
Relational operator Arithmatical operator
Practical 6Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[D] Expression, Constant, Variable, Function, argument list, Relational operator, Term, Factor, Arithmetic operator, Statement, computer program.
#declaration() : any(idl)+operations() : any(idl)
-type : fixed(idl)-name : fixed(idl)-syntax : fixed(idl)-declaration : any(idl)-necessity : fixed(idl)
Expression
ConstantVariable
#defination() : fixed(idl)+declaration() : fixed(idl)+call() : fixed(idl)
-name : fixed(idl)-type : fixed(idl)-returntype : fixed(idl)-accessspecifier : any(idl)-noofarguments : any(idl)
Function
#declaration() : any(idl)+valueassigment() : any(idl)+modification() : any(idl)
-name : any(idl)-noofparameters : fixed(idl)-type : fixed(idl)-returntype : any(idl)-noofarguments : any(idl)
Argumentlist
Relationaloperator Arithmaticoperator
+execute() : any(idl)+debug() : string(idl)+compile()
-length : fixed(idl)-type : any(idl)
Statment
+execution() : any(idl)-compilation()#debug() : string(idl)
-name : fixed(idl)-type : any(idl)-defination : any(idl)-language : fixed(idl)-programmer : fixed(idl)
Computerprogram
+evaluate() : any(idl)
+name : string(idl)+syntax : any(idl)+function : any(idl)+type : any(idl)
Operators
+declaration() : any(idl)+retrive() : any(idl)+modification() : fixed(idl)+malloc() : fixed(idl)+dealloc()
+name : fixed(idl)+data type : fixed(idl)+value : fixed(idl)#accessspecifier : any(idl)+memory size : any(idl)
Indicator
Practical 6Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[D] Expression, Constant, Variable, Function, argument list, Relational operator, Term, Factor, Arithmetic operator, Statement, computer program.
+disk
1
+drive
1..*+drive1
#track1..*#track
1
#sector
*
+disk1
+file sys1..*
+drive1
+file sys
1
+file sys1
#file
*
DriveDisk
File system
File
ASCII file Binary file Directory file
Track Sector
Practical 7Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[E] File system, File, ASCII File, Binary File, Directory File, Disk, Drive, Track, Sector
#storing() : string(idl)#retriving() : string(idl)#modification() : string(idl)#deleting() : string(idl)
-memory used : any(idl)-efficiancy : string(idl)-bits per file : any(idl)-retrive speed : float(idl)-storing speed : float(idl)-modification speed : float(idl)
File system
#storing() : string(idl)#retriving() : string(idl)#modification() : string(idl)#deleting() : string(idl)#shorting()#searching()
+file type : string(idl)+file storage type : string(idl)+type of data : string(idl)+size : any(idl)#max size : any(idl)-physical address : string(idl)
File
ASCII file Binary file Directory file
#storing()#retriving()#searching()#modification()#shorting()
+size : float(idl)+capacity : float(idl)+type : string(idl)#speed of data transfer : float(idl)
Disk
#storing()#retriving()#searching()#modification()#shorting()
+size : float(idl)+capacity : float(idl)+type : string(idl)
Drive
#storing()#retriving()#searching()#modification()#shorting()
-track size : float(idl)-no of sector : any(idl)
Track
#storing()#retriving()#searching()#modification()#shorting()
+size : float(idl)-addressing pointer : string(idl)-flags : boolean(idl)
Sector
Practical 7Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[E] File system, File, ASCII File, Binary File, Directory File, Disk, Drive, Track, Sector
-GF
1
-Blower1..*
-Blower1
-BM1..*
1
-RT1..4
1
-FT4..*
-Blower
1
-BC1
-GF
1
-GC
1..4
-GF
1
-HS2..*
-GF1
-HF
2..*
Gas furnace
Blower
Blowermotor
Blowercontrol
Gascontrol
Humiditysensor
Humidifire
Furnancethermostat
Roomthermostat
Practical 7Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[F] Gas Furnance, Blower, Blower motor, Room thermostat, Furnace thermostat, Humidifier, Humidity sensor, Gas control, Blower control, Hot air Vent
+burning() : any(idl)+cleaning() : any(idl)+maintainance() : any(idl)
-size : fixed(idl)-maxtemp : fixed(idl)-mintemp : fixed(idl)-foundation : string(idl)
Gasfurnance
+blowup() : fixed(idl)+shutdown() : boolean(idl)
-nozzlesize : fixed(idl)-materialtype : fixed(idl)-sourcecapacity : string(idl)
Blower
+startup() : boolean(idl)+shutdown() : boolean(idl)+blowup() : fixed(idl)
-motortype : fixed(idl)-motorcapacity : fixed(idl)-power : float(idl)
Blowermotor
+startup() : boolean(idl)+shutdown() : boolean(idl)+reading() : fixed(idl)+controlstat() : fixed(idl)
-lcdpanel : any(idl)-thermotype : string(idl)-maxtemp : float(idl)-mintemp : float(idl)-tolerance : float(idl)-voltage : fixed(idl)
Roomthermostat
+startup() : boolean(idl)+shutdown() : boolean(idl)+reading() : fixed(idl)+controlstat() : fixed(idl)
-lcdpanel : any(idl)-thermotype : string(idl)-maxtemp : float(idl)-mintemp : float(idl)-tolerance : float(idl)-voltage : fixed(idl)
Furnancethermostat
+startup() : boolean(idl)+shutdown() : boolean(idl)+controlstat() : fixed(idl)+generatehum () : float(idl)
-hidtype : string(idl)-dimension : fixed(idl)-blower : string(idl)-maxhumidity : float(idl)-voltage : fixed(idl)
Humidifier
+startup() : boolean(idl)+shutdown() : boolean(idl)+reading() : fixed(idl)+controlstat() : fixed(idl)
-sensortype : string(idl)-maxtemp : float(idl)-mintemp : float(idl)-tolerance : float(idl)-voltage : fixed(idl)
Humiditysensor
+valvestat() : boolean(idl)+reading() : fixed(idl)+controlstat() : fixed(idl)
-lcdpanel : any(idl)-valvetype : string(idl)-pipedia : float(idl)-flowcontroller : float(idl)-tolerance : float(idl)
Gascontrol
+startup() : boolean(idl)+shutdown() : boolean(idl)+reading() : fixed(idl)+controlstat() : fixed(idl)
-lcdpanel : any(idl)-tolerance : float(idl)-valvesize : string(idl)-voltage : fixed(idl)-power : float(idl)
Blowercontrol
Practical 7Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[F] Gas Furnance, Blower, Blower motor, Room thermostat, Furnace thermostat, Humidifier, Humidity sensor, Gas control, Blower control, Hot air Vent
+move()+kill()+check()
+type : string(idl)+colour : string(idl)+material : string(idl)
Chess piece
+move()
+player nm : string(idl)+rank : any(idl)
rank
+squre id : string(idl)+colour : string(idl)
squre
+material : string(idl)+length : any(idl)+width : any(idl)
board
+kill()+check()
+type of piece : string(idl)
Move
+move()+kill()+check()
+type of piece : string(idl)
Tree of move
+board
1
+chess piece
1..32
+board1
-squre1..64
+chess piece1
+move0..*
+move1
+tree of move*
Practical 8Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[G] Chess piece, Rank, File, Square, Board, Move, Tree of moves
+move()+kill()+check()
+type : string(idl)+colour : string(idl)+material : string(idl)
Chess piece
+move()
+player nm : string(idl)+rank : any(idl)
rank+squre id : string(idl)+colour : string(idl)
squre
+material : string(idl)+length : any(idl)+width : any(idl)
board
+kill()+check()
+type of piece : string(idl)
Move
+move()+kill()+check()
+type of piece : string(idl)
Tree of move
+name#type
File
Practical 8Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[G] Chess piece, Rank, File, Square, Board, Move, Tree of moves
1
+door1..2
1
+window1..*
1
+smoke alarm
0..*
+kitchen1
+burglar alarm
0..*
1
+refrigerator
0..*
1
+freezer
1
+freezer1
+ice0..*
1
+table0..*
1
+cabinet
0..*
1
+cheese0..*
+table1
+bread0..*
+light
0..*
1
+switch
1..*
1
+sink1..*
1
Sink
Kitchen
Switch
Light
Refrigerator
Freezer
Ice Cheese
Windows DoorTable
Bread
Burglar alarm
Smoke alarm
Cabinate
Practical 8Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[H] Sink, Freezer, Refrigerator, Table light, Switch, Window, Smoke alarm, Burglar alarm, Cabinet, Bread, Cheese, Ice, Door, Kitchen
+wash()
+material : string(idl)+width : float(idl)+depth : float(idl)+shape : string(idl)
Sink
+freezing()
+material : string(idl)+width : float(idl)+hight : float(idl)+depth : float(idl)+cooling point : any(idl)+capacity : float(idl)
Freezer
+cooling()+store things()
+manufacturer : string(idl)+width : float(idl)+depth : float(idl)+length : float(idl)+colour : string(idl)+size : any(idl)
Refigerator
+held things()
+manufacturer : string(idl)+length : float(idl)+width : float(idl)+hight : string(idl)+material : string(idl)+colour : string(idl)
Table
+on()+off()
+manufacturer : string(idl)+type of current : any(idl)+colour : string(idl)
Light
+on()+off()
+manufacturer : string(idl)+width : float(idl)+length : float(idl)+colour : string(idl)
Switch
+ventilation()+open()+close()+lock()
+width : float(idl)+higth : float(idl)+depth : float(idl)+colour : string(idl)
Windows
+alarming()
+manufacturer : string(idl)#sensitivity : any(idl)+colour : string(idl)
Smokealarm
+alarming()
+manufacturer : string(idl)+sencers : any(idl)+mcu : any(idl)
Burglaralarm
+manufacturer : string(idl)+width : float(idl)+depth : float(idl)+length : float(idl)+colour : string(idl)
Cabinet
+cutting()+tosting()
+manufacturer : string(idl)+date of made : any(idl)+weight : float(idl)
Bread
+manufacturer : string(idl)+date of manu : any(idl)
Cheese
+cooling()
+manufacturer : string(idl)+width : float(idl)+hight : float(idl)+length : float(idl)+shape : any(idl)
Ice +open()+close()+lock()
+manufacturer : string(idl)+material : any(idl)+width : float(idl)+length : float(idl)+hight : float(idl)+colour : string(idl)
Door
+cooking()+storing()
+location : string(idl)+width : float(idl)+length : float(idl)+hight : float(idl)+paint colour : string(idl)+floor type : any(idl)
Kitchen
Practical 8Aim: Prepare a class diagram for given group of classes using multiplicity, generalization, association
concepts and Add at least 5-7 attributes and 3-5 operations for particular class
[H] Sink, Freezer, Refrigerator, Table light, Switch, Window, Smoke alarm, Burglar alarm, Cabinet, Bread, Cheese, Ice, Door, Kitchen
#performance() : fixed(idl)#practice() : fixed(idl)
#name : string(idl)#category : string(idl)#dob : string(idl)#age : fixed(idl)#address : string(idl)-contact : fixed(idl)
Competitor
-comid#nooftrials : string(idl)#events : string(idl)#status : string(idl)
Trial
#name : string(idl)#category : string(idl)#noofcompetitors : any(idl)#difficultyfactor : any(idl)
Events
#judgment() : fixed(idl)#disqualify() : fixed(idl)-scoring() : fixed(idl)
#name : string(idl)#qualification : fixed(idl)#category : string(idl)#contact : string(idl)
Judge
#comid : string(idl)#category : string(idl)#nooftrials : fixed(idl)#avg : any(idl)#finalscore : fixed(idl)
Score
1
-Events1..*
-Competitor1..*
-Events1
-Events
1
-Judge
1..*
-Events
1
-Trials
1..*
#Score1..*
-Judge*
Practical 9
Aim : To prepare class diagram with links and association, generalization, multiplicity for the following list of classesand also add any required class to the diagrams and add following attributes where ever necessary.
Class name: Competitor, Trial, Event, Score, Judge. Attribute name: Address, Age, Date, Difficulty factor, Score, Name.
+name : string(idl)
Owner#model : any(idl)#year : any(idl)
Car
#birth date : any(idl)#address : string(idl)
Person CompanyBank
-accountNumber : string(idl)#interast rate : float(idl)#current balance : float(idl)
Loan
1 0..*
1
0..*
**
1
*
1
*
Practical 10Aim: Prepare a class diagram without IDs and using association and generalization. Try to assign
multiplicities. You may need to add one or more classes of your own.
Door
GasTank
Transmission WheelBrakeSwitch
Starter
Battery
AlternatorMuffler
Pipe
Automobile
PowerTrain SteeringSystem
BreakingSystem
BreakLight
Brakes
ExhaustSystem
Engine
ElectricalSystem
Body
Practical 11
Aim : Improve the existing class diagram by changing some of the associations to aggregations.
Country Capital city
1 1
Dining Fork
1 2..*
File
Ordinary Directory
File Records
#file
1
#Records
*
Polygon Point
+Polygon
1
+points
3..*
Drawing object
Text Geometrical object Group
Poject
Person
Programming Lang Input/output device
Keybord Modem
Classes Attributes
+class
*
+atteribute
*
Year
1
+Play
1
Player Team
Citys Route
1 1..*
connected StudentProfessor
+student
1..*
+professor
1..*
Practical 12
Aim: Categorize the following relationships into generalization, aggregation or association.
[a] A country has a capital city [b] A dining philosopher uses a fork
[c] A file is an ordinary file or a directory file
[d] Files contains records
[e] A polygon is composed of an ordered set of points [f] A drawing object is text, a geometrical object, or a group
[g] A person uses a computer language on a object [h] Modems and keyboards are input/output devices
[i] Classes may have several attributes
[j] A person plays for a team in a certain year
[k] A route connects two cities [l] A student takes a course from a professor
Document Sheet
Drawing object
Text Geometrica Object Group
Circle RectangleEllipse Line Squre
+document
1
+sheet
*#sheet1
#DO*
2..*
#Group
0..1
Practical 13Aim: Prepare a class diagram for a graphical document editor that supports grouping. Assume that a document consists
of several sheets. Each sheet contains drawing objects, including geometrical shapes and groups.
+renew()+issue()+return()
+name : string(idl)#no of books : any(idl)#staff : string(idl)+location : any(idl)-finecharges : float(idl)#/fine : any(idl)
Library
+issue()+renew()+return()
+name : string(idl)+author name : string(idl)#book id : string(idl)#issue date : any(idl)#duedate : fixed(idl)
Book
+issue()+renew()+return()
+name : string(idl)#lib account no : string(idl)#book issued : string(idl)#book no : string(idl)-book issue date
Person
-library
1
-book
*
Current date
#book0..2
#person*
fine= (currentdate-duedate)*finecharges
Practical 14Aim: Prepare a portion of a class diagram for a library book checkout system that shows
the late charges for an overdue book as a derived attribute.
Practical 15
Aim: Prepare a state diagram in which a 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.
Practical 16
Aim: To a partially completed and simplified state diagram for the control of a telephone answering machine, add the following: call detected, answer call, play announcement, record message,
Caller hangs up, announcement complete
Practical 17
Aim: Revise the state diagram for practical 16 so that the machine answers after five rings.
Practical 18
Aim: To a partially and simplified state diagram for the control of the data transfer,Add the following: reset, data available, data read by host, new data ready
Practical 19
Aim: To a partially and simplified state diagram for motor control appliance
Add the following:
Activities: apply power to run winding, apply power to start winding.Events: motor is overheated, on is asserted, on is no longer asserted, motor is running, reset.Condition: motor is not overheated
Practical 20
Aim: Prepare a state diagram for an interactive diagram editor for selecting and dragging objects
Practical 21
Aim: Revise the state diagram for the exercise in practical 19 and update the same for the commonality of the starting and running states
Practical 22
Aim: A gas-fired, forced hot-air, home heating system maintains room temperature and humidity in winter using distributed controls, such as Furnace, Blower, Humidifier etc. Partition the controls into
respective state diagrams
Book checkout system
Customer
buy items
Payment
Check payment
give changeShope keeper
Inventorymanagement
Inventory manager
Practical 23
Aim: Prepare a use case diagram for a physical bookstore checkout system
Customer Check out system Shope keeper
Bring purchased items
scan item price
show price
give change & bill
show price
show total payable priceshow total payable price
generate bill
pay money
Practical 23
Aim: Prepare a use case diagram for a physical bookstore checkout system
E-mail system
registration
login
send mail
recive mail
folder management
maintenace
visitors
Registered users
administrator
Practical 24
Aim: Prepare a use case diagram and sequence diagram for a computer email system
visitor E-mail system registered user administrator
registration
assign uid, pwd of user
log in
server database
update database
Verify Registered user
send mail
verify reciver's mail id & send mail show incoming mail
managing folder
update changes for specific user
log in
verify unm, pwd for admin
managing server setup
update changes
logout
display login page
Display user specific data page
mail send successfully
session closed
Display admin's specific data page
successfuly updated
Practical 24
Aim: Prepare a use case diagram and sequence diagram for a computer email system
Online Airline reservation System
flight schedule
registeration
log in
book ticket
modify ticket
cancel ticket
content management
site maintainence
visitor
registered users
web master
Practical 25
Aim: Prepare a use case diagram for an online airline reservation system
Library checkout system
issuse book
check user's id
return book
new book entry tosystem
fine management
add book to useraccount
registered user
remove book fromuser account
librarian
Practical 26
Aim: Prepare a use case diagram for a physical library checkout system
Windows explorer
task bar
start menu
icon
task manager
title bar
menu bar
tool bar
scroll bar
popup menu
control button
User / group of users
Adminstrator
Practical 27
Aim: Prepare a use case diagram for Windows Explorer
total items add tax credit coupons and certificates
customer determines gratuly add 18%
[less then six] [six or more]
Practical 28
Aim: Prepare an activity diagram for computing a restaurant bill, there should be charge for each delivered item. The total amount should be subject to tax and service charge of 18% for group of six and more. For smaller groups there should be a blank entry. Any coupons or gift certificates
submitted by the customer should be subtracted.