Skip to content

Instantly share code, notes, and snippets.

View jjlumagbas's full-sized avatar

JJ Lumagbas jjlumagbas

View GitHub Profile

Inter-departmental technopreneurship program

Todos

  • [JJ] Work on updating proposal

Reply to JJ on when you can send updated syllabus based on sked below

  • Doc tiff
  • Ms Ai

CMSC 124 Programming Languages Final Project

Outline:

Description of languages

Target audience

"Brochure"

  • prospective students: contact info, general idea of coverage sa degree, admission requirements/procedure

Full interpreter

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.

Submission

  1. Create a folder with your email address as its name, following the folder structure below (Use up.edu.ph emails!)
  2. Zip that folder up: [email protected] (Use zip! Don't use other types of compression. WRONG: [email protected], [email protected])
  3. Submit the zip file

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]
  1. Create a folder with your email address as its name, following the folder structure below (Use up.edu.ph emails!)
  2. Zip that folder up: [email protected] (Use zip! Don't use other types of compression. WRONG: [email protected], [email protected])
  3. Submit the zip file

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

@jjlumagbas
jjlumagbas / interactive-mode.md
Last active December 13, 2016 00:59
MP4 - Command Prompt sample input/output

Edit in interactive mode

Enter command edit

> edit hello.txt<Enter>
|                              # text editor is now open

add some text

@jjlumagbas
jjlumagbas / ReadArgs.java
Last active December 12, 2016 23:53
How to read command line arguments
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");
}
}
}
@jjlumagbas
jjlumagbas / lists.c
Created December 12, 2016 06:17
Arrays in C
#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;
}
@jjlumagbas
jjlumagbas / strings.c
Created December 8, 2016 05:50
Strings in C
#include <stdio.h>
int str_len(char str[]) {
int count = 0;
for (int i = 0; str[i] != '\0'; i++) {
count = count + 1;
}
return count;
}