monthly checking account fee | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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")

6th Sep 2020, 5:46 PM
Jah Revelo
Jah Revelo - avatar
3 Answers
0
1% fee attached means : is not it their need a+(input_value)? Asked to subtract from overdraft so in else print(a-5)
6th Sep 2020, 7:36 PM
Jayakrishna 🇮🇳
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
7th Sep 2020, 1:39 AM
Jah Revelo
Jah Revelo - avatar
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")
7th Sep 2020, 8:16 AM
Jayakrishna 🇮🇳