Write an interactive graphical user interface that you have learned in the class. Example: JTextField, JButton, JRadioButtonJava Programming

Instructions:

  1. This is an individual assignment.
  1. Write an interactive graphical user interface that you have learned in the class. Example: JTextField, JButton, JRadioButton etc.
  1. Please put comment on each of the source code line if applicable.
  1. Documentation:
  1. Introduction
  2. Design a flowchart based on the topic
  3. Screenshot all the interfaces, describe about each of the interface and explain how to use the interface one by one.
  4. Source code.
  5. Conclusion
  6. References

 

  1. Zipped the file consists of:
  1. Documentation
  2. Netbeans Java project folder.

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.

Attachments:

Instructions Files

Java Programming Experts

expert
Neno S.
Java Programming

60 Answers

expert
Ray Bjork
Java Programming

90 Answers

View More Experts
Disclaimer

The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.

Get Free Quote!

253 Experts Online