INFO-I211 Lab 2
Data and Expressions
Due date: see Oncourse Modules or Assignments
50 points
Due date: see Oncourse Modules or Assignments
50 points
Prerequisite: Lewis and Loftus, Chapter 2.
Required: Programming Project PP 2.8, page 109, converting time duration in hours, minutes, seconds to time duration in seconds.
Test the program with these test cases, and capture the test I/O as described in Lab 1.
Turn in the source code and test output files in Oncourse Assignments.
cat to dump
the output file to the screen.
sort
or to wc.
ls command with wildcards to list
the files in your working directory where
(a) the file name begins with "time";
(b) the file name ends with ".java";
(c) the file name ends with ".class";
(d) the file name contains an "i" anywhere.
man ls to
learn how to do this. (Hint: look at the command line
options like -a.)
This part is ungraded.
| Item | Points |
|---|---|
| Source code is correct. | 30 |
| Source code shows good style. | 10 |
| Tested with required test data. | 10 |
| Total | 50 |
The Coding Standards for Chapters 1–2 apply to this assignment.
The late policy described in the syllabus applies to this assignment.