This preview shows page 1. Sign up to view the full content.
Unformatted text preview: elseif (ScrewNumber); odds=odds+1; %fprintf('Place in Odds Cup, Number of Screws in Odds Cup %0.0f \n', odds); end response = input('Do you wish to enter another screw size? Y or N?\n', 's'); end e fprintf('Machine Screw Sorting and Counting Algorithm\n'); fprintf(' #6 #8 #10 #12 Odd \n'); fprintf('%5.0f %5.0f %5.0f %5.0f %5.0f \n', num6, num8, num10, num12, odds); fprintf('The number of machine screws correctly sorted is %0.0f\n', (num6+num8+num10+num12)); fprintf('The total number of machine screws sorted is %0.0f\n', (num6+num8+num10+num12+odds));...
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.
- Fall '06