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

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

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

時間:2025-03-21  來源:合肥網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
  • 無相關信息
    合肥生活資訊

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

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

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

    91一区二区三区四区| 国内自拍一区| 午夜欧美视频| 日韩精品一区国产| 中文无码久久精品| 欧美视频免费看| 国产日韩专区| 精品久久影院| 国内精品久久久久久久久电影网 | 欧美网站在线| 爱高潮www亚洲精品| 亚洲色图88| 亚州欧美在线| 国产v日韩v欧美v| 欧美日韩国产在线一区| 欧美激情久久久久久久久久久| 国内自拍一区| 久久一区激情| 日韩一级特黄| 日韩av中字| 国产夫妻在线| 免费精品视频在线| 亚洲激情亚洲| 外国成人激情视频| 99成人超碰| 精品日产乱码久久久久久仙踪林| 亚瑟一区二区三区四区| 91成人精品观看| 日本色综合中文字幕| 国产精品麻豆成人av电影艾秋| 日韩福利一区| 欧美亚洲日本精品| 久久毛片亚洲| 欧美1级片网站| 免费成人美女在线观看| 精品亚洲免a| 欧美韩日一区| 91精品综合| 美女呻吟一区| 欧美三级午夜理伦三级在线观看| 午夜精品福利影院| 亚洲动漫在线观看| 奇米色欧美一区二区三区| 国产一区二区三区亚洲综合| 你懂的国产精品| 亚洲麻豆av| 中文在线播放一区二区 | 日韩一区电影| 在线天堂资源| 日本а中文在线天堂| 岛国av在线播放| 91亚洲国产| 美女福利一区二区| 天天综合网站| 久久精品超碰| 免费永久网站黄欧美| 麻豆精品视频在线观看视频| 青青草成人在线观看| 麻豆一区二区在线| 久久男人av| 国产精品日韩精品中文字幕| 最新亚洲精品| 亚洲乱码一区| 加勒比色综合久久久久久久久| 久久久精品午夜少妇| 欧美亚洲国产一区| 亚洲黄色在线| 色天天综合网| 在线一区视频观看| 国产欧美在线| 欧美久久一区二区三区| 久久综合给合| 成人精品亚洲| 很黄很黄激情成人| 91亚洲国产| 国产精品66| 高清久久一区| 精品中文字幕一区二区三区| 精品福利一区| 日韩午夜免费| 日韩一区亚洲二区| 青青草伊人久久| 亚洲精品国产动漫| 国内精品偷拍| 国产一区二区精品| 亚洲国产尤物| 亚洲破处大片| 精品国精品国产自在久国产应用| 精品日产免费二区日产免费二区| 香蕉成人久久| 国产极品嫩模在线观看91精品| 一区二区三区在线| 蜜桃在线一区| 91精品99| 黄色成人91| 色呦哟—国产精品| 日韩精品亚洲专区| 日韩欧美中文在线观看| 一区二区小说| 岛国av免费在线观看| 欧美亚洲视频| 国产精品调教| 午夜一级在线看亚洲| 91天天综合| 国产一区二区视频在线看| 成人免费av| 美国三级日本三级久久99| 国产欧美午夜| 成人精品毛片| 成人黄色av| 国内精品久久久久久久97牛牛| 在线精品视频一区| 99视频在线精品国自产拍免费观看| 交100部在线观看| 最近国产精品视频| 在线国产一区二区| 久久国产麻豆精品| 一区二区三区视频播放| 午夜一级久久| 欧美精品播放| 亚洲网站啪啪| 99久久伊人| 一区二区精彩视频| 日本一区二区在线看| 一区二区蜜桃| 欧美1区免费| 久久精品人人做人人爽电影蜜月| 欧美a在线观看| 久久r热视频| 亚洲都市激情| 蜜桃精品视频在线| 亚洲人体在线| 亚洲视频大全| 伊人久久大香| 99热免费精品| 国产激情一区| 久久国产精品99国产| 国内自拍视频一区二区三区| 天天射天天综合网| 国产欧美日韩一级| 亚洲网站在线| 在线国产欧美| 中文精品视频| 国产精品视频首页| 亚洲一区二区三区免费在线观看| 综合视频在线| 亚洲一卡久久| 国产精品一级在线观看| 国产一区亚洲| 日韩高清电影一区| 91精品1区| 国产精品大片免费观看| 日韩一级免费| 亚洲精品国产setv| 日本黄色免费在线| 精品九九在线| 一区二区三区国产在线| 天天射综合网视频| 电影中文字幕一区二区| 色喇叭免费久久综合| 亚洲少妇在线| 一本色道久久综合一区| 精品一区二区三区在线观看视频| 久久国产99| 色播一区二区| 黑人一区二区三区| 狠狠色丁香久久综合频道| 国产精品亚洲四区在线观看| 成人在线电影在线观看视频| 国产欧美视频在线| 欧美91在线|欧美| 亚洲激情社区| 国产色99精品9i| 欧美在线91| 国产视频亚洲| 午夜久久av| 日韩高清一区在线| 成人一区不卡| 成人毛片在线| 亚洲一区二区av| 日韩欧美精品综合| 亚洲精品二区三区| 视频一区中文字幕精品| 日韩色性视频| 视频一区国产视频| 视频福利一区| 国产精品手机在线播放| 97成人超碰| 久久福利影视| 色88888久久久久久影院| 亚洲欧美久久精品| 亚洲播播91| 99热免费精品在线观看| 国产美女撒尿一区二区| 亚洲我射av| 一区二区日韩免费看| 欧美mv日韩| 亚洲激情不卡| 久久中文字幕av| 午夜久久av|