Program
Problem Statement – Chain Marketing Organization has has a scheme for income generation, through which its members generate income for themselves. The scheme is such that suppose A joins the scheme and makes R and V to join this scheme then A is Parent Member of R and V who are child Members. When any member joins the scheme then the parent gets total commission of 10% from each of its child members.
Child members receive commission of 5% respectively. If a Parent member does not have any member joined under him, then he gets commission of 5%.
Take name of the members joining the scheme as input.
Display how many members joined the scheme including parent member.Calculate the Total commission gained by each members in the scheme. The fixed amount for joining the scheme is Rs.5000 on which commission will be generated
SchemeAmount = 5000
Code
parent = input() Yes_No = input() if Yes_No == "N": print("TOTAL MEMBERS:1\nCOMMISSION DETAILS\n{0}: 250 INR".format(parent)) elif Yes_No == "Y": child=list(map(str,input().split(","))) print("TOTAL MEMBERS:{}".format(len(child)+1)) print("COMMISSION DETAILS \n{0}:{1} INR".format(parent,len(child)*500)) for i in child: print("{0}:250 INR".format(i))
