Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Eskom in South Africa wants to keep track of its customers' electricity usage. Each customer has a unique ID , name, and address. The provider
Eskom in South Africa wants to keep track of its customers' electricity usage. Each customer has a unique ID name, and address. The provider charges its customers based on the following tariff structure:
If the consumer uses kWh or less, the tariff is R per kWh
units
If the consumer uses more than kWh but less than kWh kWh to kWh the tariff is R per kWh for every kWh over
units
For consumption exceeding kWh the tariff is R per kWh for every kWh over
units
Write a C# program that allows the user to:
Add a new customer.
Input electricity consumption for a customer.
Calculate the bill for a customer.
Exit the program.
Sample output:
Electricity Billing System
Add a new customer
Input electricity consumption for a customer
Calculate the bill for a customer
Exit
Enter your choice:
Enter customer ID:
Enter customer name: Eva
Enter customer address: Berg St
Customer added successfully.
Electricity Billing System
Add a new customer
Input electricity consumption for a customer
Calculate the bill for a customer
Exit
Enter your choice:
Enter customer ID:
Enter electricity consumption for Eva in kWh:
Electricity consumption recorded successfully.
Electricity Billing System
Add a new customer
Input electricity consumption for a customer
Calculate the bill for a customer
Exit
Enter your choice:
Enter customer ID:
Total Bill Amount for Eva: R
Electricity Billing System
Add a new customer
Input electricity consumption for a customer
Calculate the bill for a customer
Exit
Enter your choice:
Exiting program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started