Problem 2902. What's for Lunch?
Given b choices of beverages, e choices of entrees, s choices of sides (take two different sides total) and d choices of desserts, how many different meal combinations are possible?
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Guillaume
on 30 Jan 2015
The solutions to the test suite assume that the number of sides choices is s*(s-1). In my opinion that's wrong, it should be nchoosek(s, 2). That is the order of the sides do not matter. sides [x y] is the same as sides [y x].
Jan Orwat
on 30 Jan 2015
Agree with Guillaume
James
on 30 Jan 2015
Do you have anything that's gluten free? :-)
Jihye Sofia Seo
on 16 Feb 2017
I agree with Guillaume
Solution Comments
Show commentsProblem Recent Solvers63
Suggested Problems
-
Compute a dot product of two vectors x and y
988 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
812 Solvers
-
Let's get back to school, and create multiplication tables
213 Solvers
-
Matlab Basics - Convert a row vector to a column vector
628 Solvers
-
9438 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!