Question: Code in C++ input: Basic HTML Sample Page A Simple Sample Web Page Demonstrating a few HTML features Web page coding in HTML includes pairs
Code in C++

input:
A Simple Sample Web Page
Demonstrating a few HTML features
Web page coding in HTML includes pairs of what are called "tags HTML and TITLE and ,
and
. Tags are surrounded by pointed brackets and and tags that occur in pairs have a forward slash just inside the left bracket of the closing tag. The last tag started must be the first one closed. Using a stack, write a program which takes HTML input and determines whether the tags are properly matched. Note that there are some tags that do NOT have a match e.g. P SBR>, IMG do not have a matching ending tag Also, count the number of times each non-ending tag appears in the code e.g. countRequirements: l.) Read in the tags that do not have matches from a file (assume only the three listed above) and store in a linked list 2.) Read in the html from a file and print each line to the screen AND an output file Find tags and process (can have more than one in a line) 3.) 3.1) create alphabetical list of opening and no-match tags found in file 3.1.1) tag not in list add to list with count of l 3.1.2) tag in list add to count 3.2) if opening tag add to top of verify tag stack tag on top of verify tag stack 3.3) if closing tag check for a "matching" opening 3.3.1) if match to tag on top of the stack pop the verify tag stack if not a match to tag on top of the stack error print an error message s to the 3.3.2) screen AND an output file and continues processing tags 4.) After html file processed print out to the screen AND an output file an the alphabetical list of indicating "match" or "no match" tag pe and the count of the number of times each occurred. Web page coding in HTML includes pairs of what are called "tags HTML and TITLE and ,
and
. Tags are surrounded by pointed brackets and and tags that occur in pairs have a forward slash just inside the left bracket of the closing tag. The last tag started must be the first one closed. Using a stack, write a program which takes HTML input and determines whether the tags are properly matched. Note that there are some tags that do NOT have a match e.g. P SBR>, IMG do not have a matching ending tag Also, count the number of times each non-ending tag appears in the code e.g. countRequirements: l.) Read in the tags that do not have matches from a file (assume only the three listed above) and store in a linked list 2.) Read in the html from a file and print each line to the screen AND an output file Find tags and process (can have more than one in a line) 3.) 3.1) create alphabetical list of opening and no-match tags found in file 3.1.1) tag not in list add to list with count of l 3.1.2) tag in list add to count 3.2) if opening tag add to top of verify tag stack tag on top of verify tag stack 3.3) if closing tag check for a "matching" opening 3.3.1) if match to tag on top of the stack pop the verify tag stack if not a match to tag on top of the stack error print an error message s to the 3.3.2) screen AND an output file and continues processing tags 4.) After html file processed print out to the screen AND an output file an the alphabetical list of indicating "match" or "no match" tag pe and the count of the number of times each occurredStep by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
