Question: Please answer all In this project, you will identify and correct the logic flaws in a while statement. 1. Create a new document in your

Please answer all

Please answer all In this project, you will identify and correct the

In this project, you will identify and correct the logic flaws in a while statement. 1. Create a new document in your text editor. 2. Type the declaration, shtml> element, document head, and element. Use the strict DTD and "While Logic" as the content of the

element. CHAPTER 2 Functions and Control Structures 3. Create a script section in the document body that includes the following code: <?php SCount = 0; while (SCount > 100) { SNumbers() - Count; ++sCount: foreach (Count as sCurNum) echo "<p>SCurNum</p>"; 118 ?> 4. The code you typed in the preceding step should fill the array with the numbers 1 through 100 and then display them on the screen. However, the code contains several logic flaws that prevent it from running correctly. Identify and correct the logic flaws. 5. Save the document as While Logic.php in the Projects direc- tory for Chapter 2, and then upload the document to the server, 6. Open the Whilelogic.php file in your web browser by enter- ing the following URL: http://<yourserver chapter:02></yourserver>

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!