Question: COSC 2436 lab3: Stacks Create a C++ program using stacks to check whether an html document is properly tagged. HTML is the markup language that

 COSC 2436 lab3: Stacks Create a C++ program using stacks tocheck whether an "html document" is properly tagged. HTML is the markuplanguage that requires most elements to have an opening tag and a

COSC 2436 lab3: Stacks Create a C++ program using stacks to check whether an "html document" is properly tagged. HTML is the markup language that requires most elements to have an opening tag and a closing tag. Your program should read from an input file that imitates an html file with a mix of elements. Output true if all the elements are correctly paired, and false otherwise. Though this assignment relates to web pages and HTML, you don't need to know how to write HTML to complete it. 1. Input files - A tag consists of a named element between less-than symbols - Ex: the tag for making text bold uses the element b and written as b> - Many tags apply to a range of text, in which case a pair of tags is used. - An opening tag indicates the start of the range and a closing tag indicating the end of the range. - A closing tag has a / slash after its - Tags can be nested to combine effects e.g. b> bold italic> - Some tags are self-closing, meaning they don't need a closing tag - Ex: is used to insert a line break in the text, and does not require a closing tag like - Some tags have attributes, which are additional information in the tag that comes after the element. - Ex: specifies an image from the file cat.jpg - In this assignment, we will only focus on normal elements and tags - Each tag, element, and word is separated with a space. 2. Output files - Output true if all html tags are properly matched and closed, otherwise output false. - No empty files output1.txt 4. Reminder - Turn in your lab assignment to our Linux server, follow the link here for more instructions. - Make sure to only have 1.cpp file with the main() function in your working directory, otherwise your program will fail the grading script. - Create a folder under your root directory, name the folder lab3 (case sensitive), copy all your .cpp and .h files to the folder (ArgumentManager.h is also needed) - Only include the necessary files (.cpp and .h files) in your working directory in your final submission - To test your program, copy the input files into the server and run your program. After verifying that they pass, delete the .txt files. Please reach out to the TAs via email or teams for any clarifications or typos. COSC 2436 lab3: Stacks Create a C++ program using stacks to check whether an "html document" is properly tagged. HTML is the markup language that requires most elements to have an opening tag and a closing tag. Your program should read from an input file that imitates an html file with a mix of elements. Output true if all the elements are correctly paired, and false otherwise. Though this assignment relates to web pages and HTML, you don't need to know how to write HTML to complete it. 1. Input files - A tag consists of a named element between less-than symbols - Ex: the tag for making text bold uses the element b and written as b> - Many tags apply to a range of text, in which case a pair of tags is used. - An opening tag indicates the start of the range and a closing tag indicating the end of the range. - A closing tag has a / slash after its - Tags can be nested to combine effects e.g. b> bold italic> - Some tags are self-closing, meaning they don't need a closing tag - Ex: is used to insert a line break in the text, and does not require a closing tag like - Some tags have attributes, which are additional information in the tag that comes after the element. - Ex: specifies an image from the file cat.jpg - In this assignment, we will only focus on normal elements and tags - Each tag, element, and word is separated with a space. 2. Output files - Output true if all html tags are properly matched and closed, otherwise output false. - No empty files output1.txt 4. Reminder - Turn in your lab assignment to our Linux server, follow the link here for more instructions. - Make sure to only have 1.cpp file with the main() function in your working directory, otherwise your program will fail the grading script. - Create a folder under your root directory, name the folder lab3 (case sensitive), copy all your .cpp and .h files to the folder (ArgumentManager.h is also needed) - Only include the necessary files (.cpp and .h files) in your working directory in your final submission - To test your program, copy the input files into the server and run your program. After verifying that they pass, delete the .txt files. Please reach out to the TAs via email or teams for any clarifications or typos

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!