Given an array of bagel orders determine the number of bagels needed to fulfill all the orders.
int[] orders
int
public int bagelCount(int[] orders)(be sure your method is public)
orders will contain between 0 and 50
elements.
orders will be between 1 and 60 (no
one orders more than five dozen at-a-time).
orders = {1,3,5,7}
Returns: 16
No order is for more than a dozen, return the total of all orders.
orders = {11,22,33,44,55}
Returns: 175 since 11 + (22+1) +(33+2) + (44+3) + (55+4) = 175