- [JJ] Work on updating proposal
Reply to JJ on when you can send updated syllabus based on sked below
- Doc tiff
- Ms Ai
Outline:
Complete the full interpreter programming assignment.
Be sure to include your code and tests from previous submissions, but feel free to make any improvements to your code.
Remember: Your tests will be graded as well. Make sure to include comprehensive tests for multiple cases.
[email protected] (Use zip! Don't use other types of compression. WRONG: [email protected], [email protected])IMPORTANT: I'm using an auto-grader. If you do not follow these instructions precisely then the grader will fail on your code and you'll be given a 0 for this exercise
Folder structure for tests submission (NOTE: different from code + tests folder structure)
[email protected]
[email protected] (Use zip! Don't use other types of compression. WRONG: [email protected], [email protected])IMPORTANT: I'm using an auto-grader. If you do not follow these instructions precisely then the grader will fail on your code and you'll be given a 0 for this exercise
Folder structure for code + tests submission
| class ReadArgs { | |
| public static void main(String[] args) { | |
| System.out.println(args.length); | |
| if (args.length >= 1) { | |
| System.out.println("Running commands in file: " + args[0]); | |
| } else { | |
| System.out.println("No args provided. Running in interactive mode"); | |
| } | |
| } | |
| } |
| #include <stdio.h> | |
| int factorial(int n) { | |
| int result = 1; | |
| /* for i in range(1, n + 1): */ | |
| for (int i = 1; i < n + 1; i++) { | |
| result = result * i; | |
| } | |
| return result; | |
| } |
| #include <stdio.h> | |
| int str_len(char str[]) { | |
| int count = 0; | |
| for (int i = 0; str[i] != '\0'; i++) { | |
| count = count + 1; | |
| } | |
| return count; | |
| } |