8.1~8.8
8.1 1.A hypertext is a structure consisting of nodes and the links between them.2. Hypermedia is like hypertext, but it adds GUIs, Images, Sound, Animation, Applications.3. Assigning node addresses using machine-independent hypertext markup language. 8.21.HTML is developed as a machine-independent way of representing information in a networked-based hypermedia system. 2. It can indicate the format of textual elements or links to other nodes. 3. The text for the document goes here. 4. The HTML is a comment for the creator to reviews.8.31. The HTML programmer need to use forced line break because a web page author or designer wants to display several lines of text without words wrap.2. We are preformatted next in an HTML document when we want the browser to display text, with line breaks, extra spaces, and tabs.3.8.41. If you forget to close the markup tag for italics on a piece of text everything after the first quote will be italics.2.The purposes of the escape sequence in HTML is to let browser to display these characters rather than interpret them.8.51. The three types of HTML are: Unordered(bulleted)list-Numbered(ordered)list-Definition(association)lists-display terms and their associated definition. 8.6
Ch7 7.2~7.5
EX 7-2
1.)The structure of a query-controlled loop that processes repeated sets of inputs is the String variable doInAgain. This variable controls how many times the loop repeats, initially, the variable equals “y”. As soon as the user enters a string other than “y” or “Y”, the program terminates.2.)
EX 7-3
1.)The role the menu plays is to display a list of options, after this, the user can select the one they needs.2.)The menu-driven programs prompts fro additional inputs related to that option and performs the needed computations, after which it displays the menu again.
Ex 7-4 1
a.)%11s b.)%12s c.) %-15 d.)System.out.intf(“%60″, e.)System.out.printf(%10.2f)
2 a.)10,000.50, b.)45 632, c.)34.54
Ex7-5
1.)
2.)The programmer embeds the call to an input method in a try-catch statement, as its name implies, this statement consists of two parts. The statement within the try clause are executed until one of them throws an exception. If that happens, an exception object is created and sent immediately to the catch clause. The code within the catch clause is then executed. Alternatively, if no statement throws an exception within the try clause, the catch clause is skipped.