You are asked to simulate a fast food shop operation,with people (both consumers and workers) and various kinds of food served at the shop,and perhaps other things,such as time of the day (morning or lunch time).When it is the busy time like breakfas

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 13:20:08

You are asked to simulate a fast food shop operation,with people (both consumers and workers) and various kinds of food served at the shop,and perhaps other things,such as time of the day (morning or lunch time).When it is the busy time like breakfas
You are asked to simulate a fast food shop operation,with people (both consumers and workers) and various kinds of food served at the shop,and perhaps other things,such as time of the day (morning or lunch time).
When it is the busy time like breakfast or lunch,the number of worker or the amount of prepared food might need to be increased.The food already made and stored would have a limited shelf-life.
If the demand for the particular food is low,the over-stocked food might be wasted.Your simulation should be able to show this kind of thing.Some emergent behavior could be happen
something like customers' change of mind.A customer might want to change his or her order
depending on the food on what prepared food is available,assuming they're in a hurry,or they
might prefer freshly made food and decide to wait.

You are asked to simulate a fast food shop operation,with people (both consumers and workers) and various kinds of food served at the shop,and perhaps other things,such as time of the day (morning or lunch time).When it is the busy time like breakfas
时间类应该有private Time t;//时间
估算是lunch 还是supper等的方法(给一个范围就是了.)同时,这些用餐时间到了,要触发相应的动作,增加食物之类的,增加服务员什么的.
对于不同的角色,比如服务员,厨师,清洁工等都是一个类.这些类有一个共同的基类,person类,
peoson类可以提供一个虚函数的接口,这个可以命名display(),每个人角色不同,干的事也就不同你可以定义他们的属性,由于你题目里没有要求对这些对象操作,没有什么管理之类的操作,可以不加什么.但是每个类都应该实现父类的虚函数接口……
关键的类不是上面的,对于上面的类你没有特别要求,食品的属性这些自己定义.
对于改order这个不难,costomer把order给服务员,服务员来取食物.由于食物是储备好的,中间可以打断,只要没有完成这个过程,在编程时可以设置几秒中的时间作为取食物时间进行模拟.
对于用户们的喜好,这要抽样统计的(如果觉得没法模拟,可以这样,以每天来的前50个顾客的菜单为样本,统计出最受喜爱,中等和最不受喜爱的食物),这只要一个数据结构就ok,然后显示食物是多储备了还是少了,好让厨师进行处理.
如果是关键课程的大作业,这个题目要用到Order
Pattern ,楼主可以百度这个pattern.

if you____(ask) to a friend's home ,you will.are asked? are being asked? You ____ to go to the teacher's office right now.A.were asked B.are asked为什么? You should have asked what you are supposed to wear.should have askedmeans-------------A.didn't B.asked C.will ask D.didn't like asking Are you sure you didn't do anything to this?用He asked变间接引语 what are you going to do,if you are asked to work overtime 不是翻译,100个字,英文的, “Are you going to see the patient tomorrow,Jane?”she asked.改为She asked jane..she...怎么 'Are you going to retire?'The reporter asked.'Where are you going?'The girl asked.怎样将这两句直接引语,转换成间接引语? “How are you going to spend your holiday next month,Betty?”she asked改为间接引语 -What do you m____? --Tom asked weakly. --We are not going to have the test today. 把直接引语变成间接引语,He asked,“Where are you going to get off,John?” Are you being attended to,sir?He asked变成间接引语 when are you going to see thefilm.the girl asked me(合并为一句) this passage is very important,so you are asked to ____(memory)it What are you going to do?he asked 怎么改成宾语从句? 直引变间引my mother asked me,are you going to the park with me tomorrow? if you are asked to give one answer,only write one.好人一生平安 People will know that you are not going to do what they have asked you to do .What_____in the holidays,Daming?asked Lingling.A.did you do B.are you going to doC.were you doing