Question
please provide the answers.. thank you Processing strings, arrays Develop and test a utility program called htags 1 that analyses an HTML file and prints
please provide the answers.. thank you
Processing strings, arrays Develop and test a utility program called "htags 1" that analyses an HTML file and prints of the list of all the unique HTML tags names (i.e. each tag printed once, no duplicates). To process the HTML file use the input redirection in your program. To identify the HTML tags use the following simplified definition of the tag names: The tag name starts immediately after the character, and consists of one or more non blank characters other than and is terminated by either the space character or by the character. For example, in the sample excerpt of this html file:Assignment 1
we find the body and div tags occurring only once, and the p, b and span tags occurring twice each. Note that span. /b and/p are not counted as tag names. The data to your program should be read from the standard input (use the input redirection to read the entire HTML file). Print one tag name per line, with no duplicates. Your program should be designed with at least two modules (function) stored in different source code files and compiled separately. The assignment submission should consist of the following parts: 1. In a few sentences describe the design of your program. Focus on the description of the programming modules (functions) and the data structures needed to complete the task. (Note: use an array to store the tags. You may restrict your solution to the maximum of 100 tags, and each tag to be less than 10 characters long.) 2. Show the complete source code (remember: you need to have at least two different modules (functions) in your solution). 3. Show the gcc compiler statement used to compile all the modules into a single executable. 5. Show the output from running your program on the following text: TEST 6. Show the output from running your program on this HTML file, i.e. the very file describing this assignment. Store the answers to all the questions above (use the headings indicating the question number) in a single pdf file include a preamble (title, section) with your name, student number, course number etc.). Please number all the pages! Submit this SINGLE pdf file on D2L as the Assignment 2 by the due date indicated in the D2L dropbox. Processing strings, arrays Develop and test a utility program called "htags 1" that analyses an HTML file and prints of the list of all the unique HTML tags names (i.e. each tag printed once, no duplicates). To process the HTML file use the input redirection in your program. To identify the HTML tags use the following simplified definition of the tag names: The tag name starts immediately after the character, and consists of one or more non blank characters other than and is terminated by either the space character or by the character. For example, in the sample excerpt of this html file: Assignment 1 we find the body and div tags occurring only once, and the p, b and span tags occurring twice each. Note that span. /b and/p are not counted as tag names. The data to your program should be read from the standard input (use the input redirection to read the entire HTML file). Print one tag name per line, with no duplicates. Your program should be designed with at least two modules (function) stored in different source code files and compiled separately. The assignment submission should consist of the following parts: 1. In a few sentences describe the design of your program. Focus on the description of the programming modules (functions) and the data structures needed to complete the task. (Note: use an array to store the tags. You may restrict your solution to the maximum of 100 tags, and each tag to be less than 10 characters long.) 2. Show the complete source code (remember: you need to have at least two different modules (functions) in your solution). 3. Show the gcc compiler statement used to compile all the modules into a single executable. 5. Show the output from running your program on the following text: TEST 6. Show the output from running your program on this HTML file, i.e. the very file describing this assignment. Store the answers to all the questions above (use the headings indicating the question number) in a single pdf file include a preamble (title, section) with your name, student number, course number etc.). Please number all the pages! Submit this SINGLE pdf file on D2L as the Assignment 2 by the due date indicated in the D2L dropbox
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started