active = 1;
total = 0;
while(active == 1)
    item = input('item#?');
switch item
    case 1
        disp('Cheeseburger, $5.00');
        total = total + 5
    case 2
        disp('Drink, $1.25');
        total = total + 1.25
    case 3
        disp('Candy, $1.00');
        total = total + 1.00
    case 4
        total
        break
    case 5
        error('INPUT ERROR!  EEEK!')
    case 6
        break;
    case 'X'
        disp('Shutting Down')
        return
    otherwise
        continue
end
end
disp('Thank You!')
       