juicepotion Posted August 2, 2010 Share Posted August 2, 2010 I would like to make a budget system where the user enter their preferred budget, then the system will generate a package based on the budget enter, system will generate the budget package based on the database. For example, i have 4 categories - flower, cake, hotel & bridal house user enter budget of $100, system will then check through the database, come out with a package which include each of the categories above. output should be flower:30 cake:20 hotel:30 bridal house:20 how should i do that? what math should i use? probability? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted August 2, 2010 Share Posted August 2, 2010 Probability of what? Your example appears to be just percentages of the amount entered. Quote Link to comment Share on other sites More sharing options...
juicepotion Posted August 2, 2010 Author Share Posted August 2, 2010 i mean i want the output to be like this: **taken from database flower: $30 cake: $20 hotel: $30 bridal house:$20 meaning user enter $100, system can come out the package that total not more then $100. you got what i mean? how can i come out such result? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.