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 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
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 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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
14. Find total members and commission gained. Need C, C++, Java, Python, or Perl code for the below question. Important: Do not copy codes from prepinsta.com.
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 4 steps with 2 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
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education