Slide 1Topic 17 assertions and program logic Copyright Pearson Education, 2010 Based on slides bu Marty Stepp and Stuart Reges from http://www.buildingjavaprograms.com/ "As…