from time import gmtime, strftime class Accounts: type='VERSION 1.0' def __init__(self,name,balance): self.name=name self.transtime=[] self.trans=[] self.trantype=[] self.balance=balance print "Account Created for ",self.name,"With Opening balance =",self.balance def withdraw(self,amount): if self.balance-amount>0: print "Amount withdrawn=",amount self.balance-=amount self.trans.append(amount) self.trantype.append("Withdraw") self.transtime.append(str(strftime("%a, %d %b %Y %H:%M:%S ", gmtime()))) else : print "InSufficient balance" def deposit(self,amount): if amount>0: self.balance+=amount self.trans.append(amount) self.trantype.append("Deposit") self.transtime.append(str(strftime("%a, %d %b %Y %H:%M:%S ", gmtime()))) else : print "Invalid amount " def showbal(self): print'*'*50 print "Account of =",self.name print "Account balance=",self.balance print'*'*50 def transactions(self): print'*'*50 print "Account of =",self.name print '\tAMOUNT\t\tTYPE\tTIME' for i in range (len(self.trans)): print'-'*80 print "\t",self.trans[i],"\t\t",self.trantype[i],self.transtime[i] print'-'*80 print ("Entering in Program") raj=Accounts("Raj Dubey",100) raj.showbal() raj.deposit(3000) raj.showbal() raj.withdraw(1200) raj.showbal() raj.deposit(564) raj.showbal() raj.transactions() mansur=Accounts("Mansur Alam",1) mansur.showbal() mansur.deposit(3000) mansur.withdraw(564) mansur.transactions()
Definition of 3G: 3G is the third generation of wireless technologies. It comes with enhancements over previous wireless technologies, like high-speed transmission, advanced multimedia access and global roaming. 3G is mostly used with mobile phones and handsets as a means to connect the phone to the Internet or other IP networks in order to make voice and video calls, to download and upload data and to surf the net. How is 3G Better?: 3G has the following enhancements over 2.5G and previous networks: Several times higher data speed; Enhanced audio and video streaming; Video-conferencing support; Web and WAP browsing at higher speeds; IPTV (TV through the Internet) support. 3G Technical Specifications: The transfer rate for 3G networks is between 128 and 144 kbps (kilobits per second) for devices that are moving fast and 384 kbps for slow ones(like for pedestrians). For fixed wireless LANs, the speed goes beyond 2 Mbps. 3G is a set of technologies and stand
Comments
Post a Comment
share your thoughts ....