Menu

Question: • Design A Component Which “Intercepts” Input From A Partner Sensor And Takes Action To Ensure Safe Processing (See The Ariane 5 ): 1. Use Pseudo-Code To Show The Design Of A Set Of Reusable Input Validator/Corrector Modules. Each Must Assess The Input And Return A Valid Value And An Indicator Of The Value’s Reliability:A. Integer Input Which Must Be

Question: • Design A Component Which “Intercepts” Input From A Partner Sensor And Takes Action To Ensure Safe Processing (See The Ariane 5 ): 1. Use Pseudo-Code To Show The Design Of A Set Of Reusable Input Validator/Corrector Modules. Each Must Assess The Input And Return A Valid Value And An Indicator Of The Value’s Reliability:A. Integer Input Which Must Be

• Design a component which “intercepts” input from a partner sensor and takes action to ensure safe processing (see the Ariane 5 ):

 

1. Use pseudo-code to show the design of a set of reusable input validator/corrector modules. Each must assess the input and return a valid value and an indicator of the value’s reliability:

a. Integer input which must be within a given range.

b. Date input which must be within a valid range.

c. String input which must only contain letters and digits.

 

2. Use pseudo-code to show how an automated mission-critical system would manage the exception of a “less-than-perfectly-reliable” value.

 

3. Use flow diagramming and to describe a proactive reuse certification process for verifying that this component is well-designed for reuse

Expert Answer

Step 1

1) Pseudo-code for Reusable Input Validator/Corrector Modules:

a. Integer Input Validator:

function validateIntegerInput(input, min, max):
if input is an integer:
if input >= min and input <= max:
return (input, "Valid")
else:
return (min, "Corrected")
else:
return (0, "Invalid")
Explanation:
  • validateInt.

OR