4) Software Engineering
4) Software Engineering
TM3541906F1PV1
TM354/D
SOFTWARE ENGINEERING
Figure 2 Before and after object diagrams for reassign salesperson use case
Extract A
int max = a[0];
for (int i : a)
if (i > max) {max = i;}
int min = a[0];
for (int i : a)
if (i < min) {min = i;}
int range = max - min;
Extract B
float sx = 0;
float ssx = 0;
float n = a.length;
for (int x : a) {
sx = sx + x;
ssx = ssx + x*x;}
float vr = ssx/n - (sx/n)*(sx/n);
(5 marks)
Figure 5 Incomplete use case diagram for the proposed MRC software system
(6 marks)
(c) Give one example of a functional requirement for the MRC, together with a
potential non-functional requirement that could apply to the functional
requirement you have chosen, stating what category your non-functional
requirement belongs to.
(2 marks)
(d) What would be a fit criterion for the functional requirement you gave in (c)
above?
(1 mark)
(e) Table 1 below is an incomplete textual description of the use case book a
meeting from the proposed MRC software system.
Table 1
3 ?
4 ?
5 ?
Extensions
3.a.1 ?
Figure 6 Incomplete analysis model for the proposed MRC software system
(9 marks)
A method
calculateFare(int miles, int passengers)
is required which will accept a distance in miles and a number of
passengers, both non-negative values, and calculate the travel expenses
claimable.
12 TM354 June 2019
Copy Table 4 below and add a further five black-box tests that would be
suitable for testing this method, using the same format as Tests 1 and 2.
You should choose your five tests with the aim of maximising the chances of
detecting any faults there may be in the coding of the method.
(5 marks)