CSCI 1312 (Introduction to Programming for Engineering), Fall 2017:
Homework 1

Credit:
10 points.

Reading

(None.)

Honor Code Statement

Please include with each part of the assignment the Honor Code pledge or just the word ``pledged'', plus one or more of the following about collaboration and help (as many as apply).1Text in italics is explanatory or something for you to fill in. For written assignments, it should go right after your name and the assignment number; for programming assignments, it should go in comments at the start of your program(s).

Programming Problems

(For this assignment, you won't actually be programming, but you will be doing something on a computer, and submitting your answers in the way you'll submit your programs in later assignments.)

Do the following problems. You will end up with at least one text file. Submit this file or files by sending mail to bmassing@cs.trinity.edu with each file as an attachment. Please use a subject line that mentions the course and the assignment (e.g., ``csci 1312 hw 1'' or ``CS1 hw 1'').

  1. (10 points) For this problem your mission is to learn a little more about the text editor I teach in this course, vi. Do the following:

  2. (Optional -- up to 5 extra-credit points) I mentioned in class that there are many other text editors available on typical UNIX/Linux systems. For extra credit, use one of them to write a short text file, as described in the previous problem. Send me this file by e-mail, as described above. (You can send both files in a single message or send them separately, whichever is easier.)

    Which editor should you try this with? My vote is for emacs -- it's also widely available on UNIX/Linux systems, and I know enough about it to be able to try to answer your questions. Start it by opening a terminal window and typing emacs -nw. This should give you a page of instructions. Press control-h and then t to start an interactive tutorial. Work through as much of this tutorial as you need to in order to create and save a text file. Starting the program by just typing emacs starts a graphical version of the program, which you may prefer for use in our labs, but which isn't as useful if you're working remotely.



Footnotes

... apply).1
Credit where credit is due: I based the wording of this list on a posting to a SIGCSE mailing list. SIGCSE is the ACM's Special Interest Group on CS Education.


Berna Massingill
2017-09-05