
Originally Posted by
lvelazquez83
all i have is the following which i dont even know if its the right place to start.
Lot = input ('Which lot are you using? ')
switch lot
case (long term)
case (short term)
i honestly don't know where to go from here. i want the program to ask the user how many weeks, hours, days and minutes they were in that particular lot after they chose short/long term parking. any suggestions?
Try running this code:
Code:
OK=0;
while (OK==0)
Lot = input ('Which lot are you using? ')
switch lot
case (long term)
disp('long term')
OK=1;
case (short term)
disp('short term')
OK=1;
otherwise
disp('try again')
end
end Then add additional code to do the remaining processing
CB