Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve in c language Q.3 You belong to a multilevel network marketing system where each person adds n number beneath them those n number person
solve in c language
Q.3 You belong to a multilevel network marketing system where each person adds n number beneath them those n number person also add n number beneath them. Every time you add a person beneath you, you earn 10 bucks, when someone whole comes under you and adds a person, you earn 3 bucks doesn't matter what level it is, if this chain can be on the nth level and you have a structure with you, write down a program to know who much a person earned so far, doesn't matter on what level they are, the system should traverse the nodes and should display bucks accordingly Example:- N1(41 bucks) N2(13 bucks) N3(36 bucks) N4(10 bucks) N60 bucks) N70 bucks) N8(20 bucks) () N5(0 bucks) N9(0 bucks) N10(0 bucks) Implement a function that takes a node as a parameter and returns the total bucks earned by that nodeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started