calccost - else_hrs=ttl_hrs-3 else_min=else_hrs*60...

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

View Full Document Right Arrow Icon
function cost = calccost(newplan, ttl_min) if newplan==1 cost = ttl_min*.25 elseif newplan == 2 cost = ttl_min*.15+60 else ttl_hrs=ttl_min/60;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: else_hrs=ttl_hrs-3; else_min=else_hrs*60; f3_hrs=ttl_hrs-else_hrs; f3_min=f3_hrs*60; cost = f3_min*.3+else_min*.22; end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online