学期的分配 [英] assigment of the semester

查看:51
本文介绍了学期的分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一位当地的零售店主受到了启发,他们的机器人模仿了他店内销售产品的过程。产品通过墙壁放置在货架上。基本上,当客户请求产品时,所有者检查该产品是否有库存。如果是的话,他走过去收集它并告诉价格。然后,他从客户那里收到钱,然后走到收银台,在那里他要付出的金额。然后,直到计算更改(如果有)并打开托盘。然后所有者给客户更改。



按照设计有限状态机的5个步骤,设计一个具有必要功能的机器人,然后用C ++编写代码。你可以包含你认为合适的功能。

A local retail shop-owner has been inspired to have a robot that mimics the process of selling products in his shop. The products are placed on the shelves by the wall. Basically, when a customer requests for a product, the owner checks if such product is available in-stock. If it is, he walks over to collect it and tells the price. He then receives money from the customer, then walks over to the till, where he punches in the amount to be paid. The till then computes the change if any and opens the tray. The owner then gives change to the customer.

Following the 5 steps in designing a Finite State Machine, design a robot with the necessary functionalities, and then code it in C++. You may include as much functionality as you see fit.

推荐答案

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,或学习魔术词: 你想要炸薯条吗?
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, or learn the Magic Words: "Do you want fries with that?"


这篇关于学期的分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