writes out assignment in psuedocode