15.10. Assume you were part of a team that developed software for a chemical plant, which failed,...
Question:
15.10. Assume you were part of a team that developed software for a chemical plant, which failed, causing a serious pollution incident. Your boss is interviewed on television and states that the validation process is comprehensive and that there are no faults in the software. She asserts that the problems must be due to poor operational procedures. A newspaper approaches you for your opinion. Discuss how you should handle such an interview.
Figure 15.12 Door entry code 1 entryCode = lock.getEntryCode () ;
2 if (entryCode == lock.authorizedCode)
3 {
4 shieldStatus = Shield.getStatus ();
5 radiationLevel = RadSensor.get ();
6 if (radiationLevel < dangerLevel)
7 state = safe;
8 else 9 state = unsafe;
10 if (shieldStatus == Shield.inPlace() )
11 state = safe;
12 if (state == safe)
13 {
14 Door.locked = false ;
15 Door.unlock ();
16 }
17 else 18 {
19 Door.lock ( );
20 Door.locked := true ;
21 }
22 }
Step by Step Answer: