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

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

代寫CSC1002、代做Python程序語言
代寫CSC1002、代做Python程序語言

時間:2025-04-08  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CSC1002 – Computational Laboratory
Console-Based Editor - Basic - 2025
OVERVIEW
In this assignment, you are going to design and develop a simple, basic console-based editor. Unlike the 
modern, advanced editor which provides a sophisticated editing environment, utilizing the high resolution of the graphical screen together with the mouse and the keyboard to position and adjust any 
text and figures displayed on the screen, giving us the WYSIWYG (What-You-See-Is-What-You-Get) 
experience. 
In the early days, lacking access to a rich graphical display and mouse, the functionality of editors was 
limited, providing only a much simpler user interface, usually console-based. Editing was carried out 
based on simple text commands entered via the keyboard, commands such as inserting (i) and 
appending (a) a text string, positioning the editor cursor one character position to the left (h), one 
character position to the right (l), one-word position forwards (w), one-word position backwards (b), and
so on. 
 
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
SCOPE 
1. Complete all the following editor commands:
NOTE: Refer to the section “Specific Spec” for more information on particular requirements. 
2. Case-sensitive commands - all editor commands are case-sensitive, for example, the capital 
letter ‘A’ does not equal the lowercase letter ‘a’. 
3. Command types - most commands are single-letter (in lower case) commands (such as ?, $, x, ^, 
…etc), while some are two-letter (such as dw). Most commands do not require extra input, 
while a few do, such as insert (i) and append (a). 
4. Command prompt (>) - The prompt is a single character string ‘>’. See the screenshots on the 
first page. 
5. Command Syntax - “Command[Text]”, where “Command” is one of the commands shown in 
step 1, and “Text” applies only to commands requiring extra input such as insert (i) and append 
(a). Note: any commands whose description includes a substring enclosed in “<>” brackets 
require extra input “Text”. 
6. Command Parsing - the user types a single command and then presses the return key to 
continue. Parse each command string according to “Command Syntax” to ensure that the input 
string matches EXACTLY one of the commands from step 1, including the extra input “Text” if 
required. When invalid input is entered, simply display another prompt as illustrated in the
following screenshot. 
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
a. Examples of valid command input: 
i. “$” 
ii. “^” 
iii. “h” 
iv. “x” 
v. “ahello world” 
vi. “i hello world “ 
b. Examples of invalid command input: 
i. “ $” 
ii. “ ?” 
iii. “? “ 
iv. “ ahello world” 
v. “i” 
7. Command Execution - the editor will repeatedly prompt the user to enter an editor command, 
execute the command, and then output the updated content on the display console (except for 
commands ‘?’ and ‘q’, see Note follows). After the updated content is displayed, the editor will 
display a new prompt on a new line. Refer to the section “Sample Output” for more examples. 
Note: when the help command (?) is entered, output only the help menu as shown in step 1; 
when the quit command (‘q’) is entered, terminate the program. 
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
SPECIFIC SPEC
1. Editor content - the editor shows its content, if any, as a single line of text string constructed by 
one or multiple Insert/Append commands. If the row cursor is enabled, it shows its position in a 
color such as green. When the editor program initially starts, its content is empty. Refer to the 
section “Sample Output” for more examples. 
2. Row cursor - it’s used to show where the cursor is on the current row if not empty. In other 
words, the cursor will appear on printable characters including space. The cursor is shown by 
wrapping a character with a pair of escape character strings such as “\033[42m” and “\033[0m”. 
For example, given a string “hello world”, to show the green cursor at the position of the letter 
‘e’, this is the string to print: “h” + “\033[42m” + “e” + “\033[0m” + “llo world”. 
3. Insert - the given string “Text” will be inserted to the left of the cursor and the cursor position 
will be changed to the beginning of the “Text” string. 
4. Append - the given string “Text” will be inserted to the right of the current cursor position and 
the cursor position will be changed to the end of the “Text” string. 
5. Delete word - delete all characters from the cursor position to the beginning of the next word or 
to the end of the line. 
6. Cursor left and right - when repositioning the cursor to the left or right, one or multiple 
positions, and if the cursor is already at the far left or far right position, leave the cursor where it 
is. 
7. Undo - it’s used to reverse the change(s) made to the editor content including the row cursor 
positions based on the most recent commands. If multiple consecutive undo commands are 
executed, each will undo one command at a time in the reverse order that the commands were 
originally executed. For example, given the last 2 valid commands are “ahello” followed by “a 
world”, the first undo command will reverse the “a world”, and the second consecutive undo
command will reverse “ahello”. Refer to the following figure for an illustration. 
8. Repeat - The “Repeat” command is used to re-execute the last valid command and it offers the 
convenience of sparing the user from retyping it again. The “Repeat” command is not 
applicable to the Undo and Help commands. For example, consider the command sequence: 
“ahello”, “a world”, “?”, and “u”. If the command “r” is subsequently entered multiple times, 
each Repeat command will always re-execute “ahello”. Refer to step “Undo followed by Repeat” 
for another illustration. 
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
9. Undo followed by Repeat - In this case, the “Undo” is not considered as the last command and 
the "Repeat" command is used to target the command immediately preceding the "Undo" 
command, not the most recent action performed. Any command entered prior to the "Undo"
will be re-executed upon triggering the "Repeat" command. Refer to the following figure for an 
illustration. 
10. b command - it moves the cursor to the beginning of the word to the left of the cursor. If the 
cursor is within a word, the cursor will be placed at the word's first letter. Refer to the following
figure for an illustration. 
11. Word - a word is defined as a sequence of consecutive characters including punctuations but not 
white space, in other words, any group of characters without spaces is considered a single word, 
even if it includes punctuation marks. Refer to the following figure for an illustration.
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
ASSUMPTIONS
1. The goal of this assignment is to illustrate the benefits of “Problem Decomposition”, “Clean 
Coding” and “Refactoring”, all together achieving high code readability to ease logic expansion 
and keep high maintainability, therefore, it’s not aimed at designing a complex, general-purpose 
editor for handling large editing content. 
2. It’s assumed that the length of each line is kept within a reasonable length so that each line can 
be stored directly using the standard Python ‘str’ type. The number of lines is also kept within a 
reasonable number so that all lines can be kept in one standard Python list and the lines can be 
efficiently updated using the standard list and str operations such as append, insert, slicing, 
cloning, …etc. 
3. It is assumed that the user will not input a command that consumes excessive memory and 
leads to a buffer overflow (also called memory overflow or overrun) at runtime, such as 
inserting a very long string like “ihello …………………………. world.” In other words, all test cases 
executed against your program will be based on the commands from step 1 (Scope) with a 
short“Text” string. 
4. Each test case is designed to evaluate the functionality and correctness of your program, rather 
than its speed, performance and memory usage. Each test case consists of multiple editing 
commands with short “Text”. 
5. The text editor is required to handle only regular English characters, thus additional unicode 
support, if any, is unnecessary. 
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: 
• re (regular expression) 
DELIVERABLES
Program source code (A1_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:
• A1_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 version of 
editor, file conversion from other sources, default encoding setting, 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
 
CSC1002 – 2025 Winter By Kinley Lam
CSC1002 – Computational Laboratory
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
March 2nd, 2025, 11:59:00PM 
ITEMS PERCENTAGE REMARKS
CODING STYLES 30%-40% 0% IF PROGRAM DOESN’T RUN
FUNCTIONALITY 60%-70% REFER TO SCOPE
CSC1002 – 2025 Winter By Kinley Lam

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

掃一掃在手機打開當前頁
  • 上一篇:COMP4033代寫、代做c/c++,Python編程
  • 下一篇:代寫COMP20007、代做C/C++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    成人欧美一区二区三区黑人| 在线观看一区欧美| 日本一区免费看| 久久免费少妇高潮久久精品99| 日韩精品欧美在线| 在线日韩av永久免费观看| 久久手机在线视频| 国产视频不卡| 国语对白做受xxxxx在线中国| 久久香蕉国产线看观看网| 视频一区免费观看| 欧美伊久线香蕉线新在线| 午夜欧美一区二区三区免费观看| 精品国产一区二区三区久久久久久| www.国产一区| 国产精品久久97| 国产精品国内视频| 精品久久sese| 国产精品久久久久久av福利| 国产成人三级视频| 国产精品久久久久久久久久久久| 国产精品久久久久久超碰| 久久99精品国产99久久6尤物| 国产精品美女网站| 国产精品美女在线播放| 亚洲黄色一区二区三区| 内射国产内射夫妻免费频道| 成人羞羞国产免费| 久99九色视频在线观看| 欧美激情小视频| 麻豆久久久9性大片| 国产成人综合亚洲| 久久中文久久字幕| 亚洲视频欧美在线| 91黄在线观看| 亚洲av综合色区| 国产精品久久久久免费a∨| 国产成人精品999| 国产成人欧美在线观看| 欧美激情亚洲国产| 国产伦精品免费视频| 风间由美久久久| 亚洲一区二区三区四区视频| 日本一区二区在线免费播放| 日本一区二区三区四区五区六区| 午夜精品一区二区三区四区| 日本最新高清不卡中文字幕| 日韩欧美视频网站| 欧美日韩国产精品激情在线播放| 日本10禁啪啪无遮挡免费一区二区| 国产精品成人av在线| 欧美亚洲激情在线| 精品少妇在线视频| 黄色片一级视频| 天堂一区二区三区| 日韩视频在线免费看| 天天干天天操天天干天天操| 亚洲自拍的二区三区| 欧美黄色直播| 国产欧美一区二区白浆黑人| 99在线热播| 丝袜亚洲欧美日韩综合| 国产精品国产三级国产专播精品人| 久久精品人人做人人爽| 午夜精品久久久久久久99热浪潮 | 在线观看欧美亚洲| 日韩精品久久一区二区| 日韩在线视频在线观看| 欧美精品一区二区三区三州 | 欧美日韩一区二| 国产专区一区二区三区| 国模杨依粉嫩蝴蝶150p| 国产精品久久国产| 色欲av无码一区二区人妻| 国产四区在线观看| 国产精品无码一区二区在线| 亚洲在线免费观看| 色播五月综合| 91精品视频在线免费观看| 色妞在线综合亚洲欧美| 国产精品视频播放| 91精品视频在线播放| 国产精品电影观看| 亚洲一区精品视频| 久久综合五月天| 国产精品久久久久7777婷婷| 黄色影院一级片| 国产精品流白浆视频| 免费黄色福利视频| 欧美日本精品在线| 国产高清一区视频| 欧美久久电影| 欧美精品videofree1080p| 俺去了亚洲欧美日韩| 国产欧美精品久久久| 亚洲一区二三| 国产日韩在线看片| 久久av一区二区三区漫画| 久精品免费视频| 日韩aⅴ视频一区二区三区| 久久精品视频网站| 欧美牲交a欧美牲交| 九九九热999| 欧美激情精品久久久久久| 亚洲一区二区不卡视频| 国产成人在线一区| 国产视频一区二区三区四区| 欧美日韩福利在线观看| 国产精品一国产精品最新章节| 亚洲一区二区在线播放| 黄色a级片免费看| 日韩欧美三级一区二区| 2019日本中文字幕| 国内精品一区二区| 亚洲永久免费观看| 久久久久欧美| 国产精品自产拍在线观看 | 欧美精品欧美精品| 亚洲精品久久区二区三区蜜桃臀 | 午夜一区二区三区| 久久久久久久久久码影片| 国产青春久久久国产毛片| 日韩**中文字幕毛片| 一本久久a久久精品vr综合| 久久精品久久久久久| 久久综合九色99| 国产精品香蕉av| 国产精品亚洲片夜色在线| 国产一区二区三区免费不卡| 黄色小视频大全| 国产伦精品一区二区三区照片 | 91九色在线免费视频| 国产成人精品电影久久久| 国产麻豆乱码精品一区二区三区| 热久久精品国产| 久久99精品久久久久久琪琪| chinese少妇国语对白| 国产精品亚洲欧美导航| 国产精品自拍片| 国产一区二区三区乱码| 国产在线精品一区| 日本三级久久久| 丁香六月激情婷婷| 亚洲综合自拍一区| 国产精品区一区二区三含羞草 | 成人www视频在线观看| 久久伊人精品视频| 国产精品久久久久久久电影| 欧美日韩成人免费| 国产精品入口尤物| www精品久久| 99精品在线免费视频| 国产日产精品一区二区三区四区| 国产精品偷伦视频免费观看国产| 成人国产精品日本在线| 久久综合狠狠综合久久综青草| caoporn国产精品免费公开| 久久精品91久久久久久再现| 国产成+人+综合+亚洲欧美丁香花| 国产精品沙发午睡系列| 欧美激情视频三区| 日日碰狠狠躁久久躁婷婷| 在线观看免费黄色片| 97精品一区二区视频在线观看| 国产欧美在线播放| 久久成人精品一区二区三区| 性日韩欧美在线视频| 久久久久久com| 91精品天堂| 久久精品国产美女| 国产精品18毛片一区二区| 亚洲a一级视频| 高清视频一区| 久久久精品网站| 亚洲在线一区二区| 久久国产精品久久久久久| 欧美日韩天天操| 国产一区视频免费观看| 日韩最新av在线| 国产精品视频一区二区高潮 | 国产精品自拍偷拍| 精品自在线视频| 婷婷精品国产一区二区三区日韩| 国产精品一区二区久久久久| www国产精品内射老熟女| 伊人久久av导航| 欧美二区三区| 久久亚洲影音av资源网| 欧美一区二区三区图| 欧美日韩一区二区在线免费观看 | 日韩在线小视频| 亚洲影影院av| 蜜桃网站成人| 久久国产精品免费一区| 亚洲va久久久噜噜噜久久狠狠| 肉大捧一出免费观看网站在线播放 | 免费亚洲一区二区| 久久久国产视频| 欧美专区一二三| 久久天堂国产精品|