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

合肥生活安徽新聞合肥交通合肥房產(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)前頁
  • 上一篇:COMP 5076代寫、代做Python/Java程序
  • 下一篇:46-886 Machine Learning Fundamentals
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
  • 短信驗(yàn)證碼 trae 豆包網(wǎng)頁版入口 目錄網(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

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

          9000px;">

                亚洲一区二区免费视频| 91黄色免费网站| 欧美一区二区免费视频| 91亚洲国产成人精品一区二区三 | 日韩激情av在线| 精品福利av导航| 91精品国模一区二区三区| 国产一区二区三区精品欧美日韩一区二区三区 | 蜜臀av性久久久久蜜臀aⅴ流畅| 久久综合一区二区| 69堂精品视频| 色视频欧美一区二区三区| 国产精品一区在线观看乱码| 亚洲综合一区二区精品导航| 26uuu亚洲| 337p日本欧洲亚洲大胆精品 | 欧美二区三区91| 国产aⅴ综合色| 久久精品国产色蜜蜜麻豆| 天天做天天摸天天爽国产一区 | 久久蜜桃av一区精品变态类天堂| 精品久久99ma| 国产欧美日韩综合| 亚洲美女视频在线| 奇米四色…亚洲| 国产福利一区在线| 97精品国产露脸对白| 欧美三片在线视频观看| 日韩欧美一级在线播放| 91精品国产91综合久久蜜臀| 91麻豆精品国产自产在线| 日韩欧美国产高清| 国产亚洲午夜高清国产拍精品| 久久奇米777| 国产亚洲综合av| 国产91精品久久久久久久网曝门| 午夜激情久久久| 韩国av一区二区三区四区 | 一区二区三区四区视频精品免费 | 奇米精品一区二区三区在线观看一| 亚洲婷婷国产精品电影人久久| 国产精品国产三级国产| 玉足女爽爽91| 久久精品国产澳门| 国产一区啦啦啦在线观看| 成人午夜电影小说| 色婷婷一区二区| 欧美在线一二三四区| 欧美一区二区黄色| 久久一夜天堂av一区二区三区| 精品国产欧美一区二区| 国产精品嫩草影院av蜜臀| 亚洲福利一二三区| 天天影视色香欲综合网老头| 国产精品乡下勾搭老头1| 99国产欧美另类久久久精品| 欧美日韩国产在线观看| 偷拍一区二区三区四区| 国产剧情在线观看一区二区| 色婷婷综合久久久久中文| 欧美一区二区啪啪| 亚洲乱码中文字幕综合| 国产一区二区视频在线播放| 欧美视频三区在线播放| 国产清纯美女被跳蛋高潮一区二区久久w| 久久久久国产一区二区三区四区| 亚洲乱码精品一二三四区日韩在线| 久久精品国产亚洲一区二区三区| 91在线无精精品入口| 久久久久国产精品麻豆| 奇米四色…亚洲| 欧美精品久久99久久在免费线 | www.欧美色图| 欧美精品一区二区三区在线播放| 亚洲国产aⅴ成人精品无吗| 91亚洲午夜精品久久久久久| 欧美高清一级片在线观看| 国内精品免费**视频| 欧美精品 日韩| 丝袜诱惑制服诱惑色一区在线观看| 成人性生交大片免费看中文网站| 日韩免费高清视频| 蜜臀av一区二区在线观看| 欧美日韩三级一区| 欧美videossexotv100| 亚洲欧美二区三区| 一本一道综合狠狠老| 国产精品每日更新在线播放网址 | 亚洲欧美另类在线| 成人精品电影在线观看| 国产偷v国产偷v亚洲高清| 国产麻豆一精品一av一免费| 欧美电影精品一区二区| 视频一区在线视频| 欧美一区欧美二区| 久久疯狂做爰流白浆xx| 日韩一区二区三区电影在线观看| 午夜免费欧美电影| 91精品福利在线一区二区三区| 亚洲女人的天堂| 91一区二区在线观看| 亚洲啪啪综合av一区二区三区| 成人激情小说乱人伦| 亚洲欧洲日产国产综合网| 成人精品gif动图一区| 综合激情成人伊人| 99热99精品| 亚洲一区在线免费观看| 欧洲色大大久久| 一区二区国产盗摄色噜噜| 欧美视频中文字幕| 青椒成人免费视频| 精品人伦一区二区色婷婷| 国产麻豆成人精品| 久久久久国产精品麻豆| 99久久精品国产麻豆演员表| 亚洲视频你懂的| 91精品国产综合久久久蜜臀图片| 午夜视频久久久久久| 欧美性大战久久久久久久| 一区二区三区**美女毛片| 日韩av不卡在线观看| 欧美性xxxxxxxx| 午夜一区二区三区视频| 精品少妇一区二区三区免费观看 | 亚洲一二三四在线| 欧美一个色资源| 国产乱对白刺激视频不卡| 亚洲综合偷拍欧美一区色| 日韩一区二区在线免费观看| 盗摄精品av一区二区三区| 精品区一区二区| 91.xcao| 成人福利视频网站| 久久国产婷婷国产香蕉| 伊人一区二区三区| 国产欧美日韩不卡免费| 麻豆精品在线播放| 一区二区三区精品视频在线| 久久精品在这里| 8v天堂国产在线一区二区| 成人动漫一区二区在线| 久久精品久久99精品久久| 亚洲一区二区3| 亚洲视频一二三| 欧美国产日韩a欧美在线观看 | 亚洲欧美自拍偷拍| 久久亚洲精品小早川怜子| 欧美日韩不卡一区二区| 色哟哟一区二区三区| 国产1区2区3区精品美女| 麻豆国产一区二区| 亚洲1区2区3区视频| 亚洲欧洲中文日韩久久av乱码| 国产亚洲婷婷免费| 在线观看欧美黄色| jlzzjlzz亚洲女人18| 国产成人综合亚洲网站| 美女在线一区二区| 亚洲一区免费视频| 尤物视频一区二区| 亚洲午夜在线电影| 亚洲国产精品一区二区久久恐怖片| 中文字幕av资源一区| 国产欧美日本一区二区三区| 日韩精品一区二区三区在线播放| 欧美精品久久久久久久久老牛影院| 91高清视频在线| 欧美日韩综合在线免费观看| 欧美视频在线一区二区三区| 在线免费视频一区二区| 欧美专区日韩专区| 99天天综合性| 在线观看一区日韩| 欧美三级电影网| 4438成人网| 日韩精品一区二区三区swag| 精品国产一区二区在线观看| 欧美变态口味重另类| 精品日韩欧美在线| 欧美精品一区二区在线播放| 国产亚洲欧美激情| 国产精品久久国产精麻豆99网站| 欧美国产一区二区在线观看| 国产精品久久久久久亚洲毛片 | 91丝袜美腿高跟国产极品老师| 成人晚上爱看视频| 欧美在线视频日韩| 日韩亚洲欧美在线| 国产精品免费视频网站| 伊人色综合久久天天| 麻豆91小视频| 91免费版在线| 精品福利一二区| 亚洲精品国产高清久久伦理二区| 日韩精品一二三| 99久久婷婷国产| 日韩美女一区二区三区| 亚洲精品一二三| 激情综合网最新|