0
monthly checking account fee
Every time I run the main program below I want the input to have an automatic 1 % fee attached and for every overdraft subtract 5 for ex: input 5 for balance then overdraft 2 output should be -5.5 instead i get -4.5 #Main program a = int(input("Balance")) / (0.1) b = int(input("Over Draft ")) if (b>0): print(a - 5) else: print (a) print("Thanks for using this program")
3 odpowiedzi
0
1% fee attached means : is not it their need a+(input_value)?
Asked to subtract from overdraft so
in else print(a-5)
0
I'm not sure I understand what you are saying I want the code to provide a checking account fee to any input. The number 5 was just an example
0
Jah Revelo
if I understood correctly..
I mean to say this way :
#Main program
i = int(input("Balance"))
a = i * (0.1)
b = int(input("Over Draft "))
if (a > 0):
print(i + a)
print (b - 5)
print("Thanks for using this program")