hw3q1 - elseif (GroupAmount >=4); Cost =...

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

View Full Document Right Arrow Icon
fprintf('Number of people in group \n'); Cost = 0.0; GroupAmount = input(''); if (GroupAmount >20); Cost = 5.00*GroupAmount; elseif (GroupAmount >=9); Cost = 6.0*GroupAmount;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: elseif (GroupAmount >=4); Cost = 6.5*GroupAmount; elseif (GroupAmount); Cost = 7*GroupAmount; end e fprintf('Total Cost is $%0.2f \n', Cost);...
View Full Document

This note was uploaded on 09/19/2011 for the course ENGE 1114 taught by Professor Twknott during the Fall '06 term at Virginia Tech.

Ask a homework question - tutors are online