ing axxaha

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter20: Queuing Theory
Section: Chapter Questions
Problem 17RP
icon
Related questions
Question

 

Using axxaha pu

 

Question: 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
Example 1: When there are more than one child members
Input: (Do not give input prompts.Accept values as follows.)
Amit
//Enter parent Member as this
//Enter Y if Parent member has child members otherwise enter
Y
N
Rajesh,Virat //Enter names of child members of Amit in comma separated
Output:(Final Output must be in format given below.)
TOTAL MEMBERS:3
COMISSION DETAILS
Amit: 1000 INR
Rajesh :250 INR
Virat: 250 INR
Example 2: When there is only one child member in the hierarchy
Input :
Amit
Y
Rajesh
Output:
Total Members: 2
Comission Details
Amit: 500 INR
Rajesh: 250 INR
Transcribed Image Text:Question: 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 Example 1: When there are more than one child members Input: (Do not give input prompts.Accept values as follows.) Amit //Enter parent Member as this //Enter Y if Parent member has child members otherwise enter Y N Rajesh,Virat //Enter names of child members of Amit in comma separated Output:(Final Output must be in format given below.) TOTAL MEMBERS:3 COMISSION DETAILS Amit: 1000 INR Rajesh :250 INR Virat: 250 INR Example 2: When there is only one child member in the hierarchy Input : Amit Y Rajesh Output: Total Members: 2 Comission Details Amit: 500 INR Rajesh: 250 INR
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Network Protection Strategies
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole