logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

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

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

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.

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

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. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

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

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

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

. 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 Sea Ports. Here are the classes and their instance variables we wish to define:

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

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

760 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

907 Answers

Hire Me
expert
Husnain SaeedComputer science

865 Answers

Hire Me
expert
Atharva PatilComputer science

824 Answers

Hire Me

Get Free Quote!

331 Experts Online