日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        99视频在线精品国自产拍免费观看| 国产美女精品在线| 亚洲经典自拍| 欧美日韩在线精品一区二区三区| 亚洲视频在线一区观看| 1024成人网色www| 亚洲精品黄网在线观看| 国产免费观看久久| 国产欧美精品在线观看| 亚洲日本欧美在线| 国产视频自拍一区| 久久精品女人的天堂av| 欧美性一二三区| 欧美高清视频一区| 激情文学综合丁香| 欧美大成色www永久网站婷| 一本一本久久a久久精品牛牛影视| 国产精品国产三级国产普通话三级| 午夜久久久久久久久久一区二区| 欧美一区二区三区四区在线观看| 国产女优一区| 欧美成人一区二免费视频软件| 99国产精品久久久久久久成人热| 欧美激情精品久久久久久免费印度| 欧美香蕉视频| 国产一区二区激情| 国产精品影视天天线| 欧美高清视频| 欧美日韩免费在线| 中日韩视频在线观看| 亚洲国产aⅴ天堂久久| 亚洲国产aⅴ天堂久久| 一本到12不卡视频在线dvd| 在线电影院国产精品| 久久久久久久久久看片| 韩日欧美一区| 久久午夜电影网| 国产精品红桃| 欧美国产日本在线| 国产精品二区在线| 欧美特黄视频| 午夜欧美不卡精品aaaaa| 国产精品狼人久久影院观看方式| 一区二区三区四区在线| 欧美激情一区二区三区成人| 欧美视频福利| 亚洲国产精品一区在线观看不卡| 欧美一级夜夜爽| 久久免费视频网站| 乱码第一页成人| 国产日本欧美视频| 欧美日韩在线精品| 国产精品电影观看| 亚洲精品乱码视频| 欧美午夜一区二区福利视频| 欧美成人第一页| 久久不射中文字幕| 欧美午夜不卡在线观看免费| 欧美成人午夜剧场免费观看| 午夜一区二区三视频在线观看| 欧美激情综合色综合啪啪| 欧美精选午夜久久久乱码6080| 国产精品a久久久久| 国产精品ⅴa在线观看h| 久久久久久久97| 国产精品久久久久aaaa樱花| 99re6这里只有精品视频在线观看| 伊人成综合网伊人222| 国产午夜精品美女毛片视频| 国产欧美精品日韩| 久久精品一区二区国产| 国产精品成人免费视频| 欧美精品99| 亚洲国产成人91精品| 亚洲一区高清| 91久久午夜| 欧美视频三区在线播放| 亚洲欧美激情在线视频| 国产伦精品一区二区三区四区免费| 国产人成一区二区三区影院| 久久综合五月天婷婷伊人| 亚洲精品影视在线观看| 一区免费观看视频| 性欧美大战久久久久久久久| 亚洲精品女av网站| 亚洲尤物在线视频观看| 国产三级欧美三级日产三级99| 欧美成人一区二区三区在线观看| 欧美三级特黄| 欧美日韩国产综合视频在线观看中文| 久久久五月婷婷| 国产精品一卡| 欧美成人久久| 久久这里只有精品视频首页| 欧美日韩免费视频| 欧美剧在线免费观看网站| 1024日韩| 蜜桃久久精品乱码一区二区| 国产亚洲一区二区三区在线观看| 在线观看欧美亚洲| 国产女精品视频网站免费| 99视频一区二区| 欧美日韩亚洲一区三区| 亚洲最新视频在线播放| 制服丝袜亚洲播放| 国产精品一区二区在线观看网站| 亚洲欧美综合国产精品一区| 国产精品久久久久久久久久ktv| 中日韩午夜理伦电影免费| 亚洲午夜精品一区二区| 免费观看日韩av| 中日韩高清电影网| 91久久精品久久国产性色也91| 亚洲福利国产| 久久精品在线观看| 亚洲国产欧美一区二区三区丁香婷| 欧美在线视频二区| 国产精品久久久久9999高清| 久久久www成人免费毛片麻豆| 午夜一区二区三区在线观看| 亚洲二区在线| 好看的亚洲午夜视频在线| 欧美激情一区二区三区在线视频观看| 久久国产精品久久久久久| 欧美三级乱人伦电影| 亚洲第一精品夜夜躁人人躁| 亚洲精品乱码视频| 久久久久久香蕉网| 亚洲精品视频二区| 极品少妇一区二区三区| 久久国产精品网站| 亚洲一区二区精品在线观看| 亚洲欧美bt| 99国产精品久久久| 久久久久国产成人精品亚洲午夜| 亚洲激情成人网| 小黄鸭精品密入口导航| 欧美日韩国产成人| 亚洲一二区在线| 国产精品美女www爽爽爽视频| 在线播放亚洲| 欧美在线一级va免费观看| 亚洲精品三级| 久久精品久久综合| 牛牛影视久久网| 亚洲欧美精品在线观看| 久久久青草婷婷精品综合日韩| 欧美午夜在线一二页| 久久精品日产第一区二区| 欧美日韩国产大片| 欧美婷婷久久| 亚洲区中文字幕| 91久久午夜| 欧美日韩无遮挡| 久久国产免费| 久久综合九色欧美综合狠狠| 美日韩精品免费| 一区二区三区视频在线观看| 在线电影一区| 国产精品免费看久久久香蕉| 夜夜夜精品看看| 亚洲少妇在线| 91久久久一线二线三线品牌| 日韩视频免费观看|