EEE 13 MP1 Thursday Class
Untag
The objective is to create an application untag that will count all html tags from a html source file. An html tag is defined as a word enclosed by < and > characters. Only the opening tag should be counted.
Suppose we have index.html with the ff text:
Things to do
- Wake up
- Eat
- Study
- Sleep
untag can be executed as:
./untag index.html
The results would be:
:1
:1
:1
:1
- :4
Hint: use a link list to store the tag and its count.
MP1 will be graded as follows:
1. 10% - the program must at least compile
2. 30% - the program must work using our test input
3. 30% - the program must be well structured. Organize functions by file and use a Makefile to compile them altogether. Use the Linux coding style to name your functions and variables.
4. 30% - Q and A
MP1 will be checked on Thu Aug 14, 830am. Save your files under ~/mp1. Each student will be called to demo and defend his/her MP1.