Write a ‘C’ program to calculate the electricity bill using if..elseif, as per the following details

c) Write a ‘C’ program to calculate the electricity bill using if..elseif, as per the following
details
* Given the number of units consumed, unit charges are as follows:
i) For first 50 units Rs. 0.50/unit
ii) For next 100 units Rs. 0.75/unit
iii) For next 100 units Rs. 1.20/unit
iv) For unit above 250 Rs. 1.50/unit
* Add fuel surcharge 20% and Govt. Tax 10% on bill to calculate the total bill.

What is an array?

a) What is an array? Show different methods to declare and initialize one dimensional
array. Draw how an integer array of 6 elements having base address 5001 is stored in
memory. Explain actual storage of two dimensional array a[3][4] in the memory with
diagram.
b) Write an algorithm to test whether a given number is prime or not.

Write a menu driven ‘C’ program,

a) Write a menu driven ‘C’ program, which prints the options 1, 2, 3 (as given below) and
asks the user to select an option. If user opts

1 then find the factors of the entered number.
2 then check whether the entered number is prime number or not.
3 then directly exit from the program.

The menu should be displayed by a function.