Let's build a receipt splitting app that helps you calculate how much your friends need to Venmo you after a meal. This app will allow you to:
You can enhance this app further by:
I'll update the receipt splitter app to prepopulate it with a burger, fries, and milkshake, with the appropriate assignments:
Now the app is prepopulated with:
Three menu items:
When you open the app, you'll see these items already added to the receipt with the correct assignments. You can immediately click "Calculate Split" to see that Sally owes you $17.98 (for the burger and fries).
The app still allows you to add more people and items if needed, or you can modify the existing assignments by selecting different people for each item.