tickets - fine = 50 + (MPH - 80)*3; elseif MPH >= 90...

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

View Full Document Right Arrow Icon
function[fine]=ticket(MPH) MPH = round(MPH); fine = 0; fine = 20 + (MPH - 60)*1; fine = 30 + (MPH - 70)*2;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: fine = 50 + (MPH - 80)*3; elseif MPH >= 90 && MPH <=99 fine = 80 + (MPH - 90)*4; elseif MPH >=100 && MPH <=109 fine = 120 + (MPH - 100)*5; elseif MPH >=110 fine = 1000; else end...
View Full Document

This note was uploaded on 11/16/2009 for the course ENGIN 7 taught by Professor Horowitz during the Spring '08 term at Berkeley.

Ask a homework question - tutors are online