Sharp Tutorial
Telephone Bill Program in Python

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

Introduction to Python

  • Introduction to Python
  • History of Python
  • How To Install Software
  • Variables in Python
  • Comments in Python
  • Input/Output
  • If else in Python
  • While Loop
  • For Loop

Collection in Python

  • Numbers in Python
  • List
  • Tuple
  • Set
  • Dictionary
  • Array
  • String

Object Oriented python

  • Function
  • Exception
  • OOPS (class/object)
  • Object Pass & Return
  • Constructor
  • Function Overloading
  • Module in Python
  • Inheritance
  • File Handling

Advanced Python

Object Oriented python

  • Function
  • Exception
  • OOPS (Class/Object)
  • Constructor
  • Inheritance
  • File Handling

Python With MYSQL And Excel

  • Connect MySql & Python
  • Insert Data MySQL
  • Delete/Update MySQL
  • Select Data From MySQL
  • Working With Excel in Python

Python GUI

  • GUI using Turtle
  • Introduction to Tkinter
  • Login Page using Tkinter
  • Data Grid Example Tkinter
  • Connect Multiple Forms
  • Database with GUI Python

Programs in Python

  • Swap two number
  • Calculate the area
  • Even Odd or Zero
  • Largest ,Middle and Smallest Number
  • Calculate Telephone Bill
  • Print Table of The given Number
  • Factorial of the number
  • Reverse and check number is palindrome
  • check number is prime , armstrong
  • Program to Print the given patterns
  • Guess A Number Game using Random

Simple Program to calculate the telephone bill using only if

Bill is calculated as per the following conditions

1)    upto 200 calls(0-200 )  are free 
2 )   200 to 500    1Re/Call
3)    Above 500     2 Re/Call
4 )   100 Rs Rental Extra 

Eg:  for 250 calls ,
Bill = 100(Rental)+0*200 (free upto 200) +50*1( above 200 1 re on 50 calls) = Total 150Rs

calls=int(input("enter number of calls"))
bill=0

if(calls<=200): # first 200 call free
bill=0

if (calls>200 and calls<=500): # 200 free after 1 re/call
bill=200*0+(calls-200)*1

if (calls>500): # first 200 free 200-500 1 re/call after 2 re/call.
bill=0*200+300*1+(calls-500)*2

bill=bill+100 # add 100 Rs rental
print("bill=",bill)

   Input: 1000  output:1400  

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Telephone Bill Program

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial