I am trying to create an app that is gonna be some type of finical application. Suppose you go on a picnic, you paid for food, your friend paid for parking and your another friend paid for rides. Now when you return, you want everyone to pay the same amout of money. How you will do that, you will count the number of friends, sum of money they paid together, and then divide it with the number of friends, the result is gonna be the answer. So that’s what I wanna do.
So the logic of the app will be:-
Ask for number of friends and the money each paid, then finally divide the sum of money with the number of friends.
So how will I write the program/block for this logic. Remember the number of friend is dynamic, one may enter 5 another may enter 10. So please help me with this.
1- Start searching now about: how to record and get values from Tinydb.
2 - you will need a variable to accumulate the spent amounts : search about , variables and accumulators
3 - you will need to get the number of friends: search on text box and the TEXT property (This is where the number of friends will be taken and used in the formula - I already showed the formula here in this post)
4- Use the formula and display the result in a Component label or Textbox