Homework Introduction
All programming assignments are to be submitted to the Linux Server (more information can be found in the syllabus). Homework 0 (hw0) and a video tutorial for submitting assignments can be found on BlackBoard. Please complete and upload hw0 to the server (while this assignment is not graded, you should complete it to get familiar with the server).
Steps for submitting hw0:
- Linux server setupDownload Putty & Firezilla
- Use quick connect to login to Putty
- Host is 2436.cs.uh.edu
- Username is your cougarnet username
- Password is "password" + last 4 digits of PSID
- For example, if your PSID was 1234567, your password would be: password4567
- Port is 22
- Implementing the argument manager
- Argument manager is a class that redirects the input file names used by each test suite into a single "input" or "output" identifier for you to use in your program.
- You can review the resources on Canvas or contact a TA if you need assistance with understanding Argument Manager
- Testing your program
- While you are developing your program
- Open the terminal of your text editor or IDE (if you do not have one, try repl.it)
- Enter: "chmod u+x test0.sh"
- Enter: "./test0.sh"
- Your results will be printed in the terminal (SUCCESS/FAIL). Your program's output will be stored in generated files.
- Tutorial for testing homework on Replit (another tutorial)
- When you have uploaded your program to the server and submitted it (Step 4)
- Open Putty
- Enter your credentials. Note that your characters will not be visible when entering your password. Simply type it and press enter.
- You are now logged into the Linux terminal. Enter "cd hw0" to enter the hw0 directory
- Enter: "chmod u+x test0.sh"
- Enter: "./test0.sh"
- Your results will be printed in the terminal (SUCCESS/FAIL). Your program's output will be stored in generated files.
- While you are developing your program
- Turning in the Homework
- Open FileZilla
- Use QuickConnect to log into the server the same way as you did in Step 1.
- You should see your file tree on the right-hand side.
- Right-click your main directory (a folder named coscxxxx) and make a new directory
named "hw0"
- It is itvital you name the directory in lowercase exactly as it is in Blackboard. You may not receive credit if it is incorrect.
- Drag all your program files into your new directory to upload them to the server.
- Follow Step 3 to verify your program works on the server.
- Homework Assignment Regrades
- You get two regrades for each homework assignment.
- To upload your regrade, Follow Step 4 to enter FileZilla. Simply enter the hw directory and replace the files with your updated program. Do not make a new directory.
- Read the syllabus for more information on regrade credit.
Why I got a 0 on an assignment (homework, lab, group assignemnt)?
Here are some common issues among students that can result in a zero:
- Forgetting to upload main.cpp
- Not spelling directory correctly
- Extraneous files (like replit artifacts, CMake, etc) that interfere with the execution are added. Header (.h) files and the files in the .zip folder are fine to upload.
- The folder does not have the necessary permissions
- You must create the directory on FileZilla by right-clicking the explorer, selecting "create directory" and ensuring the permissions follow "drwxr-x--x"
- Double-click the new directory to enter it, then drag and drop your program files
into the FileZilla Explorer (bottom right window). This should initiate a file transfer.
- You cannot upload files from a compressed (.zip) folder. You must extract the folder to upload.
- After the file transfer success message, ensure all file permissions follow "drwxr-x--x"
- If a file or folder does not have these permissions, you must log into Putty and set the permissions of the file/folder by entering the command "chmod 751 <filename>" and replacing the "<filename>" with the name of the file/folder. Remember to "cd" into the directory of your assignment before entering the command. Enter "ls -la" to view the updated permissions
- Ex: "chmod 751 main.cpp"
- Open Putty and run the test script on the server to check your submission validity. You can leave the input files in the directory afterward.
If you received a 0 for hw1, you can fix your program for the first regrade (max 80% credit). If you have a problem with your grade, please read the list before emailing a TA. The TAs will not manually grade submissions that have any of the above issues.
If "test-full.sh" is added into the archive, you can visualize see what test cases your hw failed. Simply drag the hw1-archive folder onto your desktop, open the terminal on your local machine and run "./test-full.sh" to see your score for all 9 test cases.