Uploaded by amal Syae

W4 - Tutorial Question 2

advertisement
BE2257 – BUSINESS INFORMATION SYSTEMS
SCHOOL OF BUSINESS, POLITEKNIK BRUNEI.
Week 4 – Systems Development : Design
Scenario 2:
Jabatan Perkhidmatan Elektrik, asked you to develop a Visual Basic application that can
automatically calculate and issue an electrical bill for every customer.
Jabatan Elektrik has several tariff structures (Tariff A, I and O). To simplify the problem, you
need only to deal with Tariff A (households). The structure of the tariff is as follows:
The first 10 kwh is 25c/kwh
The first 60 kwh is 15c/kwh
The first 100 kwh is 10c/kwh
Above 100 kwh is 5c/kwh
The minimum charge is $2.00
Example of calculation is as follows:
Suppose a customer uses 65 kwh. The amount due is 10*0.25 + 50*0.15 + 5*0.1 = $10.50. Note
that if the use of electricity is 8 kwh or less, the minimum charge ($2.00) is applied.
Tasks:
a) Develop an interface design for the above problem. Note that it is up to you to add additional
information such as title, account number, customer’s name etc. Inputs about previous
reading meter, current reading meter, a calculation and clear buttons must be included.
b) Develop an algorithm to calculate amount billed.
Page 1 of 1
Download