This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: the letter grade to the user. Assume the grades are calculated as A : 90100 B : 8090 C : 7080 D : 6070 F : < 60 If a student achieves the exact score of 70, 80, or 90, give him / her the higher grade. To turn in your homework. concatenate the two function scripts into a single text le, named lastname hw3.txt , which should look something like this: % CSC 13, Section 01, Homework 3, Your name function [y, t] = plotsine(A, f, phi) % % [y, t] = plotsine(A, f, phi) % % plots five cycles of a sine wave with amplitude A % frequency f, and phase phi (in radians), and returns two vectors % y and t which contain, respectively, the sine wave values % and the time instants spanning five cycles. % . . . end function avg grade(scores) % % avg grade(scores) calculates the average grade from an input vector % containing test scores. % . . . end % End of file The vertical dots indicate where you have to ll in the code....
View
Full
Document
This note was uploaded on 02/29/2012 for the course CSC 113 taught by Professor Phillipregali during the Fall '10 term at Catholic University of America.
 Fall '10
 PhillipRegali

Click to edit the document details