登录
首页 » 其他项目 » 我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第...

我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第...

于 2023-05-25 发布 文件大小:1.42 kB
0 257
下载积分: 2 下载次数: 1

代码说明:

我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第一个点出发,终点是在第70个点上。 时钟按秒来数计。随着时钟的转动,程序能够根据下述规则来调节乌龟和兔子的位置。动物 跑动类型 占用时间 跑动量乌龟 快走 50% 向右3个点 后滑 20% 向左6个点 慢走 30% 向右1个点兔子 睡觉 20% 不动 大后滑 20% 向右9 个点 快走 10% 向左12个点 小步跳 30% 向右1个点 慢后滑 20% 向左两个点 -procedures we will use to simulate the traditional hand problems. We will adopt the random number generator of the development of the simulation program. Another winner set up 70 points, each point represents the runway competition of a possible location. The turtle and a rabbit from the starting point and finish in the first 70 points. According to the clock to a few seconds of dollars. As the clock turned to procedures under the following rules to regulate turtle and the rabbit"s location. Running types of animals occupying volume running time 50% of turtles to leave three points right after sliding 20% six points left walking 30% a point right rabbits sleep 20% Fixed After a 20% slide right nine points to leave 10% left

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Doude Zhu little game with computer chess, the program is simple.
    斗地主的小游戏,可以与电脑进行对弈,程序比较简单。-Doude Zhu little game with computer chess, the program is simple.
    2022-05-30 04:23:25下载
    积分:1
  • neural network series information and construction.
    neural network series information and construction.
    2022-07-06 23:38:29下载
    积分:1
  • 相关软件: ・帝国网站管理系统(Ecms) v3.5 繁体版 ・搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ・注意:本站软件一律只用鼠标...
    相关软件: ・帝国网站管理系统(Ecms) v3.5 繁体版 ・搜索更多与"帝国网站管理系统(Ecms) "相关的软件 注意事项: ・注意:本站软件一律只用鼠标左键打开,否则将不能正常下载! ・如果出现该页无法显示,请多试几次;如果总是不能下载,请点击报告错误,谢谢! ・请一定升级到最新版[WinRAR]才能正常解压本站提供的软件;如有其它问题,欢迎发信联系管理员. ・由于网站服务器承受能力有限,请其他网站不要直接链接我们提供的软件,-related software : Empire Site Management System (Ecms) v3.5 search for more traditional version of "Empire Site Management System (Ecms)" relevant software Note : Note : site software will be used only to open the left mouse button, they can not download ! If the page can not be displayed, I would like him tried several times; If they can not download, click reporting errors, thank you! Requests must upgrade to the latest version [WinRAR] in order to extract the normal site for the software; For other questions, contact managers welcomed the letter. As network Station server capacity is limited, please other sites do not provide us with direct links to software, thank you! !
    2022-04-28 13:18:14下载
    积分:1
  • 微软的XP加速软件,微软官方发布,请谨慎使用
    微软的XP加速软件,微软官方发布,请谨慎使用 -accelerate Microsoft"s XP software, Microsoft officially released, please use caution
    2023-02-08 22:55:04下载
    积分:1
  • 反正就知道我下载的都是对学习计算机有用的东西!大家自己看吧...
    反正就知道我下载的都是对学习计算机有用的东西!大家自己看吧-Anyway, I know it is right to download the computer learning something useful! We ion battery
    2022-03-04 08:05:54下载
    积分:1
  • Sierpinski常见分形
    sierpinski common fractals
    2022-11-09 23:30:03下载
    积分:1
  • 电脑小助手
    功能如下:可以设置提醒方式:闹钟响铃提示、启动指定任务、关机、重启、注销、锁定等开机自动启动桌面可以显示提醒的内容,使用状态以及备注桌面显示时钟添加闹钟添加、删除、修改、退出任务桌面时钟鼠标穿透(即可以将显示的时钟固定在某个位置)桌面时钟前置
    2023-01-16 03:10:04下载
    积分:1
  • 双向DC_DC变换器
    应用背景设计并制作了一个用于电池储能装置的双向 DC-DC 变换器,实现电池的充放电功能,功能可由 按键设定,亦可自动转换。 关键技术 作品设计了一个电池储能的双向DC-DC变换器。该系统以STM32F103ZET6单片机作为控制核心,其输出PWM信号通过6N137光耦隔离,IR2110驱动功率MOS,采用LM358做电压跟随,INA282采集电流,通过ADS1115采集到单片机以实现负反馈控制。用TFT-LCD进行显示操作界面及相应参数,加上PID算法,能够实现软件上的过冲保护,及稳定充电电流。GUI界面的应用,使得人机交互更为友好、整体操作更为智能、简洁。通过测试,该系统能够实现在1-2A范围内以0.01A的步进值进行调整,其精度高于5%。充电模式效率达95%,放电效率达96%以上。
    2023-01-02 16:35:05下载
    积分:1
  • 回溯算法与八皇后问题 算法设计的经典问题,是学习算法的朋友一定会遇到的问题...
    回溯算法与八皇后问题 算法设计的经典问题,是学习算法的朋友一定会遇到的问题-Backtracking algorithm and eight Queen
    2023-06-09 04:05:03下载
    积分:1
  • DSP281x_GlobalVariableDefs global variable source
    DSP281x_GlobalVariableDefs全局变量源程序-DSP281x_GlobalVariableDefs global variable source
    2022-02-06 23:14:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载