Question: Software functional faults This exercise refers to the program computing the average value of a set of numbers, presented in section 5.4.2. 1. Consider the

Software functional faults This exercise refers to the program computing the average value of a set of numbers, presented in section 5.4.2.function Average (A: in Set) return Element is Sum: Element: 0.0; begin

1. Consider the two design faults of lines 5 and 7 shown in Figure 5.13.
Analyze these faults and determine all the input vectors which provoke failures . Compare the seriousness of these failures.
2. A third fault has led to the following pro gram (Figure 5.18). What are the input activation conditions and their relative failures? What extern al consequences could result from these failures?

function Average (A: in Set) return Element is Sum: Element: 0.0; begin for I in A'range loop Sum: (A(I) + Sum)/2; end loop; return Sum; end Average Figure 5.18. Design faults

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Systems Analysis And Design Questions!