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.) //Enter parent Member as this Amit Y N //Enter Y if Parent member has child members otherwise enter 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
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.) //Enter parent Member as this Amit Y N //Enter Y if Parent member has child members otherwise enter 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
Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter19: Probabilistic Dynamic Programming
Section19.4: Further Examples Of Probabilistic Dynamic Programming Formulations
Problem 7P
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
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.Recommended textbooks for you
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole