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

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

代寫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++編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                欧美电视剧在线观看完整版| 亚洲精品综合在线| 中文字幕不卡在线观看| 国产精品视频一区二区三区不卡| 久久激情综合网| 亚洲自拍欧美精品| 久久九九影视网| 日韩手机在线导航| 欧美日韩一区二区在线观看视频| 91日韩在线专区| 国产一区二区三区电影在线观看 | 日韩av二区在线播放| 国产精品久久久久影院| 久久亚洲春色中文字幕久久久| 欧美日韩在线电影| 欧美日韩国产色站一区二区三区| 91首页免费视频| 92国产精品观看| 波多野结衣欧美| 成人一区二区在线观看| 国产精品一区二区无线| 激情偷乱视频一区二区三区| 国内精品免费在线观看| 青草av.久久免费一区| 午夜精品福利久久久| 亚洲第一狼人社区| 亚洲小少妇裸体bbw| 亚洲三级久久久| 国产精品国产三级国产aⅴ入口| 午夜精品久久久久久不卡8050| 亚洲在线视频网站| 一区二区三区欧美久久| 欧美一二三四区在线| 欧美视频一区在线| 欧美日韩一区二区三区高清| 欧美三区在线观看| 成人av在线看| 色综合咪咪久久| 色婷婷激情一区二区三区| av在线不卡免费看| 91丨porny丨首页| 日韩精品国产欧美| 一区二区在线观看视频| 午夜成人免费电影| 亚洲一二三级电影| 丝袜美腿一区二区三区| 琪琪一区二区三区| 国产精品一区二区果冻传媒| 成人做爰69片免费看网站| 成人福利视频在线| 在线影视一区二区三区| 91精品国产综合久久精品app| 日韩欧美在线观看一区二区三区| 精品国产一区二区三区av性色 | 欧美日韩高清影院| 欧美一区二区女人| 国产丝袜欧美中文另类| 亚洲三级电影全部在线观看高清| 亚洲一区二区三区影院| 美女网站视频久久| 成人综合在线观看| 在线一区二区三区做爰视频网站| 91麻豆精品国产91久久久使用方法 | 日韩av一区二区三区四区| 国产精品白丝av| 国产高清一区日本| 国产精品一区二区在线看| 国产成人精品免费网站| 在线观看亚洲a| 欧美日韩午夜在线| 亚洲色图在线视频| 国产suv一区二区三区88区| 欧美日韩在线直播| 一区二区三区日韩| 99精品久久久久久| 亚洲人成在线观看一区二区| www.激情成人| 亚洲摸摸操操av| 日韩一卡二卡三卡| 国产高清在线精品| 91丨九色丨国产丨porny| 91精品一区二区三区在线观看| 欧美极品少妇xxxxⅹ高跟鞋| 日韩 欧美一区二区三区| 91免费在线视频观看| 中文字幕在线观看一区| 麻豆成人av在线| 欧美电影免费观看高清完整版| 亚洲精品va在线观看| 免费观看日韩av| 日韩一区二区在线观看视频| 伊人婷婷欧美激情| 色婷婷av一区| 国产精品久久久久久久久图文区 | 亚洲影院免费观看| 国产一区二三区好的| 日韩欧美你懂的| 九色综合国产一区二区三区| 欧美一区二区三区视频| 青青草91视频| 欧美xxx久久| 9i在线看片成人免费| 欧美激情一区不卡| 亚洲第一搞黄网站| 欧美日韩国产天堂| 亚洲地区一二三色| 日韩你懂的在线播放| 热久久久久久久| 精品国产一区二区三区久久影院| 久草中文综合在线| 91福利国产精品| 国产精品灌醉下药二区| 久久久噜噜噜久噜久久综合| 99久久精品情趣| 91精品国产综合久久精品麻豆| 精品视频一区二区不卡| 91老师国产黑色丝袜在线| 亚洲乱码精品一二三四区日韩在线| 7777精品伊人久久久大香线蕉超级流畅 | 亚洲小说春色综合另类电影| 一本一本大道香蕉久在线精品| 亚洲欧美国产77777| 色狠狠色噜噜噜综合网| 亚洲特级片在线| 一本大道久久精品懂色aⅴ| 久久久亚洲国产美女国产盗摄 | 国产91清纯白嫩初高中在线观看| 亚洲蜜臀av乱码久久精品| 色吊一区二区三区| 玖玖九九国产精品| 久久久精品黄色| 国产精品影视在线观看| 亚洲日本乱码在线观看| 欧美四级电影在线观看| 免费xxxx性欧美18vr| 国产欧美中文在线| 欧美影院一区二区三区| 蜜桃视频一区二区三区在线观看| 国产日韩在线不卡| 欧美日韩一区二区三区四区| 国产一区二区三区最好精华液| 一区二区三区影院| 久久午夜色播影院免费高清| 91啪九色porn原创视频在线观看| 日韩vs国产vs欧美| 国产精品福利一区二区三区| 欧美一区午夜视频在线观看 | 中文字幕一区二区在线观看 | 麻豆91小视频| 久久婷婷成人综合色| 久久久不卡网国产精品二区| 亚洲精品国久久99热| 成人av免费在线观看| 日韩片之四级片| 亚洲第一福利一区| 国产精品亚洲第一区在线暖暖韩国| 日韩欧美亚洲一区二区| 久久美女艺术照精彩视频福利播放| 国产精品―色哟哟| 天堂资源在线中文精品| 天堂午夜影视日韩欧美一区二区| 7777精品伊人久久久大香线蕉经典版下载 | 麻豆成人免费电影| 亚洲欧洲av在线| 国产成人三级在线观看| 亚洲欧美日韩在线| 91精品国产综合久久精品| 蜜臀av一区二区| 亚洲男同1069视频| 91福利精品第一导航| 丝袜a∨在线一区二区三区不卡| 日韩欧美在线影院| 国产成人免费视频一区| 久久久www成人免费无遮挡大片| 狠狠色丁香婷婷综合| 国产精品青草综合久久久久99| 在线观看亚洲精品| 亚洲综合免费观看高清完整版| 欧美国产成人在线| 精品久久久三级丝袜| 亚洲成年人网站在线观看| 一区二区成人在线视频| 成人免费在线播放视频| 日韩欧美久久久| 日韩精品一区二区三区蜜臀| 欧美性xxxxxx少妇| 亚洲国产高清aⅴ视频| 欧美日韩成人在线一区| 色综合久久99| 亚洲乱码精品一二三四区日韩在线| 国产精品激情偷乱一区二区∴| 欧美在线一二三四区| 亚洲精品福利视频网站| 一区二区三区产品免费精品久久75| 日本伊人午夜精品| 国产成人av电影免费在线观看| 久久久久久免费网| 亚洲欧美日韩国产综合在线| 一区二区不卡在线视频 午夜欧美不卡在 | 国产一区日韩二区欧美三区|