Write a function rule to represent the situation.

the total cost C for g

gram
s
of ham

if each gram

costs ​$5.57
Question content area bottom
Part 1
Write a function rule using C and g

as variables.
enter your response here

​(Type an​ equation.)

The function rule to represent the total cost C for g grams of ham at a cost of $5.57 per gram is:

C(g) = 5.57 * g

Here, C is the total cost, g is the number of grams, and 5.57 is the cost per gram.