X project:
Age group A=10-19
=20 to 29 age group B
Age group C=30-40
Y project:
Age group A=0-9
Age group B=10-17
Age group C=18 to 50,
Z project:
Age group A=0-17
=18 to 28 years old age group B
Age group C=29-50
Input user age (many people: 8 years old, the age of 12, 22, 33, 35, 36)
For users, several people in the A.B.C group
X project fee:
A set of registration fee=* 200
Group B fee=* 500
Application of group C=(+ 200) * 700
Y project fee:
A set of registration fee=* 500
Group B fee=* 100
Application of group C=(+ 500) * 300
Z project fee:
A set of registration fee=* 500
Group B fee=* 100
Application of group C=(+ 500) * 500
Pray for X Y Z how much is the total cost of the project, and the project total cost from low to high alignment.
Project has several hundred, set their ages, their registration fee is different also, this should be how to calculate
CodePudding user response:
To make the data list, contact relationship between the primary data
CodePudding user response: