Assignment 4
Assignment 4
1. Write a program in C to calculate and print the Electricity bill of a given customer. The
customer id., name and unit consumed by the user should be taken from the keyboard and
display the total amount to pay to the customer. The charge are as follow:
Unit Charge/unit
If bill exceeds Rs. 400 then a surcharge of 15% will be charged and the minimum bill should be
of Rs. 100/-
Test Data:
1001
James
800
Expected Output :
Customer IDNO :1001
Customer Name :James
unit Consumed :800
Amount Charges @Rs. 2.00 per unit : 1600.00
Surchage Amount : 240.00
Net Amount Paid By the Customer : 1840.00
2. Write a program in C to read any Month Number in integer and display Month name in the
word.
Test Data :
4
Expected Output :
April
Test Data:
1
Input week number(1-7): 2
Expected Output :
Tuesday
Expected Output :
Sum is: 80
Expected Output :
It’s a Vowel