Page 304 - CA_Blue( J )_Class9
P. 304

21              else
                    22                  userAmount = 325 +(( unitsUsed - 100) * 4.75);

                    23
                    24              Tax = userAmount * 11.5 / 100;

                    25              Bill = RENTAL_AMOUNT + userAmount + Tax; // Display the bill details
                    26              System.out.println("\t\tUTTAR HARYANA BIJLI VITRAN LIMITED ");
                    27              System.out.println("\t\tA GOVT. OF HARYANA UNDERTAKING " );

                    29              System.out.println("Customer Number:     "+customerNumber);

                    30              System.out.println("Customer Name:       "+customerName);
                    31              System.out.println("Old Meter Reading:   "+oldReading);
                    32              System.out.println("Current Meter Reading:     "+currentReading);

                    33              System.out.println("Total Units Consumed:      "+ unitsUsed );

                    34              System.out.println("Fixed Rental & Line Maintenance Charges: Rs."+
                               RENTAL_AMOUNT);
                    35              System.out.println("Total usage:         Rs."+(int)userAmount);
                    36              System.out.println("Tax (11.5%):         Rs."+(int)Tax);

                    37             System.out.println("---------------------------------------");
                    38              System.out.println("Total Bill Amount Payable:      Rs."+ (int)Bill);

                    39              System.out.println();
                    40              }

                    41          }





































                   302    Touchpad Computer Applications-IX
   299   300   301   302   303   304   305   306   307   308   309