watsmyname Posted August 5, 2009 Share Posted August 5, 2009 Please look at an example below, it seems pretty easy, but it is driving me nuts. I m working on Multilevel networking project. - I wanted to calculate commission for each member for making members upto four levels. - If a person makes Corporate Members© then he get 10$ commission and if Individual(I) member are made then the person get $5 commission. - And these commissions are calculated on the monthly basis. Suppose the first member is John, then he won't receive commission unless he makes 10 1st level members. After he reaches 10 1st level members(members may be C and I ), he receives commission and if he makes or his members makes more members he will get monthly commission. - Suppose in july he made 7 first level members then he won't receive commission. - In august, he makes 3 first level members, then his commission starts as his 1st level members reaches 10. - He then gets commissions from 2nd level, 3rd level and 4th level as well. Levels a) Level 1= The group of members made by himself b) Level 2= The group of members made by the members of a) c) Level 3= The group of members made by the members of b) d) Level 4= The group of members made by the members of d) Now, yesterday i wasted my whole day to break through with the logic for calculation, but still no output. Guys please any body give me a break through logic? I know i have to use recursive functions for these, but i just wanted the logic how it can be done? Thanks in advance watsmyname Quote Link to comment Share on other sites More sharing options...
Mardoxx Posted August 5, 2009 Share Posted August 5, 2009 no, things like this are immoral. Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 14, 2009 Share Posted August 14, 2009 I agree. It is also illegal in many places: Pyramid Scheme Quote Link to comment Share on other sites More sharing options...
corbin Posted August 14, 2009 Share Posted August 14, 2009 I agree. It is also illegal in many places: Pyramid Scheme It's usually only illegal in the US (as far as I know) if the only purpose of signing on more people is to take their money with no chance of them actually making money. (Oooo! Wikipedia words it better: "A pyramid scheme is a non-sustainable business model that involves the exchange of money primarily for enrolling other people into the scheme, often without any product or service being delivered.") Then again, he hasn't exactly told us that his site will not work like that.... Quote Link to comment Share on other sites More sharing options...
Psycho Posted August 14, 2009 Share Posted August 14, 2009 It's usually only illegal in the US (as far as I know) From WikiPedia: Pyramid schemes are illegal in many countries, including the United States, the United Kingdom, France, Germany, Canada, Romania, Colombia, Malaysia, Poland, Norway, Bulgaria, Australia, New Zealand, Japan, Italy, Nepaltation needed], Iceland, Philippines, South Africa Sri Lanka, Thailand, Iran, the People's Republic of China, Mexico, Portugal and The Netherlands Then again, he hasn't exactly told us that his site will not work like that.... I could be wrong, but it looks pretty obvious to me that what he is wanting to accomplish is exactly like a pyramid scheme. Granted, it may not be illegal where he is from, but it would be shady nonetheless. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.