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.
Loading
Uttam KumarPosted Apr 17, 2022, 1:56 PM
Can you tell if total meal per person will be same or can be different ?
Satya KarkiPosted Apr 17, 2022, 6:44 AM
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)