Question: Write a program to calculate Electricity bill in PHP. a PHP program to calculate electricity bill using a function and if-else conditions where the Conditions
Write a program to calculate Electricity bill in PHP. a PHP program to calculate electricity bill using a function and if-else conditions where the Conditions are:
For first 50 units Rs. 3.50/unit
For next 100 units Rs. 4.00/unit
For next 100 units Rs. 5.20/unit
For units above 250 Rs. 6.50/unit
You can use conditional statements.
Hints:
** The php page is a self action page, you can use a predefined associative array variables [$_Server, $_GET, $_POST , ...etc].
localhost/Class.com/bill.php Php - Calculate Electricity Bill Please enter no. of Unit Submit Total amount of 25 - 87.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
