Question: Given below are parts of the code segment actually written by th students for date validation. The two students used two differer approaches as given


Given below are parts of the code segment actually written by th students for date validation. The two students used two differer approaches as given in the code segments 6a an two w Which 6. pective thi ould you think is easier from a white box testing pers of the techniques of white box testing discussed in chapter would be most relevant to apply for 6a and which for 6 would you improve the effectiveness of the code in terms How susceptibility to defects in either case and ability to detect defect more easily? CODE FOR DATE VALIDATION - PROBLEM 6 - SEGMENT 6a int month days [13]= {0, 31, 28, 31, 30, 31, 30, 31, valid -TRUE; if (is leap-year (yy)) if (mm 12) valid FALSE; 31,30, 31, 30, 31 ; month-days [2] = 29; else if (day month (month length[month]) valid FALSE; else if (year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
