Professional Documents
Culture Documents
University of Mauritius Faculty of Engineering: Programme
University of Mauritius Faculty of Engineering: Programme
University of Mauritius Faculty of Engineering: Programme
FACULTY OF ENGINEERING
MAY 2010
INSTRUCTIONS TO CANDIDATES
This question paper consists of two (2) Sections : Section A and Section B.
SECTION A
Question 1
The SunShade hotel is planning to implement a hotel room reservation system in order
to manage room bookings. You have been requested to perform the following tasks.
(a) Implement a class named RoomBooking with the following private fields:
room_type <String> Room type (Standard, Deluxe, Family)
num_days <int> Number of days room is booked
num_room <int> Number of rooms
The class contains
− a constructor that requires arguments for room_type, num_days and num_room.
− a method that displays the details of the room booking
− a method that calculates and returns the booking charges, based on the following
daily room charges
[6 marks]
Page 1 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 1 – (Cont’d)
(c) Implement a class CreateBookings that will create an array of 5 room bookings as
follows:
Page 2 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 2
At the university, students registering for year I of the Computer Science programme
have to enroll in 5 compulsory modules. Three of them are assessed based on an end-of-
year examination (70 marks) and a coursework (30 marks) consisting of tests and
assignments. A student is said to pass such a module if he has above 30% in both
course-work and exams and if the overall mark (coursework plus exams) is above 40 %.
For the remaining two modules, as long as a student shows 80% class attendance and
submits a mini-project, he is deemed to pass. A student earns 6 credits for every module
he has passed.
The following UML diagram below models the enrollment of the batch of students.
ExamModule AttendModule
- CourseWork:double - Attendance:double
- ExamMark:double - MiniprojectSubmission: boolean
Question 2 – (Cont’d)
(b) You are to implement ALL the five classes. Some method descriptions are given
below:
[16 marks]
Page 4 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
SECTION B
Question 3
(a) State four views that UML provides to model a system. [2 marks]
(i) List all the possible scenarios that may take place while purchasing a
ticket from a point-of-sale terminal.
(ii) Draw one interaction diagram for the normal scenario.
[3 + 5 marks]
Page 5 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 4
The Multimedia University of Mauritius has a reputation for being a vanguard when it
comes to technology. As part of a larger effort to improve its mobility infrastructure and
offer students and staff a broader array of mobility services the university is planning to
deploy a Mobile Learning System (MLS) across the campus. The system will be
available free to staff, students and invited guests and will offer a flexible way to access
online resources.
The ultimate goal of MLS is to improve the learning experience of students through
innovative features that will not only support traditional methods of learning but also
raise the interest of users in discovering new subjects. The system will bring a new
dimension in the learning process through initiative of knowledge acquisition,
interactivity of the learning process, mobility while learning and through the use of
state-of-the-art technologies. A number of applications will needs to be developed so
that students and lecturers can have easy interaction with each other using their
wireless devices such as laptops, mobile phones, PDAs and personal computers. A new
user would require an average of 30 minutes training to start using the system
effectively.
MLS will consist of a wireless file transfer subsystem that will allow lecturers and
students to communicate in an ad hoc fashion. Students will submit assignments
wirelessly while lecturers will post lecture notes and other important documents to
student using this file transfer subsystem. Large files sharing and transmission will be
done using the WiFi technology and smaller files like a picture or short additional notes
will use Bluetooth transmission. All wireless transmission will be encrypted using the
WEP protocol. The system is password authenticated and passkeys are used to validate
Bluetooth devices.
MLS should provide an interactive whiteboard facility for users to share ideas and
sketches. Group discussions in classes become more interesting especially when the
expected outcome is graphical, therefore the whiteboard facility should provide a user-
friendly graphical interface. Moreover, MLS will consist of an audio and video
conferencing facility for group discussion on campus. Audio media will help students
listen to lectures whilst they are on the move while video would extend to them an
additional facility of visualising a lecture or a demonstration. Teleconferencing would
greatly facilitate mobile learning as students and tutors can log in at any time for an
interactive class in the comfort of their homes.
Page 6 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 4 – (Cont’d)
(a) Identify three functional and three non-functional requirements for the Mobile
Learning System from the case-study given above. [6 marks]
(d) Your software company has been chosen for the development of the Mobile
Learning System. You are required to develop the software quickly in an
environment of rapidly-changing requirements. You have been requested to
focus on specific functionalities without adding any that are not specifically
requested, which may slow down the process. The development course should
be kept simple through systematic and regular testing and design improvements.
State the development life-cycle model that will be more appropriate for the
Mobile Learning System. Justify your answer by explaining the benefits of the
chosen life cycle model. [6 marks]
Page 7 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 5
(a) (i) Give a brief description of how function points are calculated.
(ii) State the strengths of function-points-oriented metrics over size-oriented
metrics. [4 + 2 marks]
(b) The following table provides information about several projects that were
implemented in the past:
Given that the estimated size of a new project is 98 KLOC and the number of
team members is now 9, estimate for the new project
(i) the duration
(ii) the cost
[4+ 4 marks]
Page 8 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 5 – (cont’d)
(c) The cost of in-house development for a software company averages £400 per day.
The company is considering the purchase of a software package that is 14 KLOC
that will cost £950,000. Initial evaluation of the package indicates it will need a
tailored interface to suit the company. This will involve extra in-house coding of
5 KLOC in the SEMI-DETACHED mode.
Use the parametric equations as shown in Figure 1 below, estimate
The Project a b c d
ORGANIC 2.4 1.05 2.5 0.38
SEMI-DETACHED 3.0 1.12 2.5 0.35
EMBEDDED 3.6 1.20 2.5 0.32
Figure 1
Page 9 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 6
(b) In an information system the valid range of values for a particular field ‘amount’
is 10,000 to 50,000. Derive test cases for testing the field ‘amount’ using:
(i) Equivalence partitioning method
(ii) Boundary value analysis method
[4 marks]
(c) Software review is a technique used to find errors at the analysis and design
stage. Briefly explain the following terms
Page 10 of 11
SOFTWARE ENGINEERING – CSE 2001Y(5)
Question 6 – (Cont’d)
(i) Based on the Basis Path Testing technique, calculate the value of
Cyclomatic Complexity of the flow graph given above.
[3 marks]
(ii) Based on the value of Cyclomatic Complexity calculated, derive the set of
basis test paths.
[3 marks]
/mjm
Page 11 of 11