Question: / * * Test 5 * * / System . out . printf(%%n-------Test 5: the Student should not be suspended (1 mark)-- -); System .

 / * * Test 5 * * / System . out

/ * * Test 5 * * / System . out . printf("%%n-------Test 5: the Student should not be suspended (1 mark)-- -"); System . out . printf ("%Expected output: Colin Allcars, student number : 223 is in good standing: true") ; System . out . printf ("%nActual output : %s is in good standing: %s", st1, st1 . Student InGoodStanding ( ) ) ; if (st1. Student InGoodStanding( ) ) { marks+ +; System. out . printf("%nYour total marks are now: %. Of/%. Of=%.1f%%", marks, totalMarks, marks / totalMarks * 100) ; } else { failedTest . add("Test 5") ; /* * Test 6 **/ System . out . printf("%non-- -Test 6: suspend the Student (1 mark) " ) ; st1 . suspendStudent ( ) ; System . out . printf( "%nExpected output: Colin Allcars, student number : 223 is in good standing: false"); System. out . printf("%nActual output : %s is in good standing: %s", st1, st1 . Student InGoodStanding ( ) ) ; if ( ! st1 . Student InGoodStanding( ) ) { marks+ +; } else { failedTest . add("Test 6")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!