hw3q1logical - end...

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; end if ((GroupAmount >=9) & (GroupAmount 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: end if ((GroupAmount >=4) && (GroupAmount <=8)); Cost = 6.5*GroupAmount; end if (GroupAmount <4); 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