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

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

CSC1002代做、Python程序設計代寫
CSC1002代做、Python程序設計代寫

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



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

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:COMP 5076代寫、代做Python/Java程序
  • 下一篇:46-886 Machine Learning Fundamentals
  • 無相關信息
    合肥生活資訊

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

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    蜜桃成人免费视频| 国产激情视频一区| 久久99久久99精品免观看粉嫩 | 欧美精品在线网站| 久久精品欧美视频| 国产精品麻豆va在线播放| 麻豆国产va免费精品高清在线| 精品久久久久久中文字幕动漫| 91久久久在线| 青青青国产在线观看| 国产精品久久在线观看| 国产日韩欧美在线播放| 欧美中文字幕视频| 亚洲乱码一区二区三区三上悠亚| 久久久黄色av| av日韩一区二区三区| 免费91麻豆精品国产自产在线观看| 国产精品一区二区在线观看| 久久久久国产视频| 国产精品免费久久久久久| 国产精品久久久久9999小说| www.亚洲视频.com| 91av在线播放| 欧美激情一区二区三区高清视频| 日本欧美精品在线| 成人精品一区二区三区电影免费| 久久免费成人精品视频| 精品久久久久亚洲| 欧美资源一区| 黄色免费观看视频网站| 日韩最新中文字幕| 亚洲自拍欧美色图| 欧美精品在线第一页| 国产精品都在这里| 精品国产乱码久久久久久久软件| 久久大片网站| 久久伦理网站| 欧美亚州在线观看| 丁香六月激情网| 欧美日韩成人在线播放| 国产精品久久激情| 中文字幕日韩精品久久| 国产欧美综合一区| 国产日韩av高清| 欧美激情伊人电影| 成人精品视频99在线观看免费| 国产精品天天av精麻传媒| 在线免费一区| 91久久久久久久久久久久久| 在线精品日韩| www.com毛片| 久久成年人免费电影| 色在人av网站天堂精品| 日本不卡视频在线播放| 日韩区国产区| 欧美精品久久久| www.av蜜桃| 国产精品日韩欧美综合| 中文字幕欧美人妻精品一区| 亚洲色精品三区二区一区| 亚洲一区二区不卡视频| 午夜欧美不卡精品aaaaa| 欧美精品在线免费| 日韩高清国产精品| 日本免费在线精品| 国产精品久久久久久超碰| 日日碰狠狠丁香久燥| 久久久久久一区二区三区| 欧美成人精品免费| 国产99久久精品一区二区 | zzijzzij亚洲日本成熟少妇| 国产精品精品国产| 日本一区二区三区在线播放| 免费精品视频一区| 久久免费福利视频| 在线观看免费91| 国模视频一区二区| 久久久久久久久久久免费精品| 久久中文字幕在线| 免费国产成人av| 久久精品.com| 欧美一区二区视频97| 高清国语自产拍免费一区二区三区| 日韩精品一区二区免费| 成年人网站国产| 欧美一级片免费在线| 欧美激情伊人电影| 欧美激情精品久久久久久蜜臀| 国产精品视频一区国模私拍 | 久久精品国产一区二区电影| 国产精品午夜av在线| 日本一区二区在线| 色婷婷综合久久久久| 日韩亚洲欧美一区二区| 国产女精品视频网站免费| 欧美成人免费va影院高清| 国产主播在线一区| 欧美激情视频在线观看| 欧美 日韩 国产在线| 久久精品免费电影| 欧美日韩一区综合| 久久久亚洲综合网站| 欧美激情精品久久久久久小说| 91成人综合网| 国产精品亚洲аv天堂网| 久久精品美女视频网站| 国产精品成人在线| 国产精品99久久久久久www| 成人在线免费观看一区| 国产自产在线视频一区| 日本三级韩国三级久久| 亚洲aⅴ日韩av电影在线观看| 国产精品久久久久久免费观看| 久久久精品国产一区二区三区| 国产九色精品| 国产欧美日韩中文| 亚洲一区二区三区色| 久久精品国产综合| 国产青青在线视频| 无码人妻aⅴ一区二区三区日本| 久草视频这里只有精品| 国产精品久久久久免费a∨大胸| 日韩久久一级片| 国产精品久久久久高潮| 国产精品综合久久久| 亚洲aa中文字幕| 国产精品久久久久久久久电影网 | 日韩欧美精品在线观看视频| 国产传媒一区二区三区| 日韩中文综合网| 日日碰狠狠丁香久燥| 亚洲欧洲免费无码| 亚洲人成网站在线播放2019| 亚洲免费久久| 一区二区免费电影| 超碰日本道色综合久久综合| 国产精品成人一区二区三区| 最新中文字幕久久| 日韩一区不卡| 日韩国产欧美一区| 狠狠色伊人亚洲综合网站色| 国产在线观看福利| 欧美h视频在线观看| 男人添女人下部高潮视频在观看 | 日韩在线国产| 欧美又大又粗又长| 免费在线成人av| 欧美日韩免费观看一区| 美国av一区二区三区| 国产人妖伪娘一区91| 91精品视频在线| 久久久久高清| 日韩中文字幕久久| 国产精品日韩一区| 一区二区免费在线观看| 日韩国产欧美精品| 国产一区在线观| 91传媒视频免费| 久久深夜福利免费观看| 亚洲伊人久久综合| 黄色a级片免费看| 国产富婆一区二区三区| 国产精品十八以下禁看| 在线观看av的网址| 欧美h视频在线| 99久久综合狠狠综合久久止| 精品国产区一区二区三区在线观看 | 久久亚洲国产成人精品无码区| 久久久精品免费视频| 午夜久久资源| 国产性生活免费视频| 国产高潮呻吟久久久| 亚洲综合色av| 国产精品夜夜夜爽张柏芝 | 国产大片精品免费永久看nba| 国产精品高潮呻吟久久av无限| 日本一本a高清免费不卡| 国产一区二区丝袜| 久久久精品免费视频| 亚洲国产一区二区三区在线 | 久久九九全国免费精品观看| 亚洲中文字幕无码中文字| 欧美 日韩 亚洲 一区| 久久99九九| 日韩av电影在线播放| 久章草在线视频| 一区二区在线观| 国产乱人伦精品一区二区三区| 国产精品美女av| 黄色www在线观看| 久久久av网站| 男人天堂av片| 久久精品电影网站| 精品欧美一区二区三区久久久 | 久久国产精品一区二区三区 | 亚洲综合自拍一区| 超碰免费在线公开| 亚洲精品一区二区三区蜜桃久| 99久久精品免费看国产四区| av一区二区三区在线观看|