function result = Washing() fprintf('=== WASHING CYCLE ===\n'); DoorCls(); WaterFul(); fprintf('Washing in progress...\n'); startTime = tic; elapsed = 0; while elapsed < 10 pause(1); elapsed = toc(startTime); fprintf('Operation timer: %d sec\n', elapsed); end fprintf('Washing cycle complete.\n'); fprintf('Shifting to next operation cycle...\n'); result = 1; end