2015-11-11 30 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模块,并使用您的早期数据结构