CSCI 1120 (Low-Level Computing), Fall 2021:
Homework 1
- Credit:
- 5 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 and one PDF file.
You can submit your file(s)
one of two ways:
- using my mail-files script, linked from the course Web site
under “Links”.
- by putting them in your course “TurnIn” folder on
Google Drive.
(Note that I want plain-text files, ideally with an extension of .c,
but if Google Drive balks at that, rename to have an extension of .txt.
I want something I can compile as is, except for possibly a change of filename.
So no screenshots!)
- (5 points)
(Not really a programming problem, but one that requires you
to use a computer.)
For this problem your mission is to learn a little more about
traditional UNIX text editors vi and/or emacs.
Do one or both of the following
(full credit for doing one, extra credit if you do both).
- Do something to improve your ability to use vi
(or, more properly, vim, since that's what we
have installed).
Options include:
- Start the interactive tutorial by opening a terminal
window and typing vimtutor. Work through at least
the first lesson, more if you have time.
- If you've used vi before,
think about your past use of vi and identify
something you find particularly annoying
(e.g., not knowing how to cut and paste).
Then try to find a way to reduce the annoyance.
You may find something helpful in the tutorial,
or in the online help (which
you start from within vi by typing :help
and pressing the Enter key), or you may prefer to use
your favorite search engine.
- Learn something about emacs.
If you've never used it,
start it by typing emacs -nw in a terminal window.
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 like, but the point here is to learn to use
a text-mode editor, since in some situations that may be
all you have access to.)
If you already know something about emacs,
either work through some of the tutorial,
or do the second option for vi above
(identify an annoyance and try to figure out a way to reduce it),
but for emacs.
For each editor you learn about, produce two things:
- A text file, created with the editor itself,
containing
a paragraph or two about what you learned and what you
wish you still knew about it.
- A “cheat sheet” you can use for reference when you use
this editor.
The point here is to have something you can keep on your
desktop (virtual or physical) when you use the editor,
until you remember the commands you find most useful.
It could be a plain text file or a word-processor document
or even a page of handwritten notes.
Whatever you choose for it, send me either a plain-text or
a PDF version of it.
Turn in the resulting files (plain-text “what I learned” file(s)
and cheat sheet(s).)
Include with your assignment the following information.
For programming assignments, please put it a separate file.
(I strongly prefer plain text, but if you insist you can put
it in a PDF -- just no word-processor documents or
Google Drive links please.)
For written assignments, please put it in your main document.
This should 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).
Text in italics is explanatory or something for you to
fill in;
you don't need to repeat it!
- I did not get outside help aside from course
materials, including starter code,
readings, sample programs, the instructor.
- 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, 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.)
This should be a brief essay
(a sentence or two is fine, though you can write as much as you like)
telling me what if anything you think
you learned from the assignment,
and what if anything you found
interesting, difficult, or otherwise noteworthy.
2021-09-28