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.
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
Get step-by-step solutions from verified subject matter experts
