Writing Functions (Functions)
Copy the following function into your assignment and replace the ________
with variables names for the input and output.
convert_pounds_to_grams <- function(________) {
grams = 453.6 * pounds
return(________)
}
Use the function to calculate how many grams there are in 3.75 pounds.
Expected outputs for Writing Functions: 1