You are asked by your client to create an informative fun page for their visitors. The page willidentify & capture different information about the users visit. You are required to use php & htmlto...

You are asked by your client to create an informative fun page for their visitors. The page willidentify & capture different information about the users visit. You are required to use php & htmlto display the information on the screen.The website should have the following files:1. index.php (this fine is the main file that is used to combine other php files into one)2. An “include” folder that will have the following php files in it (please see imagebelow for where these files must be included)a. visitor-info.php (display date & time of visit, IP Address of visitor & RemoteAddress)b. tax-discount-calculator.phpThe user will get a discount based on the amount he spends before taxes (5%discount if he spends more than $100, 10% if he spends more than $200 &15% if he spends over $500). Taxes are calculated at the rate of 14.975%.3. you will need to use the include function to combine all of these files into one4. you must create your own functions to display your information on the screen.5. you will also need to create an online tax calculator (to calculate Quebec sales tax)Below you will see a demonstration of how the page should function plus a screenshot of whatshould be include in your visitor-info.php & tax-discount-calculator.php files.
Print server name here using the appropriate
tax-discount-calculator.php
visitor-info.php
Web Programming II - 410-201-TV
Please feel free to use your imagination and think outside the box to find out how to calculatethe taxes and all (In addition to your notes please use google search)You will be graded on the following:• Functions: you must create at least 1 functions (you create them from scratch) (7.5pts)• Proper use of If else statement: Proper use of the form to calculate your numbers (7.5pts)• Variables: Proper use of variables to manipulate and display information (7.5 ptx)• Design: The final page should look exactly like the demo (7.5 pts)• Code documentation & commenting: You Must use notes in your code to explainwhat you are doing (example: if you create a variable you have to create a commentbefore it to explain what it is being used for. Also any functions or if or else conditionsmust be explain properly. (5 pts)• Form Validation: You must also account for making sure that all the current informationis entered into your forms (No spaces before or after any data entered, the first lettersmust be capitalized of any name entered, all numbers entered must be converted to 2decimal points) Also you must display a warning message if they entered numbers inthe name field or letters in the amount field. You must account to that and display aproper warning for the user. (5 pts)• Please do not use the same variables & naming used in previous exercises, createyour own (forms, variables, fields, functions etc) automatic penalty of -25% if youdo. All your variables must be meaningful (no xyz or abc naming) I need to be ableto following your logic easily.Demo video: https://youtu.be/0OMXTiGf-DA
Useful references:• https://www.w3schools.com/php/php_superglobals.asp• http://php.net/manual/en/function.number-format.phpDue Date: May 28, 2020• Upload all of your php scripts into your google classroom.• Create a new text file - fp-web-programming-links.txt - past the URLs of your final scriptsin there• Upload the final project into the appropriate section in your google drive
Jun 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here