CSCI 1312 (Introduction to Programming for Engineering), Fall 2018:
Homework 1
- Credit:
- 10 points.
(None.)
(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 problem(s).
You will end up with at least one text file.
Submit your file(s)
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'').
- (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:
- Open a terminal window (as we did in class), and start
the interactive tutorial by typing vimtutor.
Work through at least Lesson 1, more if you have time.
- Now use what you have learned to create a text file
in which you describe your experience so far with
vi -- likes/dislikes, things you'd
like to be able to do but don't know how to, etc.
You could call it vi.txt or learning-vi.txt.
(Avoid names with spaces for now. I'll explain why in class.)
A good place to put this file would be in a directory
(folder) called CSCI1312.
- Turn in your file as described above.
- (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.
(Without the -nw you get a graphical version,
which you might like but which won't work well for remote use.)
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.
Include the Honor Code pledge or just the word ``pledged'',
plus at least one of the following about
collaboration and help (as many as apply).1Text in italics is explanatory or something for you to
fill in.
For programming assignments, this should go in the body of the e-mail
or in a plain-text file honor-code.txt (no word-processor files
please).
- This assignment is entirely my own work.
(Here, ``entirely my own work'' means that it's
your own work except for anything you got from the
assignment itself -- some programming assignments
include ``starter code'', for example -- or
from the course Web site.
In particular, for programming assignments you can
copy freely from anything on the ``sample programs page''.)
- I worked with names of other students on this
assignment.
- I got help with this assignment from
source of help -- ACM
tutoring, another student in the course, the instructor, etc.
(Here, ``help'' means significant help,
beyond a little assistance with tools or compiler errors.)
- I got help from outside source --
a book other than the textbook (give title and author),
a Web site (give its URL), etc..
(Here too, you only need to mention significant help --
you don't need to tell me that you
looked up an error message on the Web, but if you found
an algorithm or a code sketch, tell me about that.)
- I provided help to names of students on this
assignment.
(And here too, you only need to tell me about
significant help.)
Include a brief essay (a sentence or two is fine, though you can write
as much as you like) telling me what about the assignment you
found interesting, difficult, or otherwise noteworthy.
For programming assignments, it should go in the body of the e-mail
or in a plain-text file essay.txt (no word-processor files
please).
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
2018-10-20