HW#1 --- last modified January 01 1970 00:00:00..
Solution set.
Due date: Feb 8
Files to be submitted:
CourseMaker.java
Purpose:
To review our knowledge of Java and experiment
with HTML
and some of the classes in java.util
Specification:
For this assignment you will write a Java program CourseMaker.java.
Its purpose is to generate any HTML document for a class syllabus based on
data in a file given to it as a command line argument.
It will be tested at a command prompt with a command like:
java CourseMaker coursefile
Here coursefile is the name of any file containing the following data:
coursename
professor
office
office hours
prerequisite1:prerequisite2:prerequisite3:#endprereqs
text
grade component#1 percentage
grade component#2 percentage
.
.
.
#end grade components
topics paragraph
An example file might look like:
CS1234
Dr. Pollett
MH214
MWF 13:30-1:30
CS1:CS2:CS3:CS5:#endprereqs
Cool Graphics by Some Clever Guy
HWs 10
Proj1 20
Proj2 20
Midterm 20
Final 30
#end grade components
This semester we'll cover lots of cool stuff so you'll remember to give me
good evaluations at the end.
Your program will then output a file coursefile.html (or whatever the name of
the input file +.php). This file should produce code that when one
points one's browser to it looks something like:
CS1234
Instructor:Dr. Pollett |
Office:MH214 |
Office Hours:MWF 13:30-1:30 |
Prerequisites:
Required Text:
Cool Graphics by Some Clever Guy
Grade Breakdown:
HWs | 10 |
Proj1 | 20 |
Proj2 | 20 |
Midterm | 20 |
Final | 30 |
Topics:
This semester we'll cover lots of cool stuff so you'll remember to give me
good evaluations at the end.
|
The point breakdown below gives the elements that the code generated is
required to have.
Point Breakdown
Departmental coding guidelines for Java followed | 1pt |
Program uses command line argument correctly to read in a file |
1pt |
Program writes out an HTML file | 1pt |
Head of generated HTML file should have a title which is the name
of the course we are generating the syllabus for
| 1pt |
Head of generated HTML file should have meta tags for the content-type
author, keywords, and telling robots not to index it or to follow links on
it | 1pt |
Heading tag used in document | 1pt |
Unordered list tag used in document | 1pt |
Tables used for grade breakdown | 1pt |
Stylesheets or in-line styles used | 1pt |
All data from file output (and in a reasonably aesthetic way) |
1pt |
Total | 10pts |
|