Having trouble with figuring out how to write a function


Having trouble with figuring out how to write a function for the following problem, I have to write a program that finds all possible combinations for these three guys (john,nick,stephen) to split a check. John only has $10 bills, nick only has $5 bills and stephen only has $2 bills. The point is for each of them to put a bill down until they reach the correct amount, they never go over.  I would like to try writing this recursively but i'm having trouble thinking of a simple way to solve this.  

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Having trouble with figuring out how to write a function
Reference No:- TGS01362761

Expected delivery within 24 Hours