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

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

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

時間:2025-03-07  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Assignment 2
INT2067/INT5051 Introduction to Programming and Problem Solving
2024-2025 Semester 2
Due Date: March 16, 2025 (Sunday)
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 Requirement (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 sections.
• 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 [10%] f, g or c: move the fox, goose, or corn, if available, to the opposite 
shore along with the boat.
o [5%] m: move the boat to the opposite shore without any item.
o [5%] q: quite the game.
• [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 data structures 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 contains no spelling mistakes.
7 Submission Requirements
Your Python file should be named as assignment2.py. Submit only the Python file 
assignment2.py through Moodle. Failure to submit the file properly will result in a 
penalty of 5 to 10 marks.
See Moodle for the exact time of the deadline for submission. Late submission is will 
induce penalty.
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. The use of any artificial intelligence (AI) tools is NOT allowed in this assignment. 
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.
You need to put down a declaration for having not used AI tools as comment at the 
beginning of your program file. For example, your declaration may look like this:
# Declaration: this code is my own individual and original work without AI assistant.
If you have used AI tools or consulted the assignment with anyone, you should provide 
an acknowledgment as comment at the beginning of your program file. Give the names 
of all classmates that you have turned to. For example, your acknowledgement may look 
like:
# Acknowledgement: I have asked Thomas, Gordon, and Emily for help.
# Acknowledgement: I have used AI tools (such as ChatGPT, gpt4o via POE, etc.) in 
working on this assignment.
If plagiarism is found, both the copier and originator will get zero mark for the assignment.
Repeat offenders may result in a deduction of the course grade.
10 Sample Input & Output 1
Welcome
You have to 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 items across the river.
11 Sample Input & Output 2
Welcome
You have to 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.
12 Reference
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

掃一掃在手機打開當前頁
  • 上一篇:EEE6207代做、代寫C++程序設計
  • 下一篇:代寫MS6711、代做Python語言程序
  • 無相關信息
    合肥生活資訊

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

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

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

    偷拍中文亚洲欧美动漫| 黄色在线一区| 成人精品国产亚洲| 在线 亚洲欧美在线综合一区| 国产精品亚洲欧美一级在线| 亚洲黄色免费看| 欧美日韩日本国产亚洲在线 | 国产精品久久久久9999赢消| 国产伦精品一区二区三区在线播放 | 91精品福利| 亚洲视频国产| 亚洲图片小说区| 四虎国产精品免费久久| 丝袜脚交一区二区| 在线日韩av| 国产图片一区| 日韩高清在线观看一区二区| 国自产拍偷拍福利精品免费一| 在线看片福利| 久久先锋资源| 怡红院精品视频在线观看极品| 欧美黑人做爰爽爽爽| 亚洲警察之高压线| 亚洲精品三级| 日韩国产欧美一区二区三区| 国产 日韩 欧美一区| 成人在线国产| 久热精品在线| 在线综合亚洲| 一级毛片免费高清中文字幕久久网| 国产福利资源一区| 日韩欧美一级| 亚州精品视频| 欧美影院视频| 亚洲综合中文| 欧美日本不卡| 欧美韩国一区| 中文字幕一区二区三区在线视频| 国产精品久久久久久模特 | 日韩精品免费视频人成| 欧美亚洲黄色| 青青国产精品| 日韩三区四区| 美女网站视频久久| 欧美激情不卡| 日精品一区二区三区| 久久综合综合久久综合| 久久精品国产精品亚洲精品| 欧美视频免费看| 日韩毛片一区| 欧美一区在线看| 日本免费一区二区三区等视频| 久久91视频| 日本在线观看不卡视频| 日韩高清在线电影| 日本成人在线不卡视频| 亚洲精品三级| 国产麻豆一区二区三区精品视频| 国产精品密蕾丝视频下载 | 欧美成人家庭影院| 99精品国产在热久久下载| 欧美亚洲一区| 中文字幕一区二区三区在线视频| 亚洲午夜剧场| 日韩精品一级| 色爱综合av| 好看的日韩av电影| 日本一区二区高清不卡| 日韩在线二区| 狠狠久久伊人中文字幕| 亚洲欧美网站在线观看| 久久综合亚洲| 国产精品天天看天天狠| 亚洲电影在线| 久久国产精品99国产| 黄色aa久久| 美女精品一区二区| 国产精品一站二站| 日韩欧美久久| 宅男在线一区| 成人影院天天5g天天爽无毒影院| 日韩成人高清| 国自产拍偷拍福利精品免费一| 国产区精品区| 视频福利一区| 亚洲欧美成人| 丁香久久综合| 国产一区二区三区网| 加勒比色综合久久久久久久久| 美女一区二区在线观看| 激情欧美日韩| 国产精品日本欧美一区二区三区| 视频一区二区不卡| 欧美在线一级| 国产精品日本一区二区三区在线| 日韩电影免费在线| 天天操综合520| 久久亚洲一区| 国产日韩欧美三区| 日韩高清一级| 成人在线精品| 精品国产一级| 91久久久精品国产| 波多野结衣久久精品| 日本va欧美va欧美va精品| 日韩母乳在线| 婷婷成人基地| 麻豆精品蜜桃| 亚洲人成网www| 天天av综合| 日韩中文在线电影| 欧美午夜网站| 欧美大片aaaa| 国产激情久久| 亚洲精品福利| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲国产高清一区| caoporn成人免费视频在线| 中文在线不卡| 国产精品chinese| 久久综合电影| 亚洲精品66| 亚洲成人五区| av资源网在线播放| 国产欧美91| 亚洲一区不卡| 国产精品成人一区二区网站软件| 久久久久99| 成人看片网站| 国偷自产av一区二区三区| 色男人天堂综合再现| 国产一区二区视频在线看| 羞羞色午夜精品一区二区三区| 人人鲁人人莫人人爱精品| 日韩黄色小视频| 蜜臂av日日欢夜夜爽一区| 亚洲我射av| 久久不射中文字幕| 最新国产精品久久久| 在线看片不卡| 久久人人爽人人爽人人片av不| 亚洲性色视频| 青草国产精品久久久久久| 免费视频一区三区| 麻豆免费看一区二区三区| 欧美成人国产| 亚洲综合激情在线| 亚洲免费精品| 国产精品欧美在线观看| 水蜜桃久久夜色精品一区的特点| av在线亚洲一区| 日韩精品一二区| 精品视频成人| 欧美aa一级| 麻豆成人入口| 麻豆精品一区二区综合av| 欧美大人香蕉在线| www欧美在线观看| 老鸭窝亚洲一区二区三区| 日韩激情在线观看| 极品美女一区| 久久经典综合| 日本欧美加勒比视频| 欧美一级专区| 亚洲精选av| 99精品国产在热久久婷婷| 亚洲精品国产成人影院| 欧美久久一区二区三区| 97精品国产一区二区三区| 欧美黑人做爰爽爽爽| 国产欧美一区二区三区国产幕精品| 女厕嘘嘘一区二区在线播放| 亚洲伊人伊成久久人综合网| 成人在线电影在线观看视频| 成午夜精品一区二区三区软件| 国产精品资源| 噜噜噜91成人网| 欧美黄色影院| 欧美精品国产一区| 91亚洲国产高清| 日韩精品四区| 综合伊思人在钱三区| 亚洲人成在线网站| 天天影视天天精品| 精品中文字幕一区二区三区| 97成人超碰| 午夜在线精品偷拍| 精品精品国产毛片在线看| 成人精品在线| 亚洲精品成a人ⅴ香蕉片| 中文一区二区| 加勒比色老久久爱综合网| 亚洲一区有码| 欧美天堂一区| 亚洲综合不卡| 久久人人97超碰国产公开结果| 成人精品在线| 欧美在线免费一级片| 国产精选在线| 欧美特黄一级|