function taumBday(b, w, bc, wc, z) {
    // Write your code here
    return bc > wc + z
        ? (b + w) * wc + b * z
        : bc + z < wc
            ? (b + w) * bc + w * z
            : b * bc + w * wc;
}
/*
 * Complete the 'taumBday' function below.
 *
 * The function is expected to return a LONG_INTEGER.
 * The function accepts following parameters:
 *  1. INTEGER b       blackItems
 *  2. INTEGER w       whiteItems
 *  3. INTEGER bc      blackItemCost
 *  4. INTEGER wc      whiteItemCose
 *  5. INTEGER z       itemChangeCost
 */
Complete the 'taumBday' function below.
The function is expected to return a LONG_INTEGER.
The function accepts following parameters:
1. INTEGER b       blackItems
2. INTEGER w       whiteItems
3. INTEGER bc      blackItemCost
4. INTEGER wc      whiteItemCose
5.
Complete the ' taumBday ' function below . The function is expected to return a LONG_INTEGER . The function accepts following parameters : 1 . INTEGER b blackItems 2 . INTEGER w whiteItems 3 . INTEGER bc blackItemCost 4 . INTEGER wc whiteItemCose 5 .
function taumBday(b, w, bc, wc, z) {
    return bc > wc + z
        ? (b + w) * wc + b * z
        : bc + z < wc
            ? (b + w) * bc + w * z
            : b * bc + w * wc;
}
function taumBday ( b , w , bc , wc , z ) { return bc > wc + z ? ( b + w ) * wc + b * z : bc + z < wc ? ( b + w ) * bc + w * z : b * bc + w * wc ; }
Complete the 'taumBday' function below.
Complete the ' taumBday ' function below .
// Write your code here