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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

CSC1002代做、Python程序設(shè)計(jì)代寫
CSC1002代做、Python程序設(shè)計(jì)代寫

時(shí)間:2025-03-21  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



CSC1002 – Computational Laboratory
Iris - 2025
OVERVIEW
Inspired by a high school student I met in a high-school elite event organized by SSE in 2024. Her name 
is Iris. In this assignment, you are going to design and develop a program to display as many polygon 
shapes as possible on the canvas in random locations within a given period of time. Your program will 
load the custom shapes (name and coordinates) of all the polygons from an external file, start tracking 
the elapsed time and then repeatedly perform the shape-placement operation. Initially the canvas is 
empty. The shape-placement operation picks a random polygon shape, a random color and a random 
pair of x, y coordinates, trying to position the chosen polygon on the canvas at the chosen x, y 
coordinate, on condition that it is completely separate from all other polygons already drawn on the 
canvas. If it fails, your program repeatedly attempts to place the same polygon in another location by 
choosing another random pair of x, y coordinates. No polygon can be placed within another polygon 
and any polygon cannot touch or overlap any other polygons. The placement operation ceases any 
further attempts for another polygon once the elapsed time has expired. The duration length is defined 
by the user at the program's launch. Please refer to the scope for detailed requirements.
 
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
SCOPE
1. Drawing Canvas - Use module “turtle” to create the drawing canvas, 75% width and 75% height 
of computer’s screen resolution, positioned at the center of the computer’s screen.
2. Input - prompt the user to enter the following information:
a. Stretch Value - a value used to resize polygon in both width and height. Default is 1.
b. Duration - total number of seconds to place random polygons on canvas. Default is 5.
c. Random Seed - the seed value used to initialize the random module. Default is 1.
d. Terminate - ‘y’ or ’n’. Default is ’n’
3. Termination 
a. after the duration is up, the program stops placing additional polygons on the canvas 
and then shows the total count of polygons successfully displayed on the canvas. In the 
title bar of the canvas, show your student ID, the time the operation started and ended, 
elapsed time (seconds) and the number of polygons displayed:
 and simply print the polygon count with your student ID on the console:
