Question: Please use Netbean and Java as programming lang Build an application that represents a simple system that can calculate and display electricity charges for domestic

Please use Netbean and Java as programming lang Please use Netbean and Java as programming lang Build an application that

Build an application that represents a simple system that can calculate and display electricity charges for domestic users. This application provides a Graphical User Interface (GUI) that allows a user to select and perform the following operations: . . . Register: Add a new customer with his/her details: customer name, account number (must be 10 digits). home address, current meter reading (in kWh) and previous meter reading (in kWh). Display Bill: Displays the electricity bill of a particular customer based on the account number. The information that must be displayed in the bill are: The customer name, account number, address, current & previous meter reading The total units of electricity consumed (in kWh) The amount of charge for each block of units consumed (refer to the block rates in Table 1 below) Rebate 2% is given The total amount of electricity charge (before tax) The 6% service tax amount (after rebate) The total amount of electricity charge (after tax) that the customer must pay Search: Find a particular customer based on the account number and if found, display all the details of the customer. If not found, display an appropriate message. Edit: Modify/Change any of the customer details EXCEPT the account number. List: List all customers. For each customer, display only the account number, name and total units of electricity consumed. c . . Table 1: Domestic Electricity Tariff (taken from TNB tariff) Unit Block Rate (RM per kWh) For the first 200 kWh (1 - 200 kWh) 0.218 For the next 100 kWh (201 - 300 kWh) 0.334 For the next 300 kWh (301 - 600 kWh) 0.516 For the next 300 kWh (601 - 900 kWh) 0.546 For the next kWh (901 kWh onwards) 0.571 Example calculation is given below for current meter = 52950 & previous meter = 52444: Total units consumed=52950 - 52444 = 506 kWh First 200: RM0.218 x 200 RM 43.60 Next 100: RM0.334 x 100 RM 33.40 = RM0.516 x 206 = Next 206: Total: 506 Rebate 2% Tax 6% Total Amount to be paid: RM106.30 RM183.30 RM3.67 RM 10.78 RM190.41

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!