加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做INT2067、Python編程設計代寫
代做INT2067、Python編程設計代寫

時間:2024-11-08  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Assignment 1 
INT2067 Introduction to Programming and Problem Solving 
2024-2025 Semester 1 
Due Date: October 30, 2024 (Wednesday) 
1 Introduction 
In this assignment, you need to implement a text-based game based on the riddle about 
a farmer who needs to cross a river with a fox, a goose, and a sack of corn. 
2 Riddle 
A farmer with a fox, a goose, and a sack of corn needs to cross a river. The farmer has a 
rowboat, but there is room for only the farmer and one of her three items. 
Unfortunately, both the fox and the goose are hungry. The fox cannot be left alone with 
the goose, or the fox will eat the goose. Likewise, the goose cannot be left alone with 
the sack of corn, or the goose will eat the corn. How does the farmer get everything 
across the river? 
3 Game 
In your text-based game, the farmer can move at most one item to the other shore each 
time. You should ask the user to enter a command to determine what item the farmer 
wants to take at each turn. The game ends when the user quits the game or when the 
user has succeeded or failed. 
4 Basic Design 
You may follow the following basic flow in your program: 
 Show item locations. 
 Repeat: 
1. Ask for the next command. 
2. Update item locations if necessary. 
3. Show item locations. 
4. Exit the loop if the game has succeeded or failed. 
You may need to add other steps and/or flows to fulfill all the requirements. 
5 Requirements (70%) 
Your program should do the following: 
 [5%] Print the goal of the game at the start. 
 [10%] Ask the user to enter a command at each turn and continue until the user 
requests to quit or the goal has succeeded or failed. 
 [10%] Show the location of the boat and the three items (fox, goose, corn) clearly 
at the start of the game and after each turn. You may follow the output in the 
sample session. 
 Accept the following five one-character strings as valid commands: f, g, c, m or 
q. After receiving a valid command, the game should: 
o f, g or c: move the fox, goose, or corn, if available, to the opposite shore 
along with the boat. [10%] 
o m: move the boat to the opposite shore without any item. [5%] 
o q: quit the game. [5%] 
 [10%] Check whether the requested item is on the same shore as the boat when 
the game receives the command f, g or c. If not, it should prompt an error and 
allow the user to enter a command again. 
 [10%] Check whether the game has succeeded or failed after each turn. The 
game has succeeded if all items have been moved to the far shore. The game 
has failed if the fox has eaten the goose, or the goose has eaten the corn. When 
the game has succeeded, it should congratulate the user. When the game has 
failed, it should tell the user why. 
 [5%] Show an error if the user has entered an unrecognized command character 
(i.e. a string other than ‘f’, ‘g’, ‘c’, ‘m’ or ‘q’). 
6 Program Design and User Interface (30%) 
 [10%] You should break down your program into functions with reasonable 
length. 
 [10%] You should use functions and/or lists to reduce redundancy. 
 [10%] The output should be neat, and the required information should be shown 
clearly. The text in the output should be correct and contain no spelling 
mistakes. 
7 Submission Requirements 
 Your Python file should be named as assignment1.py. Submit only the Python 
file assignment1.py through Moodle. Failure to submit the file properly will 
result in a penalty of 5 to 20 marks. 
 See Moodle for the exact time of the deadline for submission. Late submission is 
usually not accepted. You should submit earlier to avoid possibly high tra  ic 
around the deadline. 
8 Hints 
Please check the discussions forum on Moodle regularly for any hints. 
9 Plagiarism Policy 
The assignment should be done only by yourself. Every line of code should be written by 
you. Discussions on the assignment should be kept at a high-level only. You are 
suggested to refer your classmates to the relevant notes or lab exercises if you want to 
help them. 
If cheating is found, both the copier and originator will get zero mark for the 
assignment. 
Repeat o  enders may result in a deduction of the course grade. 
If you have discussed the assignment with anyone, you should provide an 
acknowledgment at the end of your program file. Give the names of all classmates that 
you have discussed with. For example, your acknowledgement may look like this at the 
end of your program file: 
# Acknowledgement: I have discussed it with Thomas, Gordon, and Emily. 
10 Sample Session 1 
Welcome. 
You must bring the fox, the goose, and the corn across the 
river. 
------------------------ 
Boat 
------------------------ 
Fox Goose Corn 
You are now at the near shore, what do you want to take? g 
 Goose 
