Homework 2

Due: 09-28-2017

Part A:

Geologic time is divided into eras, periods, and epochs. The eras and their periods are:

·  Proterozoic: (none)

·  Paleozoic: Cambrian, Ordovician, Silurian, Devonian, Mississippian, Pennsylvanian, and Permian

·  Mesozoic: Triassic, Jurassic, and Cretaceous.

·  Cenozoic: Paleogene and Neogene.

Only the Paleogene and Neogene periods are divided into epochs. They are:

·  Paleogene: Paleocene, Eocene, and Oligocene

·  Neogene: Miocene, Pliocene. Pleistocene, and Holocene

Using a document-level style sheet and nested ordered lists, show this information in outline form. The eras must be numbered using upper Roman numerals, the periods must be numbered with upper alphabetic, and epochs must be numbered using decimal numbers.

The background color of the Proterozoic era must be pink. The background color of the Paleozoic era, including its periods, must be blue. The Mesozoic era must have a green background, and the Cenozoic era must have a red background.

Just to make this clear, here is a little bit of the outline:

The easiest way to do this is to make liberal use of class specifications in your document-level style sheet. So, you might code something like this:

If you cannot get all this to work using only a document-level style sheet, you may do the numbering with document-level styles and the colors with in-line styles, but try it with all document-level styles first. It can be done.

If you can't get color behind the numbers, don't worry too much about it as long as there's color behind the text.

Name your document h2_1_XX.html. Replace XX with your initials.

Part B:

Create a webpage which asks a student for his/her name and score on CSCE 102.

You can assume that the input will be 87. Then display the grade the student will receive. For grading ranges, please refer to the syllabus. (Hint: to ask and save response, use prompt

function)

The file needs to be named as h2_2_XX.html. Replace XX with your initials.

Type of Submission: only submission in blackboard is required. Create a compressed zip file of all the homework related files and submit to blackboard. The name of the zip file will be h2_XX.zip. Replace XX with your initials. If you do not know how to do that, take a look in the following link.

http://www.laptopmag.com/articles/how-to-zip-files-windows-10

Note: Submissions beyond the deadline will not be accepted/graded.