Slide 1Written by Paul Pu All Rights Reservedwww.torontocollege.com 1 Input and Output Slide 2 Written by Paul Pu All Rights Reservedwww.torontocollege.com 2 File Input and…