Basically I just need help writing a method that takes in the roomCapacity[] array and i and gives back the index at which the room capacity is most efficient with the size of the party.
Program should function somewhat like this (user input is bold and can be changed to anything positive).
How many rooms do you have?
3
What is the capacity of room 1?
30
What is the capacity of room 2?
20
What is the capacity of room 3?
10
How many parties are coming in?
3
How big is party 1?
11
The current best fit is room 2 with a capacity of 20
How big is party 2?
12
The current best fit is room 1 with a capacity of 30
How big is party 3?
3
The current best fit is room 3 with a capacity of 10
Any help or suggestions are appreciated, thanks!