We know the secret of your success
PAPER TITLE: SOFTWARE DEVELOPMENT WITH JAVA
DATE: Wednesday 17 October 2007
Part 1
Question 1
Which two of the following statements about software development are true? (Select two options)
ANSWERS(Purchase full paper to get all the solution)
A. Software development is the process of getting from a customer’s needs to operational software that meets those needs.
D. In software development the term requirements refers to what is expected of a system.
Question 2
Question 3
Which two of the following statements about developing object-oriented software are true? (Select two options)
Question 4
Which two of the following statements relating to the requirements specification process are true? (Select two options)
Question 6
On the basis of the above information, which two of the following statements are true? (Select two options)
Question 7
On the basis of the above information, which three of the following statements are true? (Select three options)
If aLecturer and bLecturer are Lecturer objects that are linked to the same Department object then aLecturer and bLecturer must be linked to each other.
If aLecturer and bLecturer are Lecturer objects that are linked to each other then aLecturer and bLecturer must each be
linked to the same Department object.
Question 8
Which two of the following statements are true? (Select two options)
Question 9
Question 10
boolean isTreated()
Collection isTreated()
Question 11
Ward.
Patient to Ward.
Question 12
Patient object.
Question 13
Consider the class diagram and the sequence diagrams (a) and (b) that follow it.
Which one of the following statements is true? (Select one option)
Question 14
Which two of the following statements relating to detailed design are true? (Select two options)
Question 15
Which three of the following statements about implementation and testing are true? (Select three options)
Question 16
Which two of the following statements about user interfaces are true? (Select two options)
Question 17
Which two of the following statements about user interfaces and their design are true? (Select two options)
Question 18
Which two of the following statements about building graphical user interfaces (GUIs)
are true? (Select two options)
Question 19
Question 20
Part 2
Question 21 [20 marks]
A consortium of regional airlines needs a system to record information about the regional airports that support these airlines, and the flights operated by the airlines which depart and arrive at the airports in a single week (no other historical or future information needs to be kept by this system). Here is the relevant part of the requirements document for this system.
System domain
Each regional airport is identified by its location and provides support for three or more regional airlines. A regional airline may chose not to be supported by a particular airport, in which case its flights cannot depart or arrive there, but each airline needs the support of a minimum of two airports.
Each airport has up to 200 flights departing from it and up to 200 flights arriving at it each week. Each flight is operated by a single airline and has an identifying number, a date, a take-off time and a landing time. Each flight uses exactly one plane and is a direct short -haul flight completed in the same day. A flight is commanded by a pilot who must be an employee of the airline operating the flight. A pilot may not be employed by more than one airline. Regulations say that a pilot may not command more than
40 flights in a week. A flight cannot have more passengers than the maximum seating capacity of its plane (the capacity varies depending on the plane).
Use cases
Record a new flight. The airline administrator supplies the details of the new flight (identifying number, date (in the current week), take-off time and landing time) and identifies the following:
The system records the new flight.
Record new passenger. The airline administrator identifies a flight and supplies the new passenger’s name. If an additional passenger would cause the capacity of the flight’s plane to be exceeded, the administrator is informed of this fact. Otherwise, the system records the passenger’s name and that the passenger is on the flight.
List departing flights. The airline administrator identifies an airport. The system displays the flight identifiers, dates and take-off times of all flights departing from the airport that week, as well as the name of the airline operating each flight and the name of the pilot commanding the flight.
Here is an incomplete conceptual model with two classes missing.
(a) Copy this incomplete diagram into your answer book. Identify the two missing classes and put their names into the two blank rectangles in your diagram.
(b) Now complete the class diagram you began in (a), and write the class descriptions required for a conceptual model for the system. This should involve the classes in Figure 7 above, along with the classes identified in your solution to part (a), and no other classes.
Your answer should include:
(i) a complete class diagram;
(ii) class descriptions (you may omit comments).
(c) State an invariant that reflects the fact that a pilot may only command a flight if he or she is an employee of the airline operating the flight.
(d) State a real-world constraint evident from the requirements document that should be modelled by adding an invariant to the conceptual model. The constraint should be different from that in (c) above and should not relate to the uniqueness of an attribute value.
Question 22 [20 marks]
The following class diagram is a part of the structural model for a shop system.
ShopCoord is the coordinating class.
The following is a description of a use case for this system called Transfer Sales Assistant.
The user identifies a sales assistant and the department to which the sales assistant is to be transferred. The system records that the sales assistant now works in the given department and no longer works in the one that he or she previously worked in.
The object diagram below shows the relevant objects and links for a particular scenario of the use case, before the use case is initiated.
In addition the description of the Transfer Sales Assistant use case is changed to the following.
The user identifies a sales assistant and the department to which the sales assistant is to be transferred. This department must have fewer than six sales assistants currently working in it. The system records that the sales assistant now works in the given department and no longer works in the one that he or she previously worked in.
State whether these changes will require the coordinating method that you specified in (b) to have a pre-condition (in which case, state the pre-condition) or a change to its post-condition (in which case describe the change).
Question 23 [20 marks]
The following is an extract from a structural model for a system called the Garage System. It is incomplete but contains all the information you need to answer this question. It consists of a class diagram and class descriptions. The class diagram does not include a coordinating class. The class descriptions omit some irrelevant attribute, link and protocol information.
You may want to skim through this model first to get an overview. Refer to it as required when you are answering the question.
ii. Two addresses are usually considered to be the same if their number and postcode are the same. Specify a method for the Address class that will enable this concept of equality to be applied to Address objects. (Note that you are not required to write any code.)
iii. For each attribute of Address given in the specification above, state whether it would be appropriate to equip the Address class with a setter method for the corresponding instance variable. Give a brief justification in each case.
Question 24 [20 marks]
The design is comprised of two screens, as shown below.
The first screen
The first screen is intended to allow a user to choose to edit the settings either for central heating or for hot water. For each of these options, the user should choose to edit the settings either for weekdays or for weekends.
From the first screen the user can navigate via a button (Set) to the second screen.
The second screen
The second screen is for setting central heating or hot water times, depending on the choice made on the first screen.
This screen uses labels ‘1 2 3 4 5’ to represent weekdays and ‘6 7’ to represent the weekend, so the first row of times displayed relates to weekdays and the second to weekends. For each of weekdays and weekend four corresponding times are displayed: two ti
Purchase full paper by adding to cart
Last updated: Sep 02, 2021 01:11 PM
Your one-stop website for academic resources, tutoring, writing, editing, study abroad application, cv writing & proofreading needs.