How do I override a balance? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How do I override a balance?

Ok so I have a renting terminal program, but I don't know how to update my balance. I start off with $100 and when a movie is rented it subtracts however much it was, but when I rent another movie it just gets subtracted starting from $100 again and not from however much is left. How do I fix this? Also assuming every movie has only 1 in stock how do I prevent a movie from being rented twice? Thank you.

11th Dec 2016, 11:36 PM
Jesse Ortiz
Jesse Ortiz - avatar
5 Respostas
0
it says I dont have internet connection
12th Dec 2016, 2:55 AM
Jesse Ortiz
Jesse Ortiz - avatar
0
ok I called it "rental terminal need help"
12th Dec 2016, 3:08 AM
Jesse Ortiz
Jesse Ortiz - avatar
0
did you see it? please help me
12th Dec 2016, 3:13 AM
Jesse Ortiz
Jesse Ortiz - avatar
- 1
share ur code, Jesse
12th Dec 2016, 2:46 AM
Morpheus
Morpheus - avatar
- 1
Jesse copy this codes in ur code section where u run them, and mk it public , we can better check it out there,
12th Dec 2016, 3:01 AM
Morpheus
Morpheus - avatar