Md. Abid is a student. He lives in a mess. Now develop a software for Abid to calculate living cost. Idea of this software is firstly take an input of person name, total meal and given amount. At that mess their live 5 person so previous step will be repeat for 5 times. In the month of October they spend total 11000 taka. Now Display how much money need to give individually according to meal.
Problem solve this question
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Satya KarkiRank #78 · 24.6K reputationPosted Apr 17, 2022, 2:44 AM EDT
Individually need to pay amount=Total Amount spent/Total No of Person
Individually already given amount= Get sum of Amount where Name=’PersonName’(Get Individually already given amount from database)
Amount need to pay at the end of the month by each person=( Individually need to pay amount - Individually already given amount)
Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 17, 2022, 9:56 AM EDT
Can you tell if total meal per person will be same or can be different ?