logo Use SA10RAM to get 10%* Discount.
Order Now logo

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

expert
David BennettBusiness
(5/5)

541 Answers

Hire Me
expert
StatAnalytica ExpertData mining
(5/5)

777 Answers

Hire Me
expert
Manal ChiguerMarketing
(5/5)

689 Answers

Hire Me
expert
Shanza AkbarSocial sciences
(/5)

800 Answers

Hire Me
Java Programming

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.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. 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

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

260 Experts Online