Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 node

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago