Question: Create a PHP file with the following specifications: 1. Create a variable called name and assign it the value John Doe 2. Create a variable

Create a PHP file with the following specifications: 1. Create a variable called name and assign it the value John Doe 2. Create a variable called yob and assign it the value 1970 3. Create a variable called total and assign it the value 1,000.195 4. Create a constant called TAX_RATE and assign it the value 0.0865 5. Print the information shown in Figure 1 Age prints the formula (current year - yob) followed by the value Total is formatted with 2 digits after the decimal Tax prints the formula (total x tax_rate) Balance is the sum of total and the tax due 6. Finally print information about the script and the server (note that your information maybe different those shown in Figure 1. The full path and name of the script being run The Web browser and operating system of the user accessing the script The Web application on the server that's running PHP Name: John Doe Age: 2021 - 1970 = 51 Total: $1,000.20 Tax Due: $1000.195 * 0.0865 = $86.52 Balance: $1,086.72 Script Filename: C:/xampp/htdocs/PHP1/index.php User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebkit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.1 Figure 1: Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