------------------------ 
Boat 
------------------------ 
Fox Corn 
You are now at the far shore, what do you want to take? m 
 Goose 
------------------------ 
Boat 
------------------------ 
Fox Corn 
You are now at the near shore, what do you want to take? f 
Fox Goose 
------------------------ 
Boat 
------------------------ 
 Corn 
You are now at the far shore, what do you want to take? g 
Fox 
------------------------ 
Boat 
------------------------ 
 Goose Corn 
You are now at the near shore, what do you want to take? c 
Fox Corn 
------------------------ 
Boat 
------------------------ 
 Goose 
You are now at the far shore, what do you want to take? m 
Fox Corn 
------------------------ 
Boat 
------------------------ 
 Goose 
You are now at the near shore, what do you want to take? g 
Fox Goose Corn 
------------------------ 
Boat 
------------------------ 
Congratulations! 
You have brought all the items across the river. 
11 Sample Session 2 
Welcome. 
You must bring the fox, the goose, and the corn across the 
river. 
------------------------ 
Boat 
------------------------ 
Fox Goose Corn 
You are now at the near shore, what do you want to take? 
goose 
You have entered an invalid command. 
------------------------ 
Boat 
------------------------ 
Fox Goose Corn 
You are now at the near shore, what do you want to take? f 
Fox 
------------------------ 
Boat 
------------------------ 
 Goose Corn 
You have failed. 
The goose has eaten the corn. 
References 
V. Anton Sprual. Think Like a Programmer: An Introduction to Creative Problem Solving. 
No Starch Press, San Francisco, 2012. 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

掃一掃在手機打開當前頁
  • 上一篇:代寫Neural Networks for Image 編程
  • 下一篇:SCC.369代做、代寫C/C++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    欧美全黄视频| 欧美影院三区| 亚洲播播91| 亚洲精品国产成人影院| 午夜欧洲一区| 久久精品国内一区二区三区| 99成人在线| 国产精品毛片久久久| 国内揄拍国内精品久久| 欧美特黄aaaaaaaa大片| 欧美午夜不卡| 国产精品久久久网站| 国产激情综合| 日本中文字幕视频一区| 爱啪啪综合导航| 黄色亚洲精品| 亚洲大片在线| 秋霞欧美视频| 综合视频一区| 国产麻豆精品| 欧美一区影院| 免费在线观看一区| 日本一区二区在线看| 99这里有精品| 欧美va天堂在线| 久久婷婷久久| 国产色噜噜噜91在线精品| 日韩激情中文字幕| 国产精品一区二区三区四区在线观看 | 奇米亚洲欧美| 中文字幕免费精品| 久久精品午夜| 高清亚洲高清| 超碰这里只有精品| 丝袜诱惑一区二区| freexxx性亚洲精品| 男人的天堂亚洲| 在线亚洲一区| 91久久夜色精品国产九色| 九九久久精品| 亚洲特色特黄| 免费av一区| 欧美精品一区二区久久| 成人精品影院| 秋霞影视一区二区三区| 成人毛片在线| 天天躁日日躁狠狠躁欧美| 久久黄色影院| 婷婷成人在线| 亚洲精品极品少妇16p| 亚洲国产精品综合久久久| 亚洲午夜电影| 欧美日韩国产高清| 在线亚洲免费| 爽好多水快深点欧美视频| 丝袜美腿亚洲一区二区图片| 久久亚洲影院| 免费一级片91| 中文在线免费视频| 日韩av中字| 久热成人在线视频| 久久一区二区三区四区五区| 日韩精品亚洲一区二区三区免费| 日日夜夜一区二区| 综合激情婷婷| 日韩深夜影院| 大色综合视频网站在线播放| 久久婷婷麻豆| 一本色道久久综合一区 | 欧美午夜a级限制福利片| 亚洲黄页一区| 蜜桃精品视频在线| 亚洲不卡系列| 欧美亚洲专区| 国产精品亚洲四区在线观看| 午夜a一级毛片亚洲欧洲| 黄色网一区二区| 在线免费观看日本欧美爱情大片| 母乳一区在线观看| 日韩欧美精品综合| 日韩国产精品久久| 国产一区二区三区亚洲综合| 日韩激情视频在线观看| 精品国产91| 欧美军人男男激情gay| 日韩影院在线观看| 成人黄色免费观看| 国产精品1区在线| 国产精品一区二区中文字幕| 香蕉久久网站| 中文在线а√在线8| 日韩福利视频网| 日韩a级大片| 久久国产综合| 欧美丰满老妇| 亚洲天天综合| 99re热精品视频| 亚洲黄页一区| 成人午夜在线| 国产一卡不卡| 美女亚洲一区| 日韩国产欧美| 综合一区av| 精品国产一区二区三区不卡蜜臂| 性色av一区二区怡红| 欧美永久精品| 成人中文字幕视频| 免播放器亚洲| 日韩国产在线观看| jizz国产精品| 蜜桃久久精品一区二区| 麻豆一区二区三| 动漫视频在线一区| 蜜桃精品在线观看| 成人动漫视频在线观看| 小说区图片区色综合区| 日韩在线观看一区 | 蜜臀av性久久久久蜜臀aⅴ四虎 | 国产精品久久777777毛茸茸| 精品国产亚洲一区二区三区大结局 | 91精品一区国产高清在线gif| 91亚洲国产| 亚洲天堂一区二区三区四区| 99久久这里只有精品| sm性调教片在线观看| 精品一区二区三区视频在线播放| 久久中文字幕av| 深夜视频一区二区| 欧美三级在线| 久久久久看片| 亚洲伊人春色| 久久午夜视频| 国产成人黄色| 久久成人精品| 国产成人免费视频网站视频社区 | 欧美日本一区| 一区二区小说| 日韩一区二区三区四区五区| 一区二区三区高清在线观看| 国产精品麻豆久久| 精品国产亚洲一区二区在线观看 | 免费av成人在线| 亚洲最新av| 伊人久久大香线蕉综合热线| 亚洲精品在线二区| 女主播福利一区| 国产精品综合色区在线观看| 成人在线免费观看网站| 99只有精品| 在线日本高清免费不卡| 激情久久99| 久久精品国产www456c0m| 国产一区二区三区的电影| 亚洲婷婷免费| 欧美激情91| 日韩成人激情| 成人看片黄a免费看视频| 欧美三级精品| 一本久久青青| 中文视频一区| 超碰成人av| jizz性欧美23| 国产精品久久久一区二区| 免费观看久久av| 亚洲日韩中文字幕一区| 天堂av在线一区| 99热这里只有精品首页 | aa国产精品| 日韩美女国产精品| 日韩av一级| 91成人免费| 国产一区二区观看| 97se综合| 免费欧美一区| 亚州av日韩av| 日本精品在线中文字幕| 蜜桃tv一区二区三区| 国产一区二区区别| www.国产精品| 亚洲美女网站| 日韩精品亚洲专区在线观看| 亚洲精品第一| 99热这里只有精品8| 日韩欧美中文字幕在线视频| 成人在线中文| 香蕉久久夜色精品国产| 欧美三级午夜理伦三级在线观看 | 久久精品国产亚洲一区二区三区| 51精产品一区一区三区| 精品一级视频| 99精品免费视频| 蜜桃av一区二区三区| 精品少妇一区| 国产成人黄色| 国产精品最新自拍| 亚洲精品国产精品国产| 最新精品国产| av一级亚洲| 国产精品一区二区三区四区在线观看| 欧美无毛视频|