Here's a C program that calculates the electricity bill based on the units consumed: #include <stdio.h> float calculateElectricityBill(int units) { float billAmount; if (units <= 50) { billAmount = units * 0.50; } else if (units <= 150) { billAmount = 25 + (units - 50) * 0.75; } else if (units <= 250) { billAmount = 100 + (units - 150) * 1.20; } else { billAmount = 220 + (units - 250) * 1.50; } return billAmount; } int main() { int units; float billAmount; printf("Enter the units consumed: "); scanf("%d", &units); billAmount = calculateElectricityBill(units); printf("Electricity Bill Amount: %.2f\n", billAmount); return 0; } In this program, we have a function calculateElectricityBill that takes the units consumed as input and returns the bill amount. The calculation of the bill amount is based on the slab rates provided in the program. Inside th