I need help creating a desk checking table from the following solution:
Table needs input data, expected data, first pass, second pass...
Calculate Total_Months_of_Age
Set Years to 0
Set Months to 0
DOWHILE Years NOT = 9999 OR Months NOT = 9999
Prompt for Years
Get Years
Prompt for Months
Get Months
IF Years NOT = 9999 OR Months NOT = 9999
Set TotalMonths to Years * 12 and add it to ‘months’
IF TotalMonths > 500
Display ‘Total Number of Months = ‘TotalMonths’, ‘***’
Else
Display ‘Total Number of Months = ‘ TotalMonths
ENDIF
ENDIF
ENDDO
Answers (1)