Instructions:
Calculate House Electricity Bill
You have been assign by your company to develop a program to calculate electricity tariff for the domestic house hold. As a system developer, you have been instructed to develop a system that uses an interactive graphical user interface to calculate the amount of payment for every electricity usage.
The electricity tariff is based on the table below:
Block Tariff (per month) |
Unit |
Rate |
For the first 200 kWh (1-200 kWh) per month |
sen/kWh |
0.218 |
For the next 100 kWh (201 – 300 kWh) per month |
sen/kWh |
0.344 |
For the next 300 kWh (301 – 600 kWh) per month |
sen/kWh |
0.516 |
For the next 300 kWh (601 – 900 kWh) per month |
sen/kWh |
0.546 |
For the next kWh (901 kWh onwards) per month |
sen/kWh |
0.571 |
The minimum monthly chafe is RM300 |
As government needs to raise money to battle Covid-19 pandemic, every electricity consumption exceeds 600kWH will require the customer to pay additional 6% for SST purpose.
Enter your first 200 kWh (1-200 kWh) per month : |
200 |
RM 43.60 |
Enter next 100 kWh (201 – 300 kWh) per month : |
100 |
RM 34.40 |
Enter next 300 kWh (301 – 600 kWh) per month : |
300 |
RM 154.80 |
Enter next 300 kWh (601 - 900 kWh) per month : |
180 |
RM 98.28 |
Estimated Bill : |
RM 331.08 |
For instance, the user has used 780 kWh electric capacities in a month. You have to ask your user to enter the first 200 kWh in text field you have already provided. If there any next 100 kWh they have to enter the value.
Use the following simple output to assist you and the calculation is based on the table above.
In the end of the program, you should display details of the bill such as the total electricity consumptions (kWh), total consumption (RM), 6% SST if the kWh consumption more than 700 kWh and total current bill to be paid by the customer.
In order to make sure the user will enter the correct type of input, you have to include a validation code in the system. Each of the incorrect input, the system will print out warning and ask the user to input the data once more.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of