MATLAB: A fined commute program

attendancecommutefine

I want to make a commute program that fines fine over time.
I want to proceed in this order.
  1. The menu command first displays several names on the screen and then saves the time the menu was selected.
  2. If it is over 10 o'clock a.m., the program will automatically calculate the fine every 10 minutes.
  3. (However, it should show that there is no penalty at the time of attendance before 10:10.)
  4. If you click on the name when you go work, a name window will automatically be created for you to press again when leave work.
  5. It will reduce the fine every 30 minutes from the moment the user pass 7:00 pm.
I can even open the menu. But I do not know how to do calculations, and how to display and store time when I press a name.
And how can I summarize calculations every month and show the total amount?

Best Answer

I can't write the whole program for you but look up etime() to get the elapsed time. That will get you started.
Related Question