#include<stdio.h>
#include<string.h>
#include<conio.h>
void main()
{ int cust_no, unit_con;
float charge,surcharge=0, amt,total_amt;
char nm[25];
clrscr();
printf("enter the customer IDNO :\t");
scanf("%d",&cust_no);
printf("\nenter the customer Name :\t");
scanf("%s",nm);
printf("\nenter the unit consumed by customer :\t");
scanf("%d",&unit_con);
if (unit_con <200 )
charge = 1.20;
else if (unit_con>=200 && unit_con<400)
charge = 1.60;
else if (unit_con>=400 && unit_con<600)
charge = 2.00;
else
charge = 2.50;
amt = unit_con*charge;
if (amt>300)
surcharge = amt*15/100.0;
total_amt = amt+surcharge;
if (total_amt < 25)
total_amt =25;
clrscr();
printf("\t\t\tElectricity Bill\n\n");
printf("Customer IDNO :\t%5d",cust_no);
printf("\nCustomer Name :\t%s",nm);
printf("\nunit Consumed :\t%5d",unit_con);
printf("\nAmount Charges @Rs. %4.2f per unit :\t%8.2f",charge,amt);
printf("\nSurchage Amount :\t%8.2f",surcharge);
printf("\nNet Amount Paid By the Customer :\t%8.2f",total_amt);
getch();}
You can usually check your online electricity bill by logging into your utility provider's website with your account information. Once logged in, you should be able to view your current bill, payment history, and any other associated details regarding your electricity usage and charges. If you are unable to find your bill online, you can contact your utility provider for assistance.
No, what effects the price of your electric bill is your consumption of power.
Yes, watching too much TV can raise your electricity bill. The more hours your TV is on, the more electricity it uses. To save on energy costs, consider watching less TV or using energy-efficient settings on your TV.
Most electrical power companies keep your records on a computer. Usually, if you request it, they can and will do a print-out for you. Usually, this record is only available for the last 12 months. My power company provider in SE Texas will provide such a print-out free of charge, and will mail it to me.
The unit of energy in an electricity bill is a kilowatt-hour, also known as a Unit. To calculate the energy in units, multiply the power in kilowatts by the time in hours.
if (has_enough_money) { pay_the_bill(); }
echo 'print a pattern'
write a program to print A to Z on screen in c?
Print Server
Debit electricity expensesCredit cash / bank
Use the option File / Print in the program you are using.
Select the answer, copy and paste into a word processing program, and print as you would print any other document.
If your screen does not give you an option to Print then save the document to a word program and print from there.
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
It depends on the program, but usually it's in the "Print" dialogue box.
debit electricity billcredit bank
#!/usr/bin/perl print 'java program';