b. Change the background color of the canvas to black.
c. if “Terminate” is ‘y’ then exit the program immediately; otherwise do nothing and keep 
the canvas active so that TA can verify the positions of polygons on the canvas.
4. Custom Shapes - the names and coordinates of all polygons are given in an external file called 
shapes.txt. Ensure the mode of the screen is set to “logo” and register the custom shapes using 
addshape(name, coordinates).
5. Shape-Placement Operation
a. Track the elapsed time
b. Pick a random color - from a predefined list of colors (see template file).
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
c. Pick a random polygon shape
d. Stretch the chosen polygon in both x and y directions and set the shape color 
accordingly using the following methods:
i. shapesize(value, value)
ii. color(value) 
e. Try repeatedly placing the chosen polygon on the canvas at a random location:
i. pick a random x, y coordinates
ii. show the polygon at the chosen x, y coordinates if the following conditions are 
met:
1. no further adjustment is allowed to the polygon including rotation, 
heading adjustment, shearing, etc. 
2. simply call goto(x, y) to move the chosen polygon 
3. the polygon must be completely separate from all other polygons 
already drawn on the canvas
4. the polygon cannot be placed within another polygon
5. the polygon cannot touch or overlap any other polygons
iii. if the condition isn’t met and there is more time to continue, repeat the above 
steps.
f. track of the number of polygons successfully shown on the canvas.
g. Repeat all the steps above until the total elapsed time (in seconds) exceeds the entered 
duration. 
6. Template File - follow the provided template file to complete the assignment.
NOTE: 
• Keep your entire source code in ONE SINGLE file.
• Use only Python modules as specified in the “Permitted Modules” section.
• In your design stick ONLY to functions, in other words, no class objects of your own. 
o Furthermore, the lines of code containing the sub-function(s) defined within another 
function will be counted as part of the parent function.
o NOTE: Failure to adhere to the instructions outlined in the assignment handout will 
result in a 50% reduction in the coding style score.
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
STARTUP OPTIONS
Not applicable
SKILLS
In this assignment, you will be trained on the use of the followings:
• Refactoring - logic reuse or simplification based on the existing logic.
• Variable scope: global, local and function parameters.
• Coding Styles (naming convention, meaningful names, comments, doc_string, …etc)
• Problem Decomposition, Clean Code, Top-Down Design
• Functions (with parameters and return) for program structure and logic decomposition
• Standard objects (strings, numbers & lists)
• Variable Scope
PERMITTED MODULES
Only the following Python module(s) is allowed to be used:
• turtle
• random
• time
DELIVERABLES
Program source code (A2_School_StudentID.py), where School is SSE, SDS, SME, HSS, FE, LHS, MED and 
StudentID is your 9-digit student ID.
For instance, a student from SME with student ID “119010001” will name the Python file as follows:
• A2_SME_119010001.py:
Ensure that your source file is saved in standard, regular UTF-8 encoding format. On the status bar of 
Visual Studio Code, you can view the current encoding format as follows:
On an occasion, the encoding scheme is set to UTF-8 with BOM as follows:
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
The presence of the Byte Order Mark (BOM) could be due to copying from websites, older versions of 
editor, file conversion from other sources, default encoding settings, and so on. 
Confirm the encoding scheme is UTF-8 and the file name is correct, then submit the plain program file to 
the corresponding assignment folder. A deduction of 5% will be penalized if the file is incorrectly named 
or in wrong encoding format.
TIPS & HINTS
• Apply problem decomposition, Clean Code and Refactoring as illustrated during classes.
• Beware of variable scope as you might keep a few variables as global such as current editor 
content, cursor position, undo buffer, and so on.
• Refer to Python website for program styles and naming conventions (PEP 8)
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
SAMPLE OUTPUT
NOTE: REFER TO THE SCOPE FOR THE REQUIRED INFORMATION TO BE DISPLAYED IN THE TITLE BAR OF THE TURTLE
GRAPHICS WINDOWS.
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
MARKING CRITERIA
• Coding Styles – overall program structure including layout, comments, white spaces, naming 
convention, variables, indentation, functions with appropriate parameters and return.
• Program Correctness – whether or the program works 100% as per Scope. 
• User Interaction – how informative and accurate information is exchanged between your 
program and the player.
• Readability counts – programs that are well structured and easy to follow using functions to 
break down complex problems into smaller cleaner generalized functions are preferred over a 
function embracing a complex logic with many nested conditions and branches! In other words, 
a design with a clean architecture and high readability is the predilection for the course 
objectives over efficiency. The logic in each function should be kept simple and short, and it 
should be designed to perform a single task and be generalized with parameters as needed.
• KISS approach – Keep It Simple and Straightforward.
• Balance approach – you are not required to come up with a very optimized solution. However, 
take a balance between readability and efficiency with good use of program constructs. 
DUE DATE
April 6th, 2025, 11:59:00PM
ITEMS PERCENTAGE REMARKS
CODING STYLES 50%-60% 0% IF PROGRAM DOESN’T RUN
FUNCTIONALITY 50%-60% REFER TO SCOPE
CSC1002 – 2025 Winter By Kinley Lam

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:COMP 5076代寫、代做Python/Java程序
  • 下一篇:46-886 Machine Learning Fundamentals
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁(yè)版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    成 年 人 黄 色 大 片大 全| 久久久久欧美| 久久精品日产第一区二区三区精品版 | 欧美最猛黑人xxxx黑人猛叫黄| 91精品国产91久久久久福利| 91精品国产99久久久久久红楼| 久久久久久999| 国产精品亚发布| 欧美精品久久久久久久| 国产女精品视频网站免费| 精品久久久久av| 国产原创精品| 久久国产精品久久国产精品| 国产日韩在线一区| 久久在精品线影院精品国产| 国内精品免费午夜毛片| 久久精品国产91精品亚洲 | 国产美女搞久久| 色与欲影视天天看综合网| 国产一区在线观| 精品久久蜜桃| 成人一级生活片| 亚洲欧洲久久| 国产成人一区二区| 欧美久久综合性欧美| 久久久精品在线| 国产在线观看福利| 久久91亚洲精品中文字幕奶水| 国产欧美日韩免费| 亚洲熟妇av日韩熟妇在线| www国产黄色| 亚洲二区三区四区| 国产成人一区二区| 欧美图片激情小说| 另类天堂视频在线观看| 国产在线不卡精品| 亚洲综合色av| 国产高清在线一区| 日本高清+成人网在线观看| 久久国产乱子伦免费精品| 日本亚洲欧美成人| 日韩视频精品在线| 国产中文欧美精品| 亚洲www在线观看| 色阁综合伊人av| 欧美在线一二三区| 精品久久久久久久免费人妻| 91免费福利视频| 人体精品一二三区| 精品福利影视| 国产精品27p| 欧美一区二三区| 久久中文久久字幕| 国产经典一区二区三区| 欧洲黄色一级视频| 久久艳片www.17c.com | 91九色蝌蚪成人| 青草青草久热精品视频在线观看 | 国内精品视频在线播放| 亚洲综合一区二区不卡| 九九热只有这里有精品| 麻豆成人小视频| 亚洲永久一区二区三区在线| 久久免费精品视频| 国模极品一区二区三区| 亚洲综合欧美日韩| 精品国偷自产在线| 精品一区二区三区无码视频| 中文字幕一区二区中文字幕| 久久久久久中文字幕| 国产狼人综合免费视频| 欧洲精品亚洲精品| 亚洲一区二区三区毛片| 国产精品美女www| 久久久影院一区二区三区| 国内一区二区在线视频观看| 欧美一区二区三区四区夜夜大片| 国产精品久久久久久久久久新婚| 91精品国产91久久久久久最新| 国内免费精品永久在线视频 | 欧美成人亚洲成人| 91高潮在线观看| 久久久久久久av| 国产精品香蕉视屏| 欧美激情 国产精品| 欧美一级片一区| 亚洲午夜精品国产| 久久综合88中文色鬼| 久久久久久久久久久久久久国产 | 欧美一区少妇| 色哺乳xxxxhd奶水米仓惠香| 九九久久久久久久久激情| 久久久精品国产网站| 国产二区视频在线| 国产精选一区二区| 国内精品久久久久久影视8| 日本中文字幕一级片| 一区二区精品国产| 久久亚洲国产精品| 国产精品视频导航| 日韩中文字幕视频在线| 91精品国产综合久久香蕉最新版| 国内视频一区| 欧美一区三区二区在线观看| 欧美一区二区三区电影在线观看| 中文字幕成人一区| 欧美精品制服第一页| 国产精品免费视频一区二区| 久久久久久久久久久久久久久久av| 成人一区二区在线| 国产精品一区二区三区免费视频| 国产三级中文字幕| 免费久久久一本精品久久区| 热99精品只有里视频精品| 日本一区二区在线| 日本精品国语自产拍在线观看| 午夜欧美不卡精品aaaaa| 亚洲一区二区三区精品视频 | 欧美中文娱乐网| 日韩视频在线免费看| 日韩在线三区| 日本一本中文字幕| 日本国产欧美一区二区三区| 日本久久久网站| 日韩欧美在线观看强乱免费| 日韩人妻无码精品久久久不卡| 日韩国产欧美亚洲| 欧美自拍视频在线观看| 欧美专区日韩视频| 欧美日韩国产综合在线| 欧美日韩激情四射| 狠狠色综合色区| 国产在线一区二区三区四区| 国产欧美日韩高清| 国产精选在线观看91| 高清视频在线观看一区| www.九色.com| 久久久免费观看| 久久久久久久久久久综合| 久久九九热免费视频| 国产精品福利网| 九九热在线精品视频| 亚洲欧洲一区二区福利| 日本午夜精品一区二区三区| 青青青国产精品一区二区| 激情图片qvod| 国产精品一区=区| 91好吊色国产欧美日韩在线| 久久99久久精品国产| 久久精品视频中文字幕| 精品国偷自产一区二区三区| 亚洲人成网站在线观看播放| 日本精品久久久久久久久久| 红桃一区二区三区| av免费观看久久| 久久久久久久久久久av| 精品久久国产精品| 欧美日韩国产91| 日本一区精品| 蜜桃传媒视频麻豆第一区免费观看| www.九色.com| 色av中文字幕一区| 在线精品亚洲一区二区| 日本a在线天堂| 免费国产在线精品一区二区三区| 国产精品小说在线| 色偷偷88888欧美精品久久久 | www国产91| 一区二区三区四区欧美日韩| 日韩av资源在线| 精品无人区一区二区三区| 97国产精品久久| 国产精品乱码一区二区三区| 亚洲色成人www永久在线观看| 人妻无码久久一区二区三区免费| 国产欧美一区二区在线播放| 国产成人精品久久| 欧美伦理91i| 日韩av大片在线| 国产肉体ⅹxxx137大胆| 国产av熟女一区二区三区 | 日韩视频在线免费观看| 欧美激情在线一区| 欧美亚洲在线观看| 91精品久久久久久蜜桃| 国产精品高潮在线| 色播亚洲婷婷| 国产精品自拍视频| 精品国产自在精品国产浪潮| 亚洲一区亚洲二区亚洲三区| 国内精品伊人久久| 久久久免费高清电视剧观看| 欧美人与性动交a欧美精品| 欧美亚洲一级二级| 91国在线高清视频| 欧美激情精品久久久久久大尺度| 奇米精品一区二区三区| 91精品久久久久久久久中文字幕 | 亚洲人成无码www久久久 | 日本精品一区二区三区四区|