Should our program account for any errors such as incorrect inputs being passed into the command line or incorrect data type or if an integer like 4 is located inside in.txt?
Could I clarify my out.txt results as I am not sure if what I have done is correct.
in.txt
0 1 2 3 0 1 2 3 0 1 2 3
out.txt
99, 4, 0, 99
99, 5, 1, 99
99, 6, 2, 99
99, 7, 3, 99
RAM Contents
0,2,8; 0,2,8; 1,2,9; 1,2,9; 2,2,10; 2,2,10; 3,2,11; 3,2,11; 0,1,4; 0,1...
Could I clarify my out.txt results as I am not sure if what I have done is correct.
in.txt
0 1 2 3 0 1 2 3 0 1 2 3
out.txt
99, 4, 0, 99
99, 5, 1, 99
99, 6, 2, 99
99, 7, 3, 99
RAM Contents
0,2,8; 0,2,8; 1,2,9; 1,2,9; 2,2,10; 2,2,10; 3,2,11; 3,2,11; 0,1,4; 0,1...
Hi, if there are only 5 integers in the in.txt, should I set my last 6 entries in out.txt to something like Empty? Also, is the format of out.txt defined? Or can I stylize it anyway I want?
Eg
in.txt
0 1 2 3 0
out.txt
Process 0 0, 4, 99, 99
Process 1 1...
CITS2002 Project 1 2024
Student1 STUDENT-NUMBER1 NAME-1
Student2 STUDENT-NUMBER2 NAME-2
Platform Linux (or Apple)
Hi, if I have been using windows but have been writing my code in VSC with WSL, should I indicate windows or L...
If the line in the mlfile reads function abc
Should it be returning 0.0?
Or is the return type void?
Meaning I would be writing void abc()
to the temp file?
If an expression that is not a print is not inside a function's scope, would it be in the global scope? And if the print is outside of a function's scope, would it be located in the main function?
For example, the ml file
9 is printed
one - 1.555
on...
In the project description, it states
the variables arg0, arg1, and so on, provide access to the program's command-line arguments which provide real-valued numbers
Does this just mean that if the ml file has an identifier called arg0, it would be usin...
The project description states that
All syntax errors detected in invalid ml programs must be reported via stderr on a line commencing with the ' ' character. Your runml program must be able to detect all invalid ml programs - EXCEPT that your progra...