2015-11-11 29 views
-4

大家好,我需要編寫迷你項目,我不知道從哪裏開始或步驟如何。有人可以幫助我如何開始甚至讓我採取措施做什麼?我必須寫迷你項目,不知道如何開始

A perspective client has approached your company to write a program to help track 
students accessing the school cafeteria. The client will supply a list of current student 
names and ID numbers. The client would like the program to do the following: 


-Allow the student to enter the school ID number when they enter the cafeteria. 
-Keep track of the students who are currently in the cafeteria. 
-Display student names and when they logged in 
-Display the total number of students who are currently in the cafeteria. 
    Allow the student to enter the school ID number when they enter the cafeteria. 
-Keep track of all the students who accessed the cafeteria throughout the day. 
-Display only to authorized cafeteria personal all the students who came 
-in, when they came in, and when they left. 
+2

請下工夫第一。顯示你在想什麼,並嘗試過。然後尋求幫助。請閱讀[**如何在這裏提問](http://stackoverflow.com/questions/how-to-ask)。 –

+4

參加你的編程講座將是一個好的開始。 – Julien

回答

0
  • 允許學生,當他們進入食堂進入學校的ID號。

    看到raw_inputinput

  • 跟蹤目前誰是在食堂的學生。

    見詞典(甚至列表或其他一些Data Structure

  • 顯示學生的姓名,當他們在

    登錄

    看到printtime分別

  • 顯示總數的目前在食堂的學生。

    看到所有誰全天訪問食堂的學生len

  • 跟蹤。

    見詞典(甚至列表或其他一些Data Structure

  • 顯示只有授權食堂個人所有的學生誰進來

    看到printraw_input(或input在python3)

  • 在,他們什麼時候進來,什麼時候離開。

    看到printtime模塊,並使用您的早期數據結構