1) Download putty (google putty, click downloads, select the putty.exe for Windows) 2) Connect to sybil via putty (see tutorial) 3) Type if you have not done so already: (only needs to be done once the whole semester) mkdir 201 This will create a directory for your homework/classwork. 4) Type: (you should do this every time you log into sybil) cd 201 This will switch you into the directory you just created. 5) Type: emacs hello.cpp This will open a text editor called emacs and a new or existing file called hello.cpp (ALTERNATE: 5b) Type: emacs and then use ctrl-x ctrl-f to open a file. 6) Type the next 10 lines into this open file: #include using namespace std; int main() { cout << "Hello World" << endl; } 7) Type: ctrl-x ctrl-s This will save all that you have written to hello.cpp 8) Type: esc-x compile Delete what is written there (if this is your first compile): 9) Type: g++ hello.cpp -o hello.exe This will compile the source program that we have written (called hello.cpp) into an executable program (called hello.exe). If the compilation listed errors then fix them. Save and compile again until the compilation is successful.. 10) When compilation is successful, put emacs to sleep. Type: ctrl-z 11) Test your program. Type: ./hello.exe This will execute the program you have just written! 12) Bring up emacs again. Type: fg 13) If you're done for today, you can close emacs. Type: ctrl-x ctrl-c 14) To leave and close your terminal type: exit --------- Homework #1: 1)Write a program to read in two integers called x and y. (use cin) 2)Check to make sure that y is not 0 because this will cause an error later. For now you can simply change y to 1 if the user enters a 0 for y. 3)Compute x/y and store the result in z. 4)Output the z to the console (use cout)