Splitwise Your objective is to create the backend for an expense sharing application. An expense sharing application is where you can add your expenses and split it among different people. The app keeps balances between people as in who owes how much to whom. Examples: You live with 3 other friends. You: User1 (id: u1) Flatmates: User2 (u2), User3 (u3), User4 (4) - Example 1: This month's electricity bill was Rs. 1000. Now you can just go to the app and add that you paid 1000, select all the 4 people and then select split equally. Input: u1 paid Rs 1000/- for u1 u2 u3 u4 and needs to be split EQUALLY For this transaction, everyone owes Rs 250 to User1. The app should update the balances in each of the profiles accordingly. User2 owes User1: Rs 250 User3 owes User1: Rs 250 User4 owes User1: Rs 250 - Example 2: Now, there is a major sale on Flipkart and there is an offer on your card. You buy a few things for User2 and User3 as they asked you to. The total amount for each person is different. Input: u1 paid Rs

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question
Splitwise Your objective is to create the backend for an expense sharing application. An expense sharing application is where you can add your expenses and split it among different people. The app keeps balances between people as in who owes how much to whom. Examples: You live with 3 other friends. You: User1 (id: u1) Flatmates: User2 (u2), User3 (u3), User4 (4) - Example 1: This month's electricity bill was Rs. 1000. Now you can just go to the app and add that you paid 1000, select all the 4 people and then select split equally. Input: u1 paid Rs 1000/- for u1 u2 u3 u4 and needs to be split EQUALLY For this transaction, everyone owes Rs 250 to User1. The app should update the balances in each of the profiles accordingly. User2 owes User1: Rs 250 User3 owes User1: Rs 250 User4 owes User1: Rs 250 - Example 2: Now, there is a major sale on Flipkart and there is an offer on your card. You buy a few things for User2 and User3 as they asked you to. The total amount for each person is different. Input: u1 paid Rs
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage