I tried to run the supplied code but received an error for each of the three 'text' statements: ERROR 180-322:…