Code a program that uses error-handling and input-validation procedures.
DefinitionCoding should include error handling and input validation accomplished by any of the following statements:
- Program-defined methods or functions
- Message box validating keyword
Related Standards of Learning
The student will design and apply computer programs to solve practical problems in mathematics arising from business and applications in mathematics.
The student will design, write, document, test, and debug, a computer program.
The student will write program specifications that define the constraints of a given problem.
The student will design and implement the input phase of a program, which will include designing screen layout, getting information into the program by way of user interaction and/or file input, and validating input.
The student will test a program using an appropriate set of data. The test data should include boundary cases and test all branches of a program.
The student will debug a program using appropriate techniques (e.g., appropriately placed controlled breaks, the printing of intermediate results, other debugging tools available in the programming environment), and identify the difference among syntax errors, runtime errors, and logic errors.