Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The new system will allow students to register for courses and view report cards from
personal computers attached to the campus LAN. The college will keep the existing
course catalog system where all course information is maintained.
Professors must be able to access the on-line system to indicate which courses they will
be teaching. Professors are assigned to course offerings and course catalogue is updated
by the registrar.
At the beginning of each semester students may request a course catalogue containing
a list of course offerings for the semester. Information about each course, such as
professor, department, and prerequisites will be included to help students make informed
decisions. The new system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative choices in case
the student cannot be assigned to a primary selection. Course offerings will have a
maximum of ten students and a minimum of three students. A course offering with fewer
than three students will be canceled. For each semester, there is a period of time that
students can change their schedule. Students must be able to access the system during
this time to add or drop courses. Registrar will decide when to activate registration
opening and when to close registration. Once the registration process is, the registration
system sends information to the billing system so the students can be billed for the
semester.
Professor will also need to see which students signed up for their course offerings. In
addition, the professors will be able to record the grades for the students in each class. At
the end of the semester, the student will be able to access the system to view an electronic
report card.
Draw the activity diagram using the swim lanes for all the actors.
The passenger enters the terminal building where the security checks his ticket and sends
him in if it is valid. The first security check is confirmation of passengers’ identity. If the
passenger is traveling internationally he needs to present his passport. The passenger and
his baggage are checked simultaneously. All public access is channeled through metal
detector and all items must go through an X-ray machine. When you check in, the agent
pulls up your itinerary on the computer and prints out one or more tags to attach to each
of your flight information on it. Now the baggage is loaded in the plane and Boarding
pass is given to him.
A ground engineer checks for the proper and perfect condition of the plane. Planes use
taxi runways to get from the gate to main runway for take-off and from a main runway to
the gate after landing. Ground controllers direct ground traffic from the airport’s tower.
The task of safe operations of aircrafts fall on air traffic controllers.
Make suitable assumptions and state them.
4Q. Draw the state chart diagram for typical wrist watch that has two buttons MODE &
INC. When you enter time setting mode, you first see the hour display flashing and INC
increments the current value of hour(the value is 0 to 23 & it wraps). MODE wil next
take you to where you can change minutes, then MODE again takes you to where you
can adjust the seconds, then back to normal mode.
5Q. SUNHOLS Ltd, a major travel agency in the UK, has decided to develop a system
that will enable its customers to book and purchase flight ticket from the WEB.
Description of the use-case Book-Flight: The user specifies a
departure and a destination airport and indicates the date on which
she wants to travel. In order to avoid typing errors the system
presents the customer with all the direct flights available for the
route and date indicated along with the prices for the single and
return trips. These flights may be operated by different airlines. The
user may book one of these flights by pressing a book-flight button
available on her screen. After doing so a form will appear on the
screen. This form must be filled with the details of
the customer including his/her surname, initials, title, address
(street, number, city, postcode), day telephone number, and an e-
mail address (if available). If the user is a member of SUNHOLS
he/she may simply provide his/her membership-card number and
the system will find all these details. When the user provides the
required details and submits the filled form the system will check if
the address information provided is a valid UK address and if so it
will make the booking. The customer will be given a booking
reference number. Alternatively the customer may decide not to
proceed with the booking.
Develop a design class diagram including only the entity classes necessary for the "Book-
Flight" use case.
Q6. Consider the following specifications of Recruitment Processing System for any
organization.The advertisements for a particular post are placed in newspapers. The
candidates are selected based on the some eligibility criteria; it is based on the post. The
candidate is selected based on the written test and interview. Once the candidate is
selected, he or she is appointed as a Trainee for a period of six months and another six
more months on Probation. In this period the candidate is not eligible for any leaves and
benefits. The candidate’s performance in the Probation period is monitored and is
recorded by the HR Manager at regular intervals. After the completion of the probation
period of a candidate, the Manager evaluates the candidate’s performance and will
generate employee-id.
Draw the Use Case Diagram.
Draw the state chart diagram.
Q7. Consider the following specifications of Recruitment Processing System for any
organization.
The advertisements for a particular post are placed in newspapers. The candidates are
selected based on the some eligibility criteria; it is based on the post. The candidate is
selected based on the written test and interview. Once the candidate is selected, he or she
is appointed as a Trainee for a period of six months and another six more months on
Probation. In this period the candidate is not eligible for any leaves and benefits. The
candidate’s performance in the Probation period is monitored and is recorded by the HR
Manager at regular intervals. After the completion of the probation period of a candidate,
the Manager evaluates the candidate’s performance and will generate employee-id
Draw the activity diagram for whole System using swim lanes.
Q8. See the following figure & draw the class diagram with all functions that must be
present in classes along with relationship between them.
Q9. Specify a statechart diagram for the class Elevator in the class diagram below. Make
sure that your statechart diagram reflects the behavior of elevators which is specified by
the documentation of the class in the class diagram.
The class Elevator represents elevators. An elevator always starts at the ground floor
(floor 0) and its maximum idle time is set to 5. An elevator can be moving up or down.
When it receives the message "go_up" ("go_down") it starts moving up (down) to the
destination floor indicated by the message. As soon as the elevator arrives at the
destination floor it becomes idle. A time-out event, which occurs after a period of time
during which the elevator is idle on a floor, makes it move back to the ground floor. This
time-out event is determined by a timer and a maximum idle-time. As soon as the
elevator gets into the idle state the timer is set to 0. Every minute while the elevator is
idle the timer is being increased until it becomes equal to the maximum idle-time. This
designates the time-out event which makes the elevator move to ground floor.
Q10. Draw class Diagram to show that one Person can have more than one employment
with the same company. Employment period is one information associated with
Employment.
Draw another diagram to show that one Person can have one employment with the
company
Draw the class diagram and forward engineer it to get the java code. Complete the
program and execute it.
Q16. Consider the problem specification for the Course Registration System for college.
The new system will allow students to register for courses and view report cards from
personal computers attached to the campus LAN. The college will keep the existing
course catalog system where all course information is maintained.
Professors must be able to access the on-line system to indicate which courses they will
be teaching. Professors are assigned to course offerings and course catalogue is updated
by the registrar.
At the beginning of each semester students may request a course catalogue containing
a list of course offerings for the semester. Information about each course, such as
professor, department, and prerequisites will be included to help students make informed
decisions. The new system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative choices in case
the student cannot be assigned to a primary selection. Course offerings will have a
maximum of ten students and a minimum of three students. A course offering with fewer
than three students will be canceled. For each semester, there is a period of time that
students can change their schedule. Students must be able to access the system during
this time to add or drop courses. Registrar will decide when to activate registration
opening and when to close registration. Once the registration process is, the registration
system sends information to the billing system so the students can be billed for the
semester.
Professor will also need to see which students signed up for their course offerings. In
addition, the professors will be able to record the grades for the students in each class. At
the end of the semester, the student will be able to access the system to view an electronic
report card.
Draw the activity diagram using the swim lanes for all the actors.
Q17. Consider the problem specification for the Course Registration System for college.
The new system will allow students to register for courses and view report cards from
personal computers attached to the campus LAN. The college will keep the existing
course catalog system where all course information is maintained.
Professors must be able to access the on-line system to indicate which courses they will
be teaching. Professors are assigned to course offerings and course catalogue is updated
by the registrar.
At the beginning of each semester students may request a course catalogue containing
a list of course offerings for the semester. Information about each course, such as
professor, department, and prerequisites will be included to help students make informed
decisions. The new system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative choices in case
the student cannot be assigned to a primary selection. Course offerings will have a
maximum of ten students and a minimum of three students. A course offering with fewer
than three students will be canceled. For each semester, there is a period of time that
students can change their schedule. Students must be able to access the system during
this time to add or drop courses. Registrar will decide when to activate registration
opening and when to close registration. Once the registration process is, the registration
system sends information to the billing system so the students can be billed for the
semester.
Professor will also need to see which students signed up for their course offerings. In
addition, the professors will be able to record the grades for the students in each class. At
the end of the semester, the student will be able to access the system to view an electronic
report card.
Draw the sequence diagram for delete element use case. Suppose user deletes line from
above displayed diagram.
Q22. Your college wants to make the process of marks online.Each instructor will update
internal marks on the college server which in turn is updated on the college website.
Student, parents, principal or any other can view the internal marks on the college
website. At the end of the semester when the external results are declared by the
university then an operator at the college server will contact the university server and get
the results and in turn update it to the college website too. College server will also do the
result analysis which will be helpful for the college administrative department.
entry/ turn off tube entry/ turn off tube Door open
entry/ turn off light entry/ clear time
Button pushed
entry/ sound warning beep
Timer timeout
Button pushed Door open Initial Cooking Stage
Button pushed
Extended Cooking entry/ set timer
entry/ turn on light
entry/ Add 1 minute to timer entry/ turn n tube
Timer timeout
Draw the class diagram for Oven class with all attributes and operations. Generate the
code and write the definition of OnEntry() function of Oven class.
Q24. Consider the product requirement specification of the One Minute Micro waver.
1. There is single control button available for the users of the oven.
2. If the oven door is closed and the user pushes the button, the oven will cook (i.e.
energizes the tube) for 1 minute.Timer is set to one minute time.
3. If the user pushes the button at any time when the oven is cooking, user gets an
additional minute of cooking time. For example, if the user has 31 seconds more cooking
time to go and she pushes the button twice, the cook time is now for 2 minutes and 31
seconds.
4. Using the button with the door open has no effect.
5. There is a light inside the oven.
6. Any time the oven is cooking, the light must be turned on.
7. Any time the door is open the, the light must be on..
8. User can stop the cooking by opening the door. Timer is cleared.
9. If the user closes the door, the light goes out. This is the normal configuration when
user has just placed the food inside the oven but has not yet pushed the control button.
10. If the oven times out (cooks until the desired present time), it turns off both the power
tube and the light. It also then emits a warning beep to tell the user that the food is ready.
Draw the sequence diagram for normal case of cooking for two minutes.
Draw either Mealy or Moore State chart diagram for oven object.
Q25. Specify how many scenarios are present in the following activity diagram.
(Useful for viva)
Q26. Consider the product requirement specification of the One Minute Micro waver.
1. There is single control button available for the users of the oven.
2. If the oven door is closed and the user pushes the button, the oven will cook (i.e.
energizes the tube) for 1 minute.Timer is set to one minute time.
3. If the user pushes the button at any time when the oven is cooking, user gets an
additional minute of cooking time. For example, if the user has 31 seconds more cooking
time to go and she pushes the button twice, the cook time is now for 2 minutes and 31
seconds.
4. Using the button with the door open has no effect.
5. There is a light inside the oven.
6. Any time the oven is cooking, the light must be turned on.
7. Any time the door is open the, the light must be on..
8. User can stop the cooking by opening the door. Timer is cleared.
9. If the user closes the door, the light goes out. This is the normal configuration when
user has just placed the food inside the oven but has not yet pushed the control button.
10. If the oven times out (cooks until the desired present time), it turns off both the power
tube and the light. It also then emits a warning beep to tell the user that the food is ready.
Draw the sequence diagram for interrupted cooking (i.e. when the user opens the door
while cooking.) Draw either Mealy or Moore State chart diagram for oven object.
Q27. Refer to the diagram to answer the question. What is the maximum concurrent
threads that is possible in the activity diagram? (useful for viva)
Q28. POS system is a computer used in place of a cash register in retail applications.
Besides recording transactions, the computer can track inventory, print informative
invoices and receipts, and handle credit and debit card payments. The system usually
incorporates some form of Barcode reader.
A sales clerk will process a sale for a customer allowing the customer to purchase an
item. The sale will automatically be tracked in the inventory system. The system requests
authorization from a credit card authority to debit the card holders account for a specific
purchase. Sales clerk has to validate himself before using the system. The manager is an
employee of the store responsible for running a particular store. This includes
management of employees as well as sales and inventory. The store manager changes the
price of an item that is part of a sale. ( Typically in the case of discounted or damaged
items).
Q30. Draw the use case Diagram for Election Information System. This system allows
the voters to register themselves. They will be given unique voters id. Contestants are
also registered by Election commissioner. Election commissioner will declare the
commencement of election. Now in this period all the registered users will cast the vote.
All the information is maintained in database. After some period EC will stop the voting
process. The System will do the counting and will declare the results of polling. Make
suitable assumptions and specify it.