一个应用逻辑题目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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 01:40:48
一个应用逻辑题目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

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

一个应用逻辑题目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 逻辑题,题目如图所示, 逻辑分析数学题目 求几道逻辑题目 ——you —— anything unusual about our car?Not within the last three days.A Do;find B Did ;find Chave ;found D Are findingHave you ever seen Mr.Johnson recently?Yes.I ——to say “hello” to youA am asked Bhave asked C asked D was aske 帮忙做几个初二下的英语间接转述的1.what can i do for you?she said to me2.“My sister is doing washing” Amy said to me3.The earth is smaller than the sunMy father said to me4.Are you good at English?H said to me5.My father aske Hi Thanks for your e-mail .you aske me about my friends and how i like to do.英语改错 推理逻辑在生活中有哪些应用啊 “物理隔离”“逻辑隔离”详解网络应用 反意疑问句的一个题目Q:You are never late for school,are you?( )A:a.yes,sometimes.b.No,sometimes. 关于逻辑主语和状语的独立主格结构的问题.在非谓语动词前加上逻辑主语可表一个相当于状语从句的意思,是否有如下改法:You shouldn't talk to them while they are eating.可否改为:they eating,You should 跪求大学英语演讲稿What are you proud of?还有一个题目:How to enrich campus activities after class? You shouldn't believe you are more than you are .翻遍了字典和百度也没翻成TAT求汉语逻辑顺序正常…… 求一个逻辑问题 出一个逻辑问题! 一个逻辑题 在做计算机网络仿真实验时,一个题目是写出本机用的所有逻辑.在这里,逻辑地址是什么啊?如何获得? 找错:Hello,this is Ben.Who are you?A.this is B.Who C.You 这是试卷上的一个题目是电话用语