Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a script that outputs XHTML todisplay the given patterns separately,one be

ID: 3609678 • Letter: W

Question

Write a script that outputs XHTML todisplay the given patterns separately,one below the other. Usefor statements to generate thepatterns. All asterisks (*) should be printed by a single statementof the form document.write( "*"); (this causes the asterisks to printside by side). A statement of the form document.writeln("<br />") ; can be usedto position to the next line. A statement of the form document.write(" ") ; can be used to display aspace (needed for the last two patterns). There should be no otheroutputs statements in the program. [Hint: the last twopatterns require that each line begin with an appropriate number ofblanks. You may need to use the XHTML <pre></pre>tags.] (a)
*
**
***
****
*****
******
*******
********
*********
**********
(b)
***********
**********
*********
********
*******
******
*****
****
***
**
* (c)
**********
*********
********
   *******
    ******
     *****
     ****
      ***
       **
        *
(d)
        *
        **
      ***
     ****
     *****
    ******
   *******
********
*********
**********


Write a script that outputs XHTML todisplay the given patterns separately,one below the other. Usefor statements to generate thepatterns. All asterisks (*) should be printed by a single statementof the form document.write( "*"); (this causes the asterisks to printside by side). A statement of the form document.writeln("<br />") ; can be usedto position to the next line. A statement of the form document.write(" ") ; can be used to display aspace (needed for the last two patterns). There should be no otheroutputs statements in the program. [Hint: the last twopatterns require that each line begin with an appropriate number ofblanks. You may need to use the XHTML <pre></pre>tags.] (a)
*
**
***
****
*****
******
*******
********
*********
**********
(b)
***********
**********
*********
********
*******
******
*****
****
***
**
* (c)
**********
*********
********
   *******
    ******
     *****
     ****
      ***
       **
        *
(d)
        *
        **
      ***
     ****
     *****
    ******
   *******
********
*********
**********

Explanation / Answer

(b):

I hope this will helpful foryou.............

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote