99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代做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++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                欧美伊人久久久久久午夜久久久久| 精品一区二区三区视频| 亚洲一二三四在线| 免费av成人在线| 欧美日韩国产高清一区二区三区 | 日韩毛片一二三区| 美女mm1313爽爽久久久蜜臀| a级高清视频欧美日韩| 精品国产免费人成在线观看| 亚洲影视资源网| 91丨porny丨户外露出| 国产精品三级久久久久三级| 精品一区免费av| 精品国产免费久久| 国产一二精品视频| 国产亚洲精品bt天堂精选| 国产精品18久久久| 国产精品免费丝袜| 在线观看视频一区二区| 青青草精品视频| 久久久综合网站| 91在线精品一区二区三区| 国产精品久久久久永久免费观看| 国产suv精品一区二区883| 国产婷婷色一区二区三区 | 国产精品二区一区二区aⅴ污介绍| 亚洲黄色在线视频| 9i看片成人免费高清| 亚洲欧美另类小说| 日韩一区二区视频| 成人99免费视频| 亚洲男人天堂av网| 欧美一区永久视频免费观看| 美腿丝袜亚洲一区| 亚洲婷婷在线视频| 久久欧美中文字幕| 色国产精品一区在线观看| 国产一区二区女| 日韩av电影免费观看高清完整版| 久久精品夜色噜噜亚洲a∨| 一本色道久久综合精品竹菊| 蜜臀91精品一区二区三区| 91视频免费观看| 国产成人综合在线观看| 亚洲大型综合色站| 亚洲成人手机在线| 中文字幕不卡在线| 久久综合狠狠综合久久激情| 韩国成人福利片在线播放| 美女一区二区久久| av高清不卡在线| 一本到不卡精品视频在线观看| 国产·精品毛片| 国产精品综合视频| eeuss鲁片一区二区三区| 国产91丝袜在线观看| 国产精品一区二区黑丝| 国产精品一区二区免费不卡 | 亚洲特黄一级片| 亚洲欧美欧美一区二区三区| 中文字幕视频一区二区三区久| 国产经典欧美精品| 一本大道av一区二区在线播放| 99v久久综合狠狠综合久久| 欧美性生活大片视频| 色噜噜狠狠成人网p站| 亚洲永久免费视频| 国内外精品视频| 99久久精品免费看国产| 欧美在线视频全部完| 欧美精品123区| 久久久不卡影院| 日本伊人色综合网| eeuss影院一区二区三区| 欧美亚洲另类激情小说| 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲啪啪综合av一区二区三区| 久久亚洲春色中文字幕久久久| 538在线一区二区精品国产| 国产欧美日本一区视频| 亚洲国产精品一区二区尤物区| 成人黄色小视频在线观看| 欧美变态tickle挠乳网站| 国产亚洲婷婷免费| 日韩福利视频导航| 91精品国产综合久久精品性色| 天天操天天干天天综合网| 欧美综合一区二区三区| 亚洲男女一区二区三区| 9人人澡人人爽人人精品| 国产精品久久国产精麻豆99网站| 亚洲另类春色校园小说| 91黄视频在线| 亚洲h动漫在线| 欧美精品一区二区精品网| 另类小说一区二区三区| 国产午夜精品久久久久久免费视| 蜜桃精品视频在线| 欧美一级久久久| 国产成人精品www牛牛影视| 国产精品国产三级国产普通话蜜臀| 成人欧美一区二区三区视频网页| 偷拍日韩校园综合在线| 国产片一区二区三区| 91国偷自产一区二区开放时间| 亚洲午夜羞羞片| 国产精品欧美一级免费| 91美女福利视频| 国产精品一区二区三区乱码| 亚洲综合精品自拍| 久久色.com| 日韩小视频在线观看专区| 亚洲男人天堂一区| 中文字幕免费一区| 视频在线在亚洲| 欧美三级中文字| 久久精品亚洲乱码伦伦中文| 日本不卡一二三| 欧洲一区在线电影| 2022国产精品视频| 精品乱码亚洲一区二区不卡| 欧美视频第二页| 精品裸体舞一区二区三区| 天天免费综合色| 欧美日本国产视频| 久久精品人人爽人人爽| 久久99久久精品| 欧美大片在线观看一区| 亚洲欧美日韩一区| 欧美三片在线视频观看 | 国产欧美一区二区三区沐欲| 五月婷婷激情综合网| 久久精品视频在线免费观看| a级精品国产片在线观看| 国产在线视频精品一区| 午夜久久久影院| 91视频91自| 日韩欧美一二三| 久久66热re国产| 欧美日韩日日骚| 精品视频资源站| 91在线看国产| 欧美在线视频全部完| 91看片淫黄大片一级在线观看| 高清成人在线观看| 99久久99久久久精品齐齐| 91丨porny丨首页| 欧美人与禽zozo性伦| 欧美videos中文字幕| 中文在线一区二区| 亚洲成人手机在线| 91国偷自产一区二区三区成为亚洲经典| 日韩一级完整毛片| 亚洲成av人片在线观看无码| 波多野结衣精品在线| 91热门视频在线观看| 精品国一区二区三区| 久久精品噜噜噜成人88aⅴ| 亚洲成人av免费| 美女脱光内衣内裤视频久久影院| 久久国产精品72免费观看| 91在线播放网址| 国产午夜亚洲精品羞羞网站| 亚洲va在线va天堂| 91麻豆123| 国产精品久久久久精k8| 成人毛片视频在线观看| 久久久久久一二三区| 日本美女一区二区| 欧美一级理论片| 狠狠狠色丁香婷婷综合激情 | 欧美日本乱大交xxxxx| 奇米亚洲午夜久久精品| 亚洲天堂福利av| 一区二区三区精品视频在线| 美腿丝袜亚洲色图| 色猫猫国产区一区二在线视频| 久久色视频免费观看| 国产一区二区0| 久久成人免费网| 亚洲码国产岛国毛片在线| 秋霞av亚洲一区二区三| 99riav久久精品riav| 欧美吞精做爰啪啪高潮| 国产精品久久久久7777按摩| 国产美女av一区二区三区| 一本色道亚洲精品aⅴ| 不卡视频一二三| 亚洲综合一二三区| 欧美影院午夜播放| 亚洲国产日韩av| 3d动漫精品啪啪一区二区竹菊| 欧美国产国产综合| 日韩欧美国产一区二区在线播放| 亚洲欧洲性图库| 欧美一级高清片| eeuss国产一区二区三区| 日韩不卡一二三区| 一区二区三区在线视频观看58| 欧美日韩精品一区视频|