In the student grade example, we can write instructions that cause the computer to input a record for a particular student, compute the grade based on the contents of the exam and assignment score fields, and print (output) the sudent's name and his or her grade.