文件名称:TelephoneService
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:38.37kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
题目:电话客户服务模拟
问题描述:
一个模拟时钟提供接听电话服务的时间(以分钟计),然后这个时钟将循环地自增1(分钟),直到到达指定的时间为止。
在时钟的每个“时刻”,就会
——执行一次检查来看看当前电话的服务是否已经完成,
如果是,这个电话从电话队列中删除,模拟服务将从队列中取出下一个电话(如果有)继续开始。
——同时还需要执行一个检查来判断是否有一个新的电话到达,
如果有将其到达的时间记录下来,并为其产生一个随机服务时间,这个服务时间也被记录下来,然后将这个电话放入电话队列中,
当客户服务人员空闲时,按照先来先服务的方式处理这个队列。
当时钟到达指定时间时,不会再接听新电话,但是服务将继续,直到队列中所有电话得到处理为止。
要求
程序需要处理的初始数据包括:客户服务人员的人数、时间限制,电话到达的速率,平均服务时间。
程序产生的结果包括:处理的电话数,每个电话的平均等待时间.-Title: telephone customer service simulation
Problem Descr iption:
An analog clock to answer the telephone service time (in minutes), then the clock will cycle to increment a (minutes), until the specified time is reached.
Each "moment" of the clock, it will
- Perform an inspection to see the current phone service has been completed,
If yes, this phone is removed from the telephone queue, analog service will go out of the queue the next call (if any) to continue to start.
- Also need to perform an inspection to determine whether there is a new call arrives,
If its time of arrival recorded for a random time, the time is recorded, then the phone into the phone queue,
When the customer service staff is idle, in accordance with a first-come first-serve way to deal with this queue.
When the clock reaches the specified time, no longer answer the new call, but the service will continue until all calls in the queue handling so far.
Requirements
The program needs to deal with the init
问题描述:
一个模拟时钟提供接听电话服务的时间(以分钟计),然后这个时钟将循环地自增1(分钟),直到到达指定的时间为止。
在时钟的每个“时刻”,就会
——执行一次检查来看看当前电话的服务是否已经完成,
如果是,这个电话从电话队列中删除,模拟服务将从队列中取出下一个电话(如果有)继续开始。
——同时还需要执行一个检查来判断是否有一个新的电话到达,
如果有将其到达的时间记录下来,并为其产生一个随机服务时间,这个服务时间也被记录下来,然后将这个电话放入电话队列中,
当客户服务人员空闲时,按照先来先服务的方式处理这个队列。
当时钟到达指定时间时,不会再接听新电话,但是服务将继续,直到队列中所有电话得到处理为止。
要求
程序需要处理的初始数据包括:客户服务人员的人数、时间限制,电话到达的速率,平均服务时间。
程序产生的结果包括:处理的电话数,每个电话的平均等待时间.-Title: telephone customer service simulation
Problem Descr iption:
An analog clock to answer the telephone service time (in minutes), then the clock will cycle to increment a (minutes), until the specified time is reached.
Each "moment" of the clock, it will
- Perform an inspection to see the current phone service has been completed,
If yes, this phone is removed from the telephone queue, analog service will go out of the queue the next call (if any) to continue to start.
- Also need to perform an inspection to determine whether there is a new call arrives,
If its time of arrival recorded for a random time, the time is recorded, then the phone into the phone queue,
When the customer service staff is idle, in accordance with a first-come first-serve way to deal with this queue.
When the clock reaches the specified time, no longer answer the new call, but the service will continue until all calls in the queue handling so far.
Requirements
The program needs to deal with the init
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TelephoneService/makefile
TelephoneService/queue.c
TelephoneService/queue.h
TelephoneService/telephone_service.c
TelephoneService/电话客服模拟器.doc
TelephoneService
TelephoneService/queue.c
TelephoneService/queue.h
TelephoneService/telephone_service.c
TelephoneService/电话客服模拟器.doc
TelephoneService
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.