Answered step by step
Verified Expert Solution
Question
1 Approved Answer
java please include the final screen captures In this exercise, you'll run the Product Discount application that's described in this chapter. You'll also use your
java please include the final screen captures
In this exercise, you'll run the Product Discount application that's described in this chapter. You'll also use your browser to view its source code. Start the application 1. If necessary, start the Apache web server as shown in figure 1-11. 2. Start your web browser. 3. Run the Product Discount application by entering this URL into the browser's address bar and pressing the Enter key http://localhost/book apps/ch01 product discount/ If this application runs, it means that you have installed the software and downloadable applications correctly. Test the application 4. Enter valid values in the three text boxes. Then, click the Calculate Discount button. This should display the results of the calculation on the second page of the application. 5. Look in the browser's address bar and note that the URL points to a PHP file. 6. View the source code for this web page as shown in figure 1-15. Note that this source code only contains HTML, not PHP code. When you're done, close the tab or window that contains the source code. 7. Click on the browser's Back button to return to the first page of the application, enter invalid numeric values like "xx" and "yy" in the second and third text boxes, and click the Calculate Discount button. Then, read the error messages that are displayed. You'll learn how to handle errors like this later in this book. 8. Click the browser's Back button to return to the first page of the application. Then, run the application again with valid dataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started