OOSD Record2012

download OOSD Record2012

of 45

Transcript of OOSD Record2012

  • 8/12/2019 OOSD Record2012

    1/45

    HOLY JESUS & MARY

    P.G. COLLEGE OF COMPUTER SCIENCES

    CERTIFICATE

    Regd.No :

    This is certify that this is a bonafide record of practical work done in OOS

    lab by Mr./Mrs/Ms. __________________________ of MCA III year I semester during th

    year 2012.

    Lecturer Incharge Head of the

    Department

    External Examiner

  • 8/12/2019 OOSD Record2012

    2/45

    INDEXS.no Name of the program Page.No

    1 Introduction to UML 3-9

    2 Hotel Room Reservation Scenario 11-13

    3 Bill preparation for major distributor 14-16

    4 Statistics of Cricket player 17

    5 System to record Assignment of Equipment to chemist 18-19

    6 System to track items in a super market 20-21

    7 System to computerize SAMs Courier 22-24

    8 System to track Business school admission 25-28

    9 System to manage orders in OTOS pharmacy 29-31

    10 Leave management 32-34

    11 OU central library 35-37

    12 Health care Organization 38

    13 PG program in LAH University 39-40

    14 Online Examination system 41-42

    15 System for maintaining Book Club 43

    16 Online Railway Reservation system 44-45

  • 8/12/2019 OOSD Record2012

    3/45

    AN OVERVIEW OF THE UML

    The UML is language for

    Visualizing

    Specifying

    Constructing

    Documenting

    The UML is a Language :

    A language provides a vocabulary and the rules for combining words in thvocabulary for the purpose of communication. The modeling language is a language who

    vocabulary and rules focus on the conceptual and physical; representation of a system .

    modeling language such as the UML is thus a standard language for software blueprints.

    The UML is a language for Visualizing:

    The UML is more than just a bunch of graphic symbols, and each symb

    in UML notation is well-defined semantics.

    The UML is a language for Specifying:

    Specifying means building models that are precise, unambiguous an

    complete in particular the UML addresses the specification of all important analysidesign and implementation decisions that must be made in developing and deployina software intensive system.

    The UML is a language for Constructing:

    The UML is not a visual programming language, but its models can bdirectly connected to a variety of programming languages. This means that it is possible

    map from a model in UML to a programming language such as java or c++.

    The UML is a language for Documenting:

    A healthy software organization produces all sorts of artifacts in addition

    raw executable code. This artifacts includes

    Requirements

    Architecture

  • 8/12/2019 OOSD Record2012

    4/45

    Design

    Prototypes

    Project plans

    Releases

    A CONCEPTUAL MODEL OF THE UML

    To understand the UML you need to form a conceptual model of th

    language and this requires learning three major elements is the UMLs basic buildinblocks.

    Building Blocks of the UML:

    The vocabulary of the UML encompasses three kinds of building blocks:

    1. Things2. Relationships.

    3. Diagrams.

    THINGS IN UML:

    Structural things Behavioral things

    Grouping things

    An notational things

    STRUCTURAL THINGS:

    These are the nouns of the model. There are seven kinds of structural things.

    Class: Is a description of set of objects that share the same attributes, operationrelationships, and semantics. A class implements one or more interfaces.

  • 8/12/2019 OOSD Record2012

    5/45

    Interface:

    Is a collection of operations that specify a service of a class or a component. A

    interface might represent the complete behavior of a class or a component or a part of th

    behavior.

    Collaboration:

    Defines an interaction and is a society of roles and other elements that wo

    together to provide some cooperative behavior that is bigger than the sum of all elements.

    UseCase:

    Is a description of set of sequence of actions that a system performs that yields a

    observable result of value to a particular actor.

    Active Class:

    Is a class whose objects own one or more processes or threads and therefore cainitiate control activity.

  • 8/12/2019 OOSD Record2012

    6/45

    Component:

    Is a physical and replaceable part of a system that confirms to and

    provides the realization of set of interfaces.

    Node:

    Is a physical element that exists at run time and represents a computational resource

    BEHAVIORAL THINGS:

    Are the dynamic parts of the UML models. There are two types

    Interaction:Is a behavior that comprises a set of messages exchanged among a set of objec

    within a particular context to accomplish a specific purpose.

  • 8/12/2019 OOSD Record2012

    7/45

    State machine:Is a behavior that specifies the sequence of states an object or an interaction goe

    through during its lifetime in response to events, together with its responses to thos

    events.

    GROUPING THINGS: Are the organizational part of a UML model.

    Package: Is a general purpose mechanism for organizing elements into grouStructural things, behavioral things , and even other grouping things may be placed i

    package

    ANNOTATIONAL THINGS: Are the explanatory parts of UML models.

    Note: These are comments you may apply to describe , illuminate , and remarabout any elements in the model.

  • 8/12/2019 OOSD Record2012

    8/45

    RELATIONSHIPS IN THE UML:

    There are four kinds of relationships in the UML.

    Dependency:Is semantic relationship between two things in which change to one thing may effec

    semantics of other things.

    Association:Is a structural relationship that describes a set of links, a link being a connection am

    objects.

    Generalization: Is a specialization/generalization relationship in which objects of speciaelements are substitutable for objects of the generalized parent.

    Realization: Is a semantic relationship between classifiers, wherein one classifier specif

    contract that another classifier guarantees to carry out.

  • 8/12/2019 OOSD Record2012

    9/45

    DIAGRAMS IN THE UML:

    Diagram is a graphical presentation of a set of elements. There are nine types of diagr

    1. class diagram2. Object diagram

    3. Use-case diagram4. Sequence diagram

    5. Collaboration diagram6. Statechart diagram

    7. Activity diagram8. Component diagram

    9. Deployment diagram

    Class diagram: Shows a set of classes, interfaces and collaborations and therelationships. These diagrams are the most common diagrams found in modeling obje

    oriented systems.

    Object diagram: Shows a set of objects and their relationships. They represent statsnapshots of instances of things found in class diagrams.

    Usecase diagram: Shows a set of usecases and actors and their relationships. It representstatic view of the system.

    Sequence & Collaboration diagrams: Are kind of interaction diagrams shows an

    interaction, consisting of a set of objects and their relationships, including the messagesthat may be dispatched among them. They are dynamic view of a system.

    Statechart diagram: Shows a state machine, consisting of states, transitions, event

    activities. It represents dynamic view of a system.

    Activity diagram: Is a special kind of a statechart diagram that shows the flow fro

    activity to activity within a system. It represents dynamic view of a system.

    Component diagram: Shows the organizations and dependencies among a set

    components. These represent static view of a system.

    Deployment diagram: Shows the configuration of runtime processing nodes an

    components that live on them.

  • 8/12/2019 OOSD Record2012

    10/45

    Question Bank

  • 8/12/2019 OOSD Record2012

    11/45

    1.) Draw Use Case Diagram & Activity Diagram with swimlane for the front office system in a 5-

    star hotel described below.

    Front office of any hotel is responsible for all rooms reservations, room allocations and final

    settlement of bills. Any company or person can reserve rooms for their future stay. They hav

    to indicate from what date to what date they need the rooms. They also have to indicate how

    many rooms are required . Sometimes the reservations could be cancelled or dates or numbof rooms changed. For reservation , cancellation or modification of rooms, customer receive

    an acknowledgement from the hotel.

    Use case diagram:-

    Modifications

    Reservation

    Room Allocation

    Settlement of bill

    No., of rooms for reservation

    No of rooms

    Dates

    User Front Office

    Cancellation

  • 8/12/2019 OOSD Record2012

    12/45

    Activity diagram:-

    Modify

    Acknowledgment

    Cancel

    Reserve

    Available

    EnquiryCheck

    Availabil

    Rooms Dates

  • 8/12/2019 OOSD Record2012

    13/45

    2. Front office of any hotel is responsible for all rooms reservations, room allocations and

    final settlement of bills. Any company or person can reserve rooms for their future stay. The

    have to indicate from what date to what date they need the rooms. They also have to indicat

    how many rooms are required . Sometimes the reservations could be cancelled or dates or

    number of rooms changed. For reservation , cancellation or modification of rooms,

    customer receives an acknowledgement from the hotel. Draw sequence diagram for reservroom scenario, also draw the class diagram

    Sequence Diagram:-

    Class Diagram:-

    Customer Front Office

    No., of daysNo., of rooms

    Modification of

    Reservation of rooms

    Cancellation of

    Acknowledgement

    Check Availability

  • 8/12/2019 OOSD Record2012

    14/45

    3 A major distributor of office supplies has a set of criteria for preparing bills. When t

    customer places the order one of the sales staff prepares the order and writes the bill, if the

    is an insufficient quantity of items on hand, the back order is set up for missing items. Th

    available items are shipped and bill is prepared. The cost is billed for the back order item

    when they are shipped. Wholesale customers are eligible for discount if they purcha

    minimum of 100 items. Retail customers are not eligible for any discounts irrespective of thnumber of items ordered. All retail customers pay sales tax, wholesale customers dont p

    any tax provided they have state tax exemption. All bills are mailed to customers. Draw u

    case diagram and also draw sequence diagram for one of the scenario.

    wholesale

    custmor

    retailer

    back order

    customer

    place order

    prepare order

    mail bills

    sales person

    tax

    discount

    bill

    :Customer : Salesperson

    place order( )

    check availability( )

    ship order( )

    mail bills( )

  • 8/12/2019 OOSD Record2012

    15/45

    4. A major distributor of office supplies has a set of criteria for preparing bills. Whe

    the customer places the order one of the sales staff prepares the order and writes the bi

    if there is an insufficient quantity of items on hand, the back order is set up for missin

    items. The available items are shipped and bill is prepared. The cost is billed for the bac

    order items when they are shipped. Wholesale customers are eligible for discount if the

    purchase minimum of 100 items. Retail customers are not eligible for any discounirrespective of the number of items ordered. All retail customers pay sales tax, wholesa

    customers dont pay any tax provided they have state tax exemption. All bills are maile

    to customers. Draw activity diagram with swim lanes and draw class diagram.

    Class Diagram & Activity Diagram:

    1---------------------1

    1

    *1

    1

    *

    1

    1

    Customer

    Name:String

    Custmertype:StringItemlist:String

    +Items()

    +bill paying()

    +offers()

    Purchases

    item-string

    quality()

    price()

    Billig

    item-string

    product details()gives the bill()

    +cards

    +cash

    Cashier

    Customer details: String

    Paid details

    +prepares bill()

    +offers()+payment()

    Offers

    type: String

    Discount()

  • 8/12/2019 OOSD Record2012

    16/45

    Customer Stores Distributor

    Place order Checkavailability

    Items Price

    Available

    Prepare order Price

    Ship Mail bills

    Pay bills

    Back order

    Close

  • 8/12/2019 OOSD Record2012

    17/45

    5. A century system is the statistics provider organization of all the first class cricket match

    conducted across the world round the year. They compile all the statistics of the players

    terms of matches played, venues, country, match type (test/one-day). For each matc

    statistics is compiled for each player i.e., runs scored in each innings, wickets and catche

    taken, run outs, number of fours and sixes hit etc., The Company wants to develop a comput

    application to compile these statistics. Identify classes using CRC and draw the class diagrawith the necessary relationships. Also specify the multiplicities, roles etc. Draw the use ca

    diagram with statistician as an actor

    Usecase Diagram:

    player information

    Statisstician

    match information

  • 8/12/2019 OOSD Record2012

    18/45

    6. A laboratory has several chemists who work on one or more projects. Chemists (Emp

    Name, Phone_no) also may use certain kinds of Equipments (Serial_no, cost) on each proje

    (Projectid, start_date). The organization wishes to record assign- date i.e., the date when t

    given equipment item was assigned to a particular Chemist working on a specified project,

    well as total number of hours the chemist has used the equipment for the project. Thchemist must be assigned to at least one project and one equipment item. Draw the use ca

    diagram and class diagram.

    Usecase & Class Diagrams :

    Lab

    Equipment

    Chemists

    Project

  • 8/12/2019 OOSD Record2012

    19/45

  • 8/12/2019 OOSD Record2012

    20/45

    7. Mega super market has three checkout counters. In order to improve the checko

    process a PC has been set up at each of these counters along with the printer. Each item in th

    super market is packed & each packet carries on it a price tag on which are printed its item co

    and price. Each customer picks out the desired packet from the shelves place them in th

    standard shopping basket supplied by the super market and carries the basket to one of th

    checkout counters. The counter operator takes out each of the packets from the basket, keys the 12 digit item code. The amount is collected from the customer and a bill is printed and issue

    to the customer. Identify the classes and draw class diagram with suitable relationship

    multiplicities and roles. Also draw the state diagram for one of the item object.

    Class & State Chart Diagrams :

  • 8/12/2019 OOSD Record2012

    21/45

    Packet Placed on

    shelvesPicket

    CarriedBilled

  • 8/12/2019 OOSD Record2012

    22/45

    8. SAMs Couriers Limited intends to computerize the recruitment process. Th

    advertisements for a particular post appear on their website. The candidates are called f

    interview based on the eligibility criteria which varies from post to post. Informati

    regarding the eligibility and vacancies is maintained in a database. The candidate is selecte

    based on written test and interview. Once selected, the candidate is under probation for on

    year. In this period the candidate is not eligible for any special leaves and benefits. Aftcompletion of the probation period the manager evaluates the candidates performance an

    will be given an appointment letter with a unique employee id. Draw use case diagram for th

    given scenario. Also draw the sequence diagram for one of the scenarios.

    Advertisments

    Organization

    Appointing

    interview

    Selection

    written tes t

  • 8/12/2019 OOSD Record2012

    23/45

    Evaluation for selection :Candiate

    1 Advertise

    4 call for interview

    5 Appear for interview

    6 Appear for written test

    2 Applt for post

    3 evaluation

  • 8/12/2019 OOSD Record2012

    24/45

    9. SAMs Couriers Limited intends to computerize the recruitment process. T

    advertisements for a particular post appear on their website. The candidates are called f

    interview based on the eligibility criteria which varies from post to post. Informati

    regarding the eligibility and vacancies is maintained in a database. The candidate is selecte

    based on written test and interview. Once selected, the candidate is under probation for on

    year. In this period the candidate is not eligible for any special leaves and benefits. Aftcompletion of the probation period the manager evaluates the candidates performance an

    will be given an appointment letter with a unique employee id. Draw activity diagram wi

    class diagram. Draw the complete class diagram with necessary relationships, multiplicitie

    roles etc.

  • 8/12/2019 OOSD Record2012

    25/45

    10. In a Business school, once a student is admitted, he/she will be assigned a counsellor. Th

    student has to report to the counsellor & fill his/her personal details in the counselling fil

    Students queries/problems are addressed by the counsellor, which is also recorded in th

    counselling files. The Principal of the school monitors the process of counselling i.e. t

    problems reported by the student and actions taken by the counsellor. As the strength of th

    school has increased, it is not possible for the principal to monitor the counselling procemanually. Draw the use case diagram and activity diagram with swim lanes.

    counseller

    principal

    registered

    select course

    view counselling file

    queries &problems

    actions taken

    student

    admission

  • 8/12/2019 OOSD Record2012

    26/45

    Registered

    Selected course

    Counsellor

    Problems &

    Actions taken Principal

    Student

  • 8/12/2019 OOSD Record2012

    27/45

    11. In a Business school, once a student is admitted, he/she will be assigned a counsello

    The student has to report to the counsellor & fill his/her personal details in the counsellin

    file. Students queries/problems are addressed by the counsellor, which is also recorded

    the counselling files. The Principal of the school monitors the process of counselling i.e. th

    problems reported by the student and actions taken by the counsellor. As the strength of th

    school has increased, it is not possible for the principal to monitor the counselling procemanually. Draw the sequence diagram for all the scenarios. Also specify how sequen

    diagrams are converted to collaboration diagrams

    Student

    Counsellor

    Principal

    3.Problem& Queries

    4.Action Taken

    1: Registered

    2: Select Course

  • 8/12/2019 OOSD Record2012

    28/45

    student counsellor principal

    registered

    select course

    problems&queries

    action taken

    satisfied

    admisssion completed

  • 8/12/2019 OOSD Record2012

    29/45

    12. OTOSs pharmacy is the distributor of various pharmaceuticals products. They have a

    huge network of customers. The registered customers can only book orders for the specified

    product. If the specified product is available the required quantity is checked against the

    quantity on hand (QOH). If the required quantity is less than QOH a deliver challan is

    prepared. After the delivery of the product an Invoice is prepared by accountant which

    contains the cost of ordered items, deductions if any (in case of damaged or lost goods) andprevious outstanding balance. Then the invoice is sent to the customer. Draw the use case

    diagram with use case specifications. Draw the sequence diagram for prepare invoice

    scenario.

    AccountantCustomer Pharmacy

    placeOrder() checkAvailability()

    deliverChallen

    reciveGoods()

    invoice()

    Available Ordered Transit Deliver

  • 8/12/2019 OOSD Record2012

    30/45

    13. OTOSs pharmacy is the distributor of various pharmaceuticals products. They have a

    huge network of customers. The registered customers can only book orders for the specified

    product. If the specified product is available the required quantity is checked against the

    quantity on hand (QOH). If the required quantity is less than QOH a deliver challan is

    prepared. After the delivery of the product an Invoice is prepared by accountant which

    contains the cost of ordered items, deductions if any (in case of damaged or lost goods) andprevious outstanding balance. Then the invoice is sent to the customer. Draw the use case

    diagram with use case specifications. Draw activity diagram with swim lanes & draw state

    diagram of the product object.

    Invoice

    Quit

    Deductions

    Balance

    BookOrder

    DeliverChallenPrepare

    Book order

    Customer

    PreviousOutstanding

    Quit

    Deliverchallen prepare

    Invoice Deductions

    Previousoutstanding

    balance

    Book order

    Book order

    Quit

  • 8/12/2019 OOSD Record2012

    31/45

    Placeorder

    Prepare

    Quate

    PrepareDeliver

    Receive

    Ship goods

    ItemsCost

    SentReceive

    Customer Pharmac Accountan

  • 8/12/2019 OOSD Record2012

    32/45

    14. Global group requires a system to be developed for maintenance of leaves in their

    organization. There are different types of leaves: Casual leaves, Medical leaves, Earned leave

    and Special leaves. These leaves vary from employee to employee. If the employee is regular

    he can avail all types of leaves. An adhoc employee can only avail casual leaves. The medical

    and earned leaves can be credited in the employees account. The maximum limit of the cred

    is 240. Further if an employee has availed all the leaves his salary may be deducted. Drawactivity diagram and model a sequence diagram for one of the scenario.

    Employee

    Availableof all typesof leaves

    Available Leaves

    Availableleaves

    Dedicationin salary

    No dedicationin salary

    Emp.

    Employe Organizatio

    Emp.

    Available leaves

  • 8/12/2019 OOSD Record2012

    33/45

    Employee Organisation

    applyForLeave()checkAvailability()

    availableLeave()

    availableLeaves()

    deductSalary()

  • 8/12/2019 OOSD Record2012

    34/45

    15. Global group requires a system to be developed for maintenance of leaves in the

    organization. There are different types of leaves: Casual leaves, Medical leaves, Earned leav

    and Special leaves. These leaves vary from employee to employee. If the employee is regul

    he can avail all types of leaves. An adhoc employee can only avail casual leaves. The medic

    and earned leaves can be credited in the employees account. The maximum limit of the cred

    is 240. Further if an employee has availed all the leaves his salary may be deducted. Draw ucase diagram and also draw the class diagram for the given scenario.

    Regular emp. Adhoc emp.

    Employee

    Leaves

    tyes of leaves

    Salary

  • 8/12/2019 OOSD Record2012

    35/45

    16. OUs Central library issues books to the staff & students. Students can avail 3 books

    staff can avail max of 5 books. The books are issued for a period of one month. Thereafter

    fine of Rs.1/- for each day is charged. The faculty members dont pay any fine. However th

    have to return the book at the end of semester. The Library receives the requisition fro

    various departments to new books. Once it is approved the order is placed to the vario

    vendors. University gives an order of the books to a particular vendor based on thcompetitive prices they offer. Model a Use case diagram & draw the Sequence diagram for a

    scenarios of a student actor.

    User

    Librarian

    Vendor

    NewUseCase6Database

    searchBook

    issuedBook

    returnBook

    addBookRecord

    requestBook

    provideBook

  • 8/12/2019 OOSD Record2012

    36/45

    :User :LMS :Database

    login()authenticateUser()

    successful()

    successfullLogin()

    searchBook()

    searchingBook()

    availableBook()

    logout()

    logoutSuccessful()

    bookFound()

    :User :LMS :Librarian :Database

    issueBook()bookStatus()

    available()/

    waiting()bookIssued()

    logout()

    logoutSuccessfully()

  • 8/12/2019 OOSD Record2012

    37/45

    :User :LMS :Librarian :Database

    login() authenticateUser()

    successfullyAuthentication()

    successfullyLogin()returnBook()

    checkTime()

    calculateFine()successfullyReturned()

    logout()

    logoutSuccessfully()

    :User :LMS :Librarian :Database :PurchaseDept :Vendor

    provideBook() payToVendor()payment()

    bookSend()

    updateBookRecord()

    recordUpdated()

    getBook()

  • 8/12/2019 OOSD Record2012

    38/45

    17. You have been hired to design a system for small health care organization. Th

    clinic consists of several examining rooms and few rooms for short term critical care patien

    A core staff of seven physicians is supplemented by internists from a local teaching hospit

    Patients medical data is stored in the central database. Patients first sign in at the front des

    Clerk checks the billing records, prints a summary status sheet and obtains file number fro

    the system. The clerk then selects the examination room for the patient based on the casAfter waiting for the physician, the clerk moves the data packet and the patient to t

    examination room. A nurse records basic medical data (weight, B.P etc). The physician mak

    additional notes to both the medical and billing data and generally writes the prescriptio

    order which is given to the patient and recorded on the charts. When the patient leaves, th

    clerk enters the new billing data into the system (if any). The new billing data is forwarded

    appropriate insurance company. Identify the classes using CRC and draw the class diagram

    with appropriate relationships, multiplicities etc.

  • 8/12/2019 OOSD Record2012

    39/45

    18. LAH University offers P.G program for working men. Candidates submit th

    application form to the registrar. The registrars office issues call letters to the candidates f

    writing the written test based on the following criteria: The first criterion for selection is th

    the candidate should be an engineering graduate or must have a PG degree (no

    engineering). The second criterion is that the candidate should put a minimum of 2 years fu

    time experience after the qualifying degree. The candidates qualified in written test acalled for spot admissions and the seats are allotted based on the following distribution

    seats: 30% of seats are reserved for ST, 10% for SC, 10% for BC & 20% for women and th

    remaining seats are under open competition. Draw a use case diagram and activity diagra

    with swim lanes.

    Registration office candidate

    Apply foradmission

    call letter

    selection

    spot admission allotment

  • 8/12/2019 OOSD Record2012

    40/45

    Officers PGprogram

    30% of seats

    admission

    30% of seats 10% of seats

    Allotment of

    Apply for PGro ram

    Submit

    Min. of 2PG degree

    Written test

    Issue call

    Not selected Spot

    30% of seats

    admission

    30% of seats 10% of seats

    Allotment of

    30% of seats

    admission

    30% of seats 10% of seats

    Allotment of

    30% of seats

    admission

    10% of seats

    Allotment of

    30% of seats

    admission

    10% of seats

    Allotment of

    30% of seats

    admission

    30% of seats 10% of seats

    Allotment of

    University Registration officeCandidat

    Not qualify qualify

    Not OC candidate OC candidate

    ST SC,BC

    Woman

  • 8/12/2019 OOSD Record2012

    41/45

    19. An Online examination system maintains a huge database of questions which a

    classified according to different parts of the syllabus and also according to difficulty level.

    the beginning a student is considered to be an average student with a percentile of 50 and

    given questions of medium difficulty randomly from the total syllabus. From here the type

    questions presented varies according to the performance. The score starts with a value equ

    to the score obtained by a person with a percentile of 50. The score is calculated after evequestion and the change is score depends on difficulty level of the question. There is

    restriction on the minimum number of questions of each type and a test taker may get mo

    questions in any particular section if his performance in that section is below his overa

    performance. Draw sequence diagrams for all the scenarios identified.

    :TakesExam :ExaminationSystem

    :Database

    takesExam()specifiesSyllabus()

    retrievesQuestions()sendsQuestions()/

    answeringQuestions()

    computeScores()

    [start.score=50]

    displaysQuestions()

  • 8/12/2019 OOSD Record2012

    42/45

    20. An Online examination system maintains a huge database of questions which a

    classified according to different parts of the syllabus & also according to difficulty level. In th

    beginning a student is considered to be an average student with a percentile of 50 & is give

    questions of medium difficulty randomly from the total syllabus. From here the type

    questions presented varies according to the performance. The score starts with a value equto the score obtained by a person with a percentile of 50. The score is calculated after eve

    question & the change is score depends on difficulty level of the question. There is

    restriction on the minimum number of questions of each type & a test taker may get mo

    questions in any particular section if his performance in that section is below his overa

    performance. Model a Use case diagram & a Class diagram.

    StudentDatabase

    Questions

    Computer

    score

  • 8/12/2019 OOSD Record2012

    43/45

    21. The book club has members. The book clubs sells books to its members. The memb

    places orders for books, which the book club full fills. Each order contains one or more tha

    one books. The books are written author(s). The publisher publishes the book. An author ca

    write more than one books and a book can have more than one author. A book is published

    a publisher, but a publisher publishes many books. A member can place more than one orde

    The member also can choose not to place an order. The book club sells many books. Drawuse case diagram with suitable relationships between use cases and model a class diagram.

    BookClubMembers

    Maintain & sellbooks

    Place order for books

    Fullfill order

  • 8/12/2019 OOSD Record2012

    44/45

    22. An online railway reservation consists of the following activities. A Passenger c

    reserve a ticket, cancel a ticket and enquiry. Each train has limited number of reserved seat

    Once a passenger cancels a ticket, required amount is deducted and the waiting list passeng

    is allotted the seat. Passenger may also book a ticket in tatkaal scheme by paying addition

    amount. Passenger who booked the ticket under tatkaal scheme cant get any refund if th

    ticket is cancelled. The chart is prepared two hours before the departure of the train. ModeUse case diagram for the given scenario with complete use case specifications.

    check the availability

    fills the reservation form

    enter the details on s/ m

    calicuate the cost

    reservation is conformed

    payment

    cash payment

    passanger

    updation

    clerk

    check the availability...

    fills reservation form

    enter details to the system

    calculate the cost

    reservation conformed

    payment

    cash payment cerdit payment

    print ticket

    updation

    calcuate the cost

    reservation conformed

    calcuate the cost

    reservation conformed

    calcuate the cost

    reservation conformed

  • 8/12/2019 OOSD Record2012

    45/45

    23. An online railway reservation consists of the following activities. A Passenger c

    reserve a ticket, cancel a ticket and enquiry. Each train has limited number of reserved seat

    Once a passenger cancels a ticket, required amount is deducted and the waiting list passeng

    is allotted the seat. Passenger may also book a ticket in tatkaal scheme by paying addition

    amount. Passenger who booked the ticket under tatkaal scheme cant get any refund if th

    ticket is cancelled. The chart is prepared two hours before the departure of the train. Drathe state diagram for ticket object.

    Passenger

    Availability Fill the form

    Enter the

    Details

    Calculate

    cost

    Resv

    Co

    nfo

    rm

    atio

    n

    Confirmatio

    n

    Payment Receive

    Payment Print Updation