logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Pierree BernierCriminology
(5/5)

885 Answers

Hire Me
expert
Kathleen HaslamResume writing
(4/5)

871 Answers

Hire Me
expert
Wayne FlynnManagement
(5/5)

613 Answers

Hire Me
expert
Puneet GuptaStatistics
(/5)

880 Answers

Hire Me
Java Programming

For this exercise, we assume a slightly more restricted version of HTML than that is often used. HTML (the language for web pages) uses pairs of tags to indicate the beginning and the end of a piece of information.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Problem 1: well formed html

Please use stack from the standard Java:

For this exercise, we assume a slightly more restricted version of HTML than that is often used. HTML (the language for web pages) uses pairs of tags to indicate the beginning and the end of a piece of information. Here are the important rules regarding tags for this lab:

  1. A tag is always enclosed by a pair of < >. For example <li> and <p> are tags.
  2. The characters ‘<’ and ‘>’ do not appear anywhere else in the webpage other than as tag
  3. Tags appear in pairs. The start tag is a sequence of letters and the corresponding end tag is the same sequence of characters preceded by a ‘/’. For example <li> and </li> are a pair of tags.
  4. Tags are not case sensitive. For example <li> and <LI> are considered the same.
  5. Tags do NOT split across lines.
  6. Tags may be nested, but each start tag must have a corresponding end tag to form a well-formed expression. For example

<body>

 

          <p> this is fun </p>

 

          <ul>

 

                     <li> first </li>

 

                     <li> second item</li>

 

                     <li> third item </li>

 

          </ul>

 

</body>

is well-formed, since the nesting is correct.

 

Write an implementation to determine whether a given string is a well-formed HTML string. Your implementation should have the following classes and methods:

 

 

public class WellFormedHtmlChecker {

        public boolean isWellFormed(String html) {

 

        }

}

 

Please note the method isWellFormed is a non-static method.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme