Computer Science, asked by misslol42, 1 month ago

Write a program to computerize the billing operation of a telephone company:
The bill has to be generated based on the following conditions:
Number of calls
First 50.calls
Amount per call
free
Next 100 calls
50 paise per call
Next 200 calls
80 paise per call
Rest of the calls
*1.20 per call
A rent of Rs.150 is charged is charged from every customer. A tax of 15% is charged on
the sum of charges and rent.
The total amount is tax added to the sum of charges and rent. Print the bill for a customer.​

Answers

Answered by BrainlyUnnati
5

The following co‎des have been written using Python.

while True:

   c = int(input("Enter the number of calls: "))

   print()

   if c <= 50:

      a = 0

   elif c <= 100:

       a = 0.50*c

   elif c <= 200:

       a = 0.80*c

   elif c > 200:

       a = 1.20*c

   print(a, "is your cost.")

   print("A rent of Rs 150 and a tax of 15% will be charged.")

   a = a + 150

   a = a + (a*0.15)

   print()

   print(a, "is your total cost.")

   print()

   ch = input("Next customer? [Y/N]: ")

   if ch in "Nn":

       break

Answered by PalakSachwani
1

Answer:

while True:

  c = int(input("Enter the number of calls: "))

  print()

  if c <= 50:

     a = 0

  elif c <= 100:

      a = 0.50*c

  elif c <= 200:

      a = 0.80*c

  elif c > 200:

      a = 1.20*c

  print(a, "is your cost.")

  print("A rent of Rs 150 and a tax of 15% will be charged.")

  a = a + 150

  a = a + (a*0.15)

  print()

  print(a, "is your total cost.")

  print()

  ch = input("Next customer? [Y/N]: ")

  if ch in "Nn":

      break

Similar questions