Question: System . out . printf( %%n%n -Test 33: Test to ensure invalid Instructor will not be added: (1 mark)-- --) ; System . out .

 System . out . printf( "%%n%n -Test 33: Test to ensure

System . out . printf( "%%n%n -Test 33: Test to ensure invalid Instructor will not be added: (1 mark)-- --") ; System . out . printf("%Expected output : java. lang. IllegalArgumentException: Professor Frank Enstein is not qualified to teach COMP9999" ) ; System . out . printf("%nActual output : " ) ; try { Course comp9999 = new Course (frank, "COMP9999", "Swift 101", "B230", DayOfweek. THURSDAY, LocalTime . parse( "13:00"), 20) ; failedTest . add( "Test 33") ; } catch (IllegalArgumentException e) { System . out . print (e) ; marks+ +; System. out . printf("%nYour total marks are now: %. of/%. of=%.1f%%", marks, totalMarks, marks / totalMarks * 100) ; System. out . printf("%%n! -!") ; System. out . printf ("%n!~ ~ Course With lab Tests - - !" ) ; System . out . printf("%n! -!" ) ; /* *Test 34 **/ System. out . printf("%%n-- -Test 34: Test creating a valid lab course: (2 marks)- -") ; Instructor labGuy = new Instructor ( "Dan", "Gerus", 1000013, "15 Risk Ave. ", "Barrie", "L3S 146", LocalDate. of (2011, Month . AUGUST, 22), LocalDate . of (1982, Month . JUNE, 6) ); labGuy . addCourseToInstructorAbilities("COMP2004-LAB" ) ; karenV . addCourseToInstructorAbilities("COMP2004" ) ; CourseWithLab comp2004 = new CourseWithLab (karenV, "COMP2004", "FX GUIS", "E208", DayOfWeek. MONDAY, LocalTime . parse("08:00"), 3, labGuy, "E204", DayOfWeek. WEDNESDAY, LocalTime . parse( "15:00") ) ; System. out . printf( "%nExpected output: COMP2004-FX GUIs with lab") ; System . out . printf ("%nActual output : %s" comp2004 . toString( ) ) ; if ( comp2904. tostri als ("COMP2904- GUTs with lab"))

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!