70 likes | 296 Views
ENEE 150. Section: 0102 TA: Emily Ruppel Tentative webpage: ece.umd.edu/~ eruppel. Accessing the UMD server: Open PuTTY from the desktop icon Type “linux.glue.umd.edu” into the “Host Name” bar Click “Open” Enter your Directory ID and then password when prompted. Glue Accounts.
E N D
ENEE 150 Section: 0102 TA: Emily Ruppel Tentative webpage: ece.umd.edu/~eruppel
Accessing the UMD server: • Open PuTTY from the desktop icon • Type “linux.glue.umd.edu” into the “Host Name” bar • Click “Open” • Enter your Directory ID and then password when prompted. Glue Accounts
Navigating Glue • cd .., /, ~ • Ex. cd ../ENEE150/Projects/Project3 • ls, ls –l, ls -lt • Directory Manipulation: • mkdir • Mv • rmdir • File Manipulation: • rm • cp Unix Commands
Submit command format: <year> <semester> <college> <course> <section> <assignment> <filename> • Example: submit 2014 Spring ENEE 150 0102 1 superbowl.c • Create and submit a text file with your name, section number, and your pick for the Superbowl. Use 1 for the assignment number. Submit
GCC is the compiler that will be used to grade all submissions. • Command: gccproject.cheader.cextra.c • If you are using a different compiler for testing, be sure to check your program using the GCC compiler on PuTTY! GCC
Questions? • Tip: use “wget” command to download the homework files Homework
Ask the user to input two numbers n and k (both less than 100), then print out the numbers from 0 to n with k numbers per row, in a zigzag format. • For instance, the output for (20,7) is: 0 1 2 3 4 5 6 13 12 11 10 9 8 7 14 15 16 17 18 19 20 Example Problem