Complete the trace table for the function IsValid() when it is called with "Liz.123@big@net", and state the value returned.
Points that gain marks
- One mark for each area of the table: Dots, Ats and Others all start at 0 and Valid at TRUE.
- Others counts up 1, 2, 3 for 'L', 'i', 'z', then 4, 5, 6 for '1', '2', '3' and 7, 8, 9 for 'b', 'i', 'g'.
- Dots becomes 1 at the '.'.
- Ats becomes 1 at the first '@' and 2 at the second.
- Valid becomes FALSE at the second '@', and the loop ends there.
- (ii) The function returns FALSE.
In this lab: Level 'Exam: is it an email?' is this trace table, with every value checked as you type.