Page 308 - IT-802_class_12
P. 308
Projects
Life Skills and Values
Creativity
Electricity Bill Generation Experiential Learning
1. Write a Java project to generate an electricity bill for XYZ Power Corporation Limited to send to his customers. The
following is the format to display the bill:
The amount generated depends on the following criteria:
Fixed amount and maintenance charges = 300
Units consumed in a month Rate
--------------------------------------- -------------------
Up to 100 units Rs. 2.25 / Unit
Above 100 units Rs. 3.75 / Unit
import java.util.*;
public class Xyz_Elec_bill
{
public static void main(String args[])
{
int min_amt = 300;
int u_Consumed,o_Reading, c_Reading;
String c_iD, c_Name;
double amount;
double s_Tax;
306 Touchpad Information Technology-XII

