LOOP TESTING : Test Case ID Input Data (n & marks) Test Description Expected Result Actual Result TC-01 n = 0 Verify loop skips entirely and program handles division by zero. Loop skipped, program should show error or handle gracefully. TC-02 n = 1, marks = [85] Verify loop executes exactly once. sum=85, avg=85, Grade=B TC-03 n = 2, marks = [90, 80] Verify loop executes twice and accumulates correctly. sum=170, avg=85, Grade=B TC-04 n = 5, marks = [100, 95, 90, 85, 80] Verify normal multi-iteration case. sum=450, avg=90, Grade=A TC-05 n = 3, marks = [30, 40, 45] Verify loop calculates average leading to Fail grade. sum=115, avg≈38.33, Grade=F TC-06 n = 3, marks = [50, 60, 40] Verify average is exactly on grade boundary (C). avg≈50, Grade=C TC-07 n = 100, marks = [valid marks up to 100 subjects] Stress test with maximum allowed iterations. Handles all inputs, computes correct average & grade. TC-08 n = 3, marks = [-10, 50, 60] Test invalid input (negative marks). Reject invalid input or calculate average including negative. TC-09 n = 3, marks = [100, 100, 100] Test upper boundary (all max marks). avg=100, Grade=A TC-10 n = 3, marks = [0, 0, 0] Test lower boundary (all zero marks). avg=0, Grade=F