do these php tasks in different php files but add a home page to call them (index.php). use tailwindcss (using cdn) and google fonts: cairo play and sharetech mono. make the UI dark and as minimalist as possible. Use macOS-inspired assets like buttons and images:
1. Introduce Yourself
Task: Create variables for your name, age, and favorite color. Print them in a sentence (e.g., “Hi, I’m John, I am 20 years old, and my favorite color is blue.”).
2. Simple Math
Task: Store two numbers in variables `$a` and `$b`. Compute and display their sum, difference, product, and quotient.
3. Area and Perimeter of a Rectangle
Task: Use variables `$length` and `$width`. Calculate and display the area and perimeter.
4. Temperature Converter
Task: Store a Celsius temperature in a variable and convert it to Fahrenheit using the formula.
5. Swapping Variables
Task: Assign values to two variables and swap them without directly reassigning values*(use a temporary variable).
6. Salary Calculator
Task: Store `basic_salary`, `allowance`, and `deduction` in variables. Compute and display the net salary.
7. BMI Calculator
Task: Store `weight` (kg) and `height` (m) in variables. Compute BMI using the formula `BMI = weight / (height h…
do these php tasks in different php files but add a home page to call them (index.php). use tailwindcss (using cdn) and google fonts: cairo play and sharetech mono. make the UI dark and as minimalist as possible. use macos inspired assets like buttons and images:
1. Introduce Yourself
Task: Create variables for your name, age, and favorite color. Print them in a sentence (e.g., “Hi, I’m John, I am 20 years old, and my favorite color is blue.”).
2. Simple Math
Task: Store two numbers in variables `$a` and `$b`. Compute and display their sum, difference, product, and quotient.
3. Area and Perimeter of a Rectangle
Task: Use variables `$length` and `$width`. Calculate and display the area and perimeter.
4. Temperature Converter
Task: Store a Celsius temperature in a variable and convert it to Fahrenheit using the formula.
5. Swapping Variables
Task: Assign values to two variables and swap them without directly reassigning values*(use a temporary variable).
6. Salary Calculator
Task: Store `basic_salary`, `allowance`, and `deduction` in variables. Compute and display the net salary.
7. BMI Calculator
Task: Store `weight` (kg) and `height` (m) in variables. Compute BMI using the formula `BMI = weight / (height h…