加勒比久久综合,国产精品伦一区二区,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

    欧美亚洲三级| 色中色综合网| 久久69av| 日本va欧美va瓶| 97精品国产| 欧美日韩国产一区二区三区不卡| 亚洲国产黄色| 欧美aa一级| 久久国产精品亚洲77777| 久久久久99| 日韩欧美另类中文字幕| 日韩高清在线一区| 日韩在线观看一区 | 美腿丝袜亚洲一区| 国产精品久久久久久久免费观看| 自拍欧美一区| 嗯用力啊快一点好舒服小柔久久| 国产成人三级| 国一区二区在线观看| 国产一区二区主播在线| 免费看欧美女人艹b| 五月天久久久| 久久裸体视频| 国产精品对白久久久久粗| 亚洲第一二三区| 国内精品美女在线观看 | 老鸭窝亚洲一区二区三区| 国内成人在线| 99久久99热这里只有精品| 欧美三级乱码| 精品成人18| 午夜视频一区二区在线观看| 国产一区毛片| 99热这里有精品| 亚洲乱码久久| 日本欧美加勒比视频| 亚洲国产高清一区| 四虎在线精品| 国产91亚洲精品久久久| 欧美gv在线| 免费高清视频在线一区| 天堂中文av在线资源库| 深夜成人在线| 日韩免费视频| 欧美亚洲人成在线| 香蕉视频亚洲一级| 百度首页设置登录| 亚洲精品66| 69堂免费精品视频在线播放| 丝袜美腿诱惑一区二区三区| 日韩一区三区| 成人国产网站| 国产日韩一区二区三区在线播放| 99精品国产99久久久久久福利| 免费在线观看一区| 成人一区视频| 国产精品xvideos88| 99热这里有精品| 日本亚洲免费观看| 激情综合五月| 精品国产乱子伦一区二区| 99成人超碰| 五月婷婷六月综合| 99视频在线精品国自产拍免费观看| 91久久黄色| 97精品一区二区| www.久久.com| 亚洲午夜精品一区 二区 三区| 欧美日本三级| 99热这里只有精品首页| 日韩精品免费一区二区三区| 亚洲精品va| 免费在线观看一区二区三区| 日韩欧美高清在线播放| 国产精品最新自拍| 9999精品视频| 91精品丝袜国产高跟在线| 久久久综合网| 免费日韩视频| 麻豆精品蜜桃| 国产精品二区影院| 久久av网站| 蜜桃成人av| 色135综合网| 久久精品国产在热久久| 国产一区二区三区精品在线观看| 日本超碰一区二区| 久久精品国产68国产精品亚洲| 午夜国产精品视频| 在线看片国产福利你懂的| 欧美黄页在线免费观看| 国产精品一国产精品| 卡一精品卡二卡三网站乱码| 亚洲综合日本| 欧美天堂一区| 亚洲区小说区图片区qvod按摩| 精品丝袜久久| 免费在线观看成人| 久久精品国产999大香线蕉| 国产精品一区二区三区四区在线观看 | 男人的j进女人的j一区| 日韩在线观看一区| 欧美国产精品| 成人精品影视| 人人超碰91尤物精品国产| 另类一区二区三区| 日韩电影免费一区| 日韩午夜一区| 国产精品综合| 久久av国产紧身裤| 91精品综合久久久久久久久久久 | 日本视频在线一区| 精品美女久久| 亚洲尤物精选| 青青草视频一区| 精品高清在线| 樱桃视频成人在线观看| 国产精品2区| 婷婷久久一区| 久久精品国产久精国产| jizz性欧美2| а√天堂8资源中文在线| 欧美区国产区| 婷婷久久综合| 久久资源在线| 久久中文亚洲字幕| 欧美一级免费| 卡一精品卡二卡三网站乱码| 日韩欧美不卡| 成人在线视频中文字幕| 樱桃视频成人在线观看| 天海翼亚洲一区二区三区| 免费国产自线拍一欧美视频| 亚洲综合五月| 国产色综合网| 亚洲一区导航| 国产精品腿扒开做爽爽爽挤奶网站| 日本一区中文字幕| 国产一区亚洲| 亚洲国产午夜| 欧美日韩激情在线一区二区三区| 国产精品一二| 国产精品99一区二区| 日韩高清在线观看| 亚洲国产精品综合久久久| 国产日韩一区二区三区在线| 自拍亚洲一区| 国产精品久久久久久久久久妞妞| 久久青草久久| 免费亚洲一区| 黄色亚洲大片免费在线观看| 日本视频免费一区| 久久国产精品99国产| 日本中文字幕在线一区| 中文字幕在线高清| 国产精品毛片久久久| 欧美xxxx网站| 最新成人av网站| 国产日产一区| 日韩在线观看一区| 久久久久欧美精品| 六月婷婷色综合| 中文精品视频| 日韩二区三区在线观看| 国产伦久视频在线观看| 高潮久久久久久久久久久久久久| 美女色狠狠久久| 欧美另类69xxxxx| 亚洲黄页网站| 三上悠亚国产精品一区二区三区 | 美女少妇全过程你懂的久久| 综合久久一区| 亚洲美女久久精品| 中文字幕亚洲影视| 欧美一级网站| 成人亚洲一区| 99久久综合| 久久99精品久久久久久园产越南| 中文字幕在线官网| 欧美aa国产视频| 日韩成人av在线资源| 激情中国色综合| 亚洲欧美日韩精品一区二区| 婷婷综合国产| 麻豆精品久久久| 欧美1级片网站| 久久网站免费观看| 亚洲色图美女| 日本在线不卡一区| 韩国久久久久久| 欧美日韩国产一区精品一区| 久久一级大片| 亚洲精品美女| 日韩成人影院| 国产一区二区你懂的| 果冻天美麻豆一区二区国产| 中文字幕亚洲精品乱码| av在线播放一区| 91精品综合久久久久久久久久久| 久久久久久久久99精品大|