MCD4700代做、Python/c++编程语言代写
MCD4700 Diploma of Information
Technology
1
MCD4700 Introduction to Computer Systems,
Networks and Security – T1 2024
Assignment 2 – Processes and MARIE Programming_Instruction
Purpose Processes and programs are what makes computers do what we
want them to do. In the first part of this assignment, students will
investigate the processes running on their computers. The second
part is about programming in MARIE assembly language. This will
allow students to demonstrate their comprehension of the
fundamental way a processor works.
The assignment relates to Unit Learning Outcomes 2, 3 and 4.
Your task For part 1, you will write a short report describing the processes that
are running on your computer.
For part 2, you will implement a simple game in the MARIE assembly
language.
Value 20% of your total marks for the unit
The assignment is marked out of 100 marks.
Word Limit See individual instructions
Due Date 11:55 pm Friday 12 April 2024 (Week7)
Submission ● Via Moodle Assignment Submission.
● Turnitin will be used for similarity checking of all submissions.
● This is an individual assignment (group work is not permitted).
● Handwritten work is not accepted. docx for the written tasks.
● MARIE files for the second part
● DRAFT submission is not assessed.
● You will need to explain your code in an interview.
Assessment
Criteria
Part 1 is assessed based on correctness and completeness of the
descriptions. Part 2 is assessed based on correctness of the code,
documentation/comments, and test cases.
See instructions for details.
Late Penalties By submitting a Special Consideration Form or visit this link:
https://lms.monashcollege.edu.au/course/view.php?id=1331
● Without special consideration, 10% deduction per calendar day or
part thereof for up to one week
MCD4700 Diploma of Information
Technology
2
● Assessment items will not be accepted after more than 7 calendar
days unless a Special Consideration application has been approved.
This 7-day time frame does not apply to assessments due in Week
12.
Support
Resources
See Moodle Assessment page
Feedback Feedback will be provided on student work via:
● general cohort performance
● specific student feedback ten working days post submission
INSTRUCTIONS ● This assignment has two parts. Make sure you read the
instructions carefully.
● You need to submit one zip file includes five files through the
Moodle Assignment activity:
Plagiarism Plagiarism: It is an academic requirement that the work you submit be
original. If there is any evidence of copying (including from online sources
without proper attribution), collaboration, pasting from websites or textbooks,
Zero marks may be awarded for the whole assignment, the unit or you may
be suspended or excluded from your course. Monash Colleges policies on
plagiarism, collusion, and cheating are available here or see this link:
https://www.monashcollege.edu.au/__data/assets/pdf_file/0010/17101/dipassessment-policy.pdf
Further Note: When you are asked to use Internet resources to answer a
question, this does not mean copy-pasting text from websites. Write
answers in your own words such that your understanding of the answer is
evident. Acknowledge any sources by citing them.
The generative AI is not allowed to be used to generate any solutions for this
assessment.
MCD4700 Diploma of Information
Technology
3
1. Processes (15 marks)
Calculate the turnaround time for the following processes and subsequently calculate their
average turnaround time
Process Processing Time
P1 1
P2 5
P3 3
P4 2
P5 7
P6 4
P7 1
a- In FCFS first-come first-served
b- In SJF shortest job first
c- In Round Robin with slice time=2
MCD4700 Diploma of Information
Technology
4
2. MARIE (65 marks)
In this task you will develop a MARIE application that performs some manipulation of characters,
strings and numbers. We will break it down into small steps for you. Most of the tasks require
you to write code and test cases. The code must contain proper comments and well indented.
You submit it as .mas files together with the rest of your assignment. The test cases should also
be working, self-contained MARIE assembly files (without requiring much input from the user).
In-Class interviews: You will be required to demonstrate your code to your tutor after the
submission deadline. Failure to demonstrate will lead to “zero marks” being awarded to the
entire programming part of this assignment.
Background - Lists of data
This section introduces the concepts you need for the rest of the assignment. A string is a
sequence of characters. It’s the basic data structure for storing text in a computer. There are
several different ways of representing a string in memory and how to deal with strings of arbitrary
length.
For this assignment, we will use the following string representation:
● A string is represented in contiguous memory locations, with each address containing one
character.
● The characters are encoded using the ASCII encoding.
● End of a string is marked by the ASCII character ‘.’ (i.e. dot or full-stop).
● A string can be of any arbitrary length, and will be terminated by a ’.’, and it may contain
any of the following: alphabets (A-Z, a-z), numbers (0-9), ASCII Space Character (Hex
020) and New Line (Hex 00A).
Here is an example. A string “Dong Satria.” will be represented in memory (written as
hexadecimal numbers):
044 06F 06E 067 020 053 061 074 072 069 061 02E
D o n g S a t r i a .
Note that, in the above example, for a string with 10 characters, we need (10+2) words of MARIE
memory in order to store all the characters belonging to that string (including a space and a ‘.’
characters).
In MARIE assembly language programming, we can make use of the ADR command, the HEX
keyword and a label “myString” to put this string into memory:
MCD4700 Diploma of Information
Technology
5
myStringAddr, ADR myString
myString, HEX 044 /’D’
HEX 06F /’o’
HEX 06E /’n’
HEX 067 /’g’
HEX 020 /Space
HEX 053 /’S’
HEX 061 /’a’
HEX 074 /’t’
HEX 072 /’r’
HEX 069 /’i’
HEX 061 /’a’
HEX 02E /’.’
2.1. Your name as a MARIE string (5 marks)
The following example of a MARIE string “myString” encodes a name and an ID using ASCII
characters. The “name” is separated from the ID by an ASCII character “Hex 00A” (New Line).
Different parts of a name are separated by another ASCII character “Hex 020” (Space). And the
entire string, consisting of a name and an ID, is terminated by a dot ‘.’ character.
Please see the example below. The label “myStringAddr” holds the address of the first character
of the string. You need to follow this MARIE string while solving the task given below.
myStringAddr, ADR myString
myString, HEX 044 /’D’
HEX 06F /’o’
HEX 06E /’n’
HEX 067 /’g’
HEX 020 /Space
HEX 053 /’S’
HEX 061 /’a’
HEX 074 /’t’
HEX 072 /’r’
HEX 069 /’i’
HEX 061 /’a’
HEX 00A /NL(New Line)
HEX 032 /’2’
HEX 031 /’1’
HEX 038 /’8’
HEX 033 /’3’
HEX 039 /’9’
HEX 039 /’9’
HEX 030 /’0’
HEX 030 /’0’
HEX 02E /’.’
MCD4700 Diploma of Information
Technology
6
Prepare a MARIE program to encode a string that includes your full name (first name and last
name) and your student ID using ASCII characters. Following the above example, you need to
use two labels, one label (e.g. “myString”) to store the first character of the string, and another
label (e.g. “myStringAddr”) to store the address of the first character of the same string.
You need to submit a MARIE file that contains codes, using the ADR command and HEX
keywords (like the above example), so that after assembling, your name, ID and the address
(of the first character of the string) is stored in MARIE memory. The codes must be accompanied
by appropriate comments (as a paragraph before any block of code or subroutine or as inline
comments wherever appropriate).
2.2. Printing string (10 marks)
Prepare a MARIE program that can print the ASCII ‘.’ terminated string of your name and your
student ID that you have implemented in task 2.1. You may use the “Output” instruction to print
characters in the MARIE output space. The program should be able to print any string that
terminated with ‘.’.
Hint: In your program, you need to use a label “myString” that holds the start address of the
string (like, myStringAddr) that you want to print. Then, you should load a character from the
address “myString”, print the character, then increment the address by one, and keep doing that
up to the character loaded from the address is a ‘.’ (which signals the end of the string). The
output may look similar to the output below. The codes must be accompanied by appropriate
comments (as a paragraph before any block of code or subroutine or as inline comments
wherever appropriate).
Inside the Memory
Dong Satria
21839900
Figure 1: Print your name and ID
MCD4700 Diploma of Information
Technology
7
2.3 Subroutines to print a string and Calculate a Numerology (Expression Number)
(25 marks)
Numerology is a belief system that suggests the numerical value of a name can influence
various aspects of personality and professional development. The number associated with a
name is often referred to as the 'Expression number'. To calculate this number, each letter in
the name is assigned a unique number from 1 to 26, following this key:
A=1, B=2, C=3, D=4, E=5, F=6, G=7, H=8, I=9, J=10,
K=11, L=12, M=13, N=14, O=15, P=16, Q=17, R=18,
S=19, T=20, U=21, V=22, W=23, X=24, Y=25, Z=26.
This method can be implemented with any name, assuming that all the letters are capital
letters, and there are no special characters except spaces.
To find your Numerology or Expression number, follow these steps:
1. Write out the string (usually a name) for which you want to determine the Numerology
or Expression number.
2. Match each letter in the string to its corresponding number using the key.
3. Add together all of the numbers associated with the letters in the string.
4. Reduce the sum of the string numbers:
a. If the sum is two digits, repeatedly add together the two digits until you get a single
digit.
b. If the sum is greater than 2 digits, reduce the number to two digits by adding
together the digits repeatedly until you get either one digit or two digits
Example1:
M O N A S H
13 15 14 1 19 8
13 + 15 + 14 + 1 + 19 + 8 = 70
70 = 7 + 0 = 7
The Expression number = 7
Example2:
M O N A S H space C O L L E G E
13 15 14 1 19 8 3 15 12 12 5 7 5
13 + 15 + 14 + 1 + 19 + 8 + 3 + 15 + 12 + 12 + 5 + 7 + 5 = 129
129 = 1 + 2 + 9 = 12
The Expression number = 12
MCD4700 Diploma of Information
Technology
8
Create two MARIE subroutines: one named "subPrintString" to print a string terminated
with a period ('.'), and another named "subCountNumerology" to calculate the Expression
Number for the given string. These subroutines should follow these guidelines:
The subroutines should:
1. Print the string
2. On the second line, print the sum of the (Expression Number) before reducing it.
3. On the third line, print the Expression Number after the reduction.
Figure 2.a: Using subroutines to Display a string and find an Expression number
Figure 2.b: Using subroutines to Display a string and find an Expression number
Note: MONASH COLLEGE is just an example
(Expression Number) before reducing it
(Expression Number) after reducing it
MCD4700 Diploma of Information
Technology
9
2.4 Assembly Language and Machine Language (15 marks)
This task is for HD students
To get HD in this assignment you have to think again before ignoring this task
a. Write at least four differences between (at most 200 words):
i. Assembly Language
ii. Machine Language
b. Prepare a MARIE program that initialised with three values (X, Y and Z) then find and
print the result of (X+Y-Z) in:
i. Assembly Language
ii. Machine Language
Note: Assuming that the result is always between -9 and 9.
The codes must be accompanied by appropriate comments (as a paragraph before any block
of code or subroutine or as inline comments wherever appropriate). The code of the assemble
and the machine should be in one MARIE file called (AssemblyANDMachine).
Example1:
Figure 3.a: Assembly and Machine Language
The result of 10+9-21 in
assembly
The result of 10+9-21 in
Machine language
Note: The result should
be converted from
decimal to Unicode
(ASCII) to be displayed
like this.
MCD4700 Diploma of Information
Technology
10
Example2:
Figure 3.b: Assembly and Machine Language
Marks (for each representation):
• Correct explaining: 6 marks
• Correct code in assembly and machine: 6 marks
• Correctly convert the decimal to Unicode and display the result as above: 3 marks
Code Documentation and Development (5 marks)
All the variables/labels should have a meaningful naming convention. The code should include
proper comments.
Code Readability (5 marks)
Before you submit, be sure your code is well organised and very easy to follow included code
indentation, effective use of whitespace etc.
The result of 10+9-13 in
assembly
The result of 10+9-13 in
Machine language
Note: The result should
be converted from
decimal to Unicode
(ASCII) to be displayed
like this.
MCD4700 Diploma of Information
Technology
11
Report Structure and Correct files (5 marks)
Files to be submitted:
One folder named “YourFirstNameLastNameStudentID” containing the following files:
1. Report for the written tasks (One Word file called YourFirstNameLastName
StudentID.doc / docx). The report should include your Full name, your student ID, your
class number and your tutor’s name.
2. MARIE files for tasks 2.1 to 2.4 name them as below:
● 2.1_NameID.mas
● 2.2_PrintNameID.mas
● 2.3_SubroutinesToPrint&countNumerology.mas
● 2.4_ AssemblyANDMachine.mas
Zip the folder under the same name and submit it to Moodle. You need to make sure there are
no spaces in any of the filenames.
3. In-class oral/coding assessment (15 marks)
In addition, you will be asked some questions related to MARIE to assess your level of
understanding. Your tutor will ask a couple of questions about the MARIE programming
language and/or you are required to code a task using MARIE.
NOTE! Your submitted files must be correctly identified (as described above).
Any submission that does not comply will receive an automatic 10 marks
penalty (applied after marking).
请加QQ:99515681 邮箱:99515681@qq.com WX:codinghelp
- 进军广阔的骨质疏松药物市场 国家药品监督管理局正式批准博固泰®(特立帕肽注射液)上市
- Ins自动私信/强私教程,Instagram营销引流神器全方位解析!
- 智行318——全球首个公路旅行AI机器人重磅发布
- 海外竞争让你无所适从?WhatsApp一键解决你的烦恼,让你在竞争中脱颖而出!
- Ins引流营销助手,Instagram打粉工具,助你轻松拓展市场!
- 共绘数字化新篇章|谷器数据获评中国移动“2023年度优秀信息化合作伙伴”
- 热辣滚烫!2024低代码6大趋势
- INFR11199代做、代写SQL语言编程
- ws/WhatsApp营销软件,ws协议号群发工具/ws拉群工具/ws劫持号
- 怎么找到靠谱的Line协议号卖家全球通证:博主推荐,LINE营销工具如何引领我业务走向国际巅峰
- 精细营销,成功之门! 跨境电商Telegram协议号注册器群发软件,助您在市场竞争中脱颖而出
- Ins群发脚本营销软件,Instagram一键群发工具,让你打造营销新格局!
- WhatsApp拉群工具启示录 群发再不是难题 专业海外营销者亲授如何巧妙规避风控 业务高效运转
- “画游千里江山”亮相2024北京台春晚龙行北京会场
- 揭秘广东筑梦人新型材料有限公司负氧离子黄晶板简约而不失随性的生活
- 印度#Telegram协议号-telegram劫持号-telepram拉群软件稳定耐用欢迎盘口直购
- 跨境运营的力量:WhatsApp代筛料子助您打造高质量数据库
- 掌上汽车:引领智能出行新风尚
- 捷泰天域获2023年度中国智能零售行业评选“影响力IT企业”
- ins群发软件/instagram群发软件,海外爆粉联系天宇预约测试
- 外贸的未知星球,充满神秘与机遇。作为一位科幻魔法师,我时刻寻找着能为业务注入前所未有体验魔力的工具。而WhatsApp拉群工具,正是我近期发现的宝藏。
- INFR11199代做、代写SQL语言编程
- 批量群发秘籍!Instagram 2024最新群发软件推荐,Ins引流轻松搞定!
- Combinatorial Problem Solving 编程代写、代做C++程序语言
- 精准推广无忧 WhatsApp拉群营销工具助您解决市场覆盖不足问题
- 使用Line协议号星际商务奇谭:LINE工具是科技魔法的催化剂,引领我进入业务的星际时代
- 跨境电商 Line 群发云控 虚拟商城的幻境
- 威尔特流体VDP蠕动泵抽排废液介质使用分析
- 家居建材网:打造您的理想家居,一站式购物新体验
- 神州医疗与协和罕见病诊疗创新发展研究院开展战略合作,共建联合实验室
推荐
- 创意驱动增长,Adobe护城河够深吗? Adobe通过其Creative Cloud订阅捆绑包具有 科技
- B站更新决策机构名单:共有 29 名掌权管理者,包括陈睿、徐逸、李旎、樊欣等人 1 月 15 日消息,据界面新闻,B站上周发布内部 科技
- 丰田章男称未来依然需要内燃机 已经启动电动机新项目 尽管电动车在全球范围内持续崛起,但丰田章男 科技
- 如何经营一家好企业,需要具备什么要素特点 我们大多数人刚开始创办一家企业都遇到经营 科技
- 苹果罕见大降价,华为的压力给到了? 1、苹果官网罕见大降价冲上热搜。原因是苹 科技
- 疫情期间 这个品牌实现了疯狂扩张 记得第一次喝瑞幸,还是2017年底去北京出差的 科技
- 升级的脉脉,正在以招聘业务铺开商业化版图 长久以来,求职信息流不对称、单向的信息传递 科技
- 智慧驱动 共创未来| 东芝硬盘创新数据存储技术 为期三天的第五届中国(昆明)南亚社会公共安 科技
- 老杨第一次再度抓握住一瓶水,他由此产生了新的憧憬 瘫痪十四年后,老杨第一次再度抓握住一瓶水,他 科技
- 全力打造中国“创业之都”名片,第十届中国创业者大会将在郑州召开 北京创业科创科技中心主办的第十届中国创业 科技