So i have this code for resistance conversions and i need to have all my calculations happen inside of 1 function, but im not sure on how to go about doing this, so here is