国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    久久综合久久八八| 日本不卡一区二区三区视频| 欧美久久精品午夜青青大伊人| 懂色av一区二区三区四区五区| 国产一区免费在线| 国产高清在线一区二区| 国产精品国产福利国产秒拍| 日韩视频在线观看国产| 777精品视频| 亚洲一区二区精品在线| 国产日韩久久| 久久亚洲综合国产精品99麻豆精品福利 | 欧美亚洲在线视频| 91九色国产社区在线观看| 美女精品视频一区| 极品尤物一区二区三区| 精品国产一区久久久| 日韩精品成人一区二区在线观看| 国产精品99久久99久久久二8| 一区二区三区不卡在线| 国产欧美日韩亚洲精品| 美女福利视频一区| 国产欧美一区二区三区另类精品| 国产精品久久久久久av福利 | 久久6精品影院| 国产一区二中文字幕在线看| 深夜福利一区二区| 日韩精品不卡| 日韩三级成人av网| 欧美精品123| 国产精品久久久久久久小唯西川| 狠狠精品干练久久久无码中文字幕| 国产成人免费观看| 欧美精品一区免费| 国产精品欧美日韩一区二区| 欧美成人精品免费| 国产精品三级美女白浆呻吟| 黄色一级片播放| 国产精品美女网站| 免费毛片网站在线观看| 精品国产一区二区三区免费| 国内精品久久久| 欧美猛少妇色xxxxx| 麻豆av免费在线| 欧美精品亚州精品| 粉嫩精品一区二区三区在线观看| 亚洲一区二区三区四区中文| 久久男人的天堂| 欧美图片激情小说| 国产精品高潮呻吟久久av无限| 国产一区二区免费在线观看| 伊人网在线免费| 久久精彩视频| 国产综合在线看| 亚洲精品国产精品国自产 | 成人精品视频一区二区| 亚洲国产精品毛片| 久久精品人人做人人爽电影| 欧美交换配乱吟粗大25p| 欧美日韩电影在线观看| 久久青草福利网站| 精品一区久久久久久| 亚洲欧美国产一区二区| 国产日韩欧美影视| 亚洲www在线观看| 北条麻妃一区二区三区中文字幕| 激情内射人妻1区2区3区| 欧美激情xxxx| av动漫在线观看| 日韩日韩日韩日韩日韩| 精品久久久久亚洲| 国产妇女馒头高清泬20p多| 好吊色欧美一区二区三区视频| 一区二区三区免费看| 久久综合亚洲精品| 国内精品久久久久久影视8 | 国产综合福利在线| 亚洲精品偷拍视频| 久久视频国产精品免费视频在线| 成人a在线视频| 日韩五码在线观看| 欧美激情一区二区久久久| 神马国产精品影院av| www.亚洲一区二区| 狠狠色狠狠色综合人人| 无码免费一区二区三区免费播放| 国产精品无码一本二本三本色| 97精品伊人久久久大香线蕉| 麻豆精品视频| 欧美亚洲精品一区二区| 亚洲欧洲精品在线观看| 国产精品热视频| 91高跟黑色丝袜呻吟在线观看| 国模视频一区二区三区| 日本精品一区二区三区视频| 精品免费日产一区一区三区免费| 久久久久久久一区二区三区| 99免费视频观看| 国产综合在线看| 欧美日韩视频在线一区二区观看视频 | 欧美亚洲第一页| 性视频1819p久久| 精品久久久久久亚洲| www.亚洲免费视频| 久久久精品在线视频| 99在线观看| 国产乱码精品一区二区三区中文| 精品人妻大屁股白浆无码| 午夜欧美一区二区三区免费观看| 久久av在线看| 国产精品久久久久久久久久三级| 日韩亚洲在线观看| 久久免费视频网站| 91干在线观看| 国产精品99免视看9| www.欧美日本| 97碰碰碰免费色视频| 国产乱肥老妇国产一区二| 国产中文字幕二区| 麻豆精品视频| 精品视频一区二区| 免费av在线一区二区| 国内精品久久久久伊人av| 欧在线一二三四区| 青青草久久网络| 日本黄网站免费| 青青草综合在线| 欧美日韩亚洲在线| 国自在线精品视频| 国产日本一区二区三区| 国产乱子伦精品无码专区| 成人国产在线看| 91精品在线国产| 国产高潮呻吟久久久| www.日本久久久久com.| 国产精品丝袜视频| 精品国产免费av| 亚洲午夜高清视频| 亚洲精品中字| 亚洲成人精品电影在线观看| 午夜精品视频网站| 性高潮久久久久久久久| 欧美一级视频免费看| 日韩亚洲欧美视频| 日韩一区免费观看| 热re99久久精品国产66热| 日韩精品一区二区三区丰满| 欧美国产亚洲一区| 国内精久久久久久久久久人| 国产资源在线视频| 国产欧美va欧美va香蕉在| 高清不卡一区二区三区| 99久久99久久精品国产片| 国产精品小说在线| 91麻豆精品秘密入口| av动漫免费看| 久久久久久免费看| 国产精品啪视频| 精品国产一区二区三区免费| 伊人久久av导航| 在线精品日韩| 日本少妇高潮喷水视频| 日本精品久久久久中文字幕| 欧美综合在线观看视频| 欧美精品一区免费| 97人人模人人爽人人喊38tv| 久久免费少妇高潮久久精品99| www.欧美精品一二三区| 久久精品视频99| 久久夜色精品国产亚洲aⅴ| 亚洲第一综合网站| 欧美又大粗又爽又黄大片视频| 国语精品免费视频| 成人在线精品视频| 高清一区二区三区视频| www.久久色.com| 欧美激情亚洲国产| 午夜dv内射一区二区| 人人妻人人澡人人爽欧美一区 | 国产精品三区四区| 亚洲欧美日韩综合一区| 亚洲一区二区在线免费观看| 少妇高清精品毛片在线视频| 欧美在线播放cccc| 国产制服91一区二区三区制服| 116极品美女午夜一级| www.日韩欧美| 欧美日韩电影在线观看| 色999五月色| 国内精品久久久久伊人av| 国产大尺度在线观看| 国产精品青青草| 亚洲欧洲久久| 欧美精品亚洲| 国产精品永久在线| 久久精品中文字幕免费mv| 久久69精品久久久久久久电影好 | 国产一区二区三区免费不卡| 久久综合色视频| www.美女亚洲精品|