12 SDD Maintenance of Software Solutions

MAINTENANCE ACTIVITY
Consider the following: A product written using Microsoft Access requires modification. This product is used to produce reports for a school. Using the existing product, levels of achievement for outcomes are input as either A, B, C, D, E or NA, which are displayed on the reports as Excellent, High, Substantial, Satisfactory, Elementary, or Not Assessed. The product is being modified to allow input to be carried out using a numeric keypad to increase efficiency. As a result the inputs will become 0, 1, 2, 3, 4 or 5. Two modifications are required to this task: 1.) Examine the data dictionary above. List and explain all the changes that need to be made as a consequence of altering the Grade Data type.

2.) Rewrite the following Visual Basic Source code so that it incorporates the modifications.
Public Function OutcomesResult(Result) Select Case Result Case Is = “a”, “A” OutcomeResult = “Excellent” Case Is = “b”, “B” OutcomeResult = “High” Case Is = “c”, “C” OutcomeResult = “Substantial” Case Is = “d”, “D” OutcomeResult = “Satisfactory” Case Is = “e”, “E” OutcomeResult = “Elementary” Case Is = “na”, “NA”, “Na”, “nA” OutcomeResult = “Not Assessed” Case Else OutcomeResult = “” End Select End Function

Sign up to vote on this title
UsefulNot useful