app HW3 - % creates a vector of grade points set to 0 GPs =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% 8/29/2009 6:28 PM % Script Name: app % Script Variable: % gpa3000 - George P. Burdell's GPA for the 3000 level classes he % took in 1969. % This line loads the vectors "courses", "grades", and "hours". load grades.mat; % DO NOT EDIT THIS LINE apB = courses>=3000 & courses apGrades = grades(apB); % new vector of grades for courses that only include 3000 level classes apHours = hours(apB); % hours that correspond to apGrades
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % creates a vector of grade points set to 0 GPs = zeros(1, length(apGrades)); % adjusting the grade points according to letter grades GPs(apGrades >= 90) = 4; GPs(apGrades >= 80 & apGrades < 90) = 3; GPs(apGrades >= 70 & apGrades < 80) = 2; GPs(apGrades >= 65 & apGrades < 70) = 1; % if an F, the grade point stays a zero % adjusting grade points according to credits GPs = GPs .* apHours; % finding gpa gpa3000 = sum(GPs) ./ sum(apHours);...
View Full Document

This note was uploaded on 10/22/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Tech.

Ask a homework question - tutors are online