In the textbook, The Universal Machine, write answers for
the exercises 5.3, 5.4, 5.6, 5.7, 5.14b, 6.9, 6.17.
Design and implement a programs that solves exercise 5.16
(also in the multimedia for this chapter).
Also design and implement a program that reads in
the numeric month, day and year, on three separate lines, then puts
them together into one new Lstring
with slashes ("/")
in the right places, then displays the result, i.e.:
Enter a numeric month, day and year on three separate lines:Hints: Even though the program reads in parts of data as numbers, they need not be stored as numbers, but as
10
9
2000
10/9/2000
Lstring
s.
Then use Lstring
's concatenation operator, +
,
to build the internal Lstring
from individual Lstring
s,
including the slashes.
Extra credit: 5.18, 5.19, and/or 6.14.
Due: Thursday, 10/12, anytime before midnight.
Hand in: When you're ready to submit your assignment, combine the answers to all the exercises (including source code for the programming exercises. Then, using a web browser, go to The Student Drop Box for Introduction to Computing. (It's under Student Tools.) Click on the Browse button, then find your files in their folder (if you put it on a floppy disk, it's in A:). When you've selected your file, you should see a directory path to this file next to the Browse button. If it looks right to you, click on the Send File to Instructor button. Then you should see this file listed under Current Files in your DropBox. The Teaching Assistant, Jeffrey Eynon, will get this file and grade it.
Prof. Blank