Create a function:
float unit_price(const float pack_price, const int rolls_count, const int pieces_count) with three parameters:
const float pack_price - Pack price
const int rolls_count - Number of rolls
const const pieces_count - Number of pieces in a roll
For the given parameters, the function calculates what the unit price is for 100 pieces of scraps. The function returns a value with the result rounded to 2 decimal places.
float unit_price(const float pack_price, const int rolls_count, const int pieces_count) with three parameters:
const float pack_price - Pack price
const int rolls_count - Number of rolls
const const pieces_count - Number of pieces in a roll
For the given parameters, the function calculates what the unit price is for 100 pieces of scraps. The function returns a value with the result rounded to 2 decimal places.