%Lab 25 Solution %Patrick D. Schmid clear; %load the file and put it into column vectors load fuelstationdata.txt id = fuelstationdata(:,1); capacity = fuelstationdata(:,2); date = fuelstationdata(:,3); %set sentinel to a value that will execute the loop checkid = 1; %while loop while (checkid > 0 & checkid <= 10) checkid = input('Enter an ID for a fuel station (1-10):'); if (checkid > 0 & checkid <= 10) fprintf('For fuel station %2.0f:\n', id(checkid)); fprintf(' Capacity = %5.0f\n', capacity(checkid)); fprintf(' Date Scheduled = %2.0f\n', date(checkid)); lab25func(id(checkid), capacity(checkid), date(checkid)); end end