que 1 why would we declare calPerimeter as a variable but then also declare it again with just double perimeter?
que 2: is there a specific reason why it says (double, double) in the first part? or is that my professors way of writing a bad code? is it safe to just go ahead and delete iT ?
also can i replace integer length and string width with just double length and double width?
i'm honestly not quite sure what my question is 100% but hopefully that made sense..
thanks!
que 1 why would we declare calPerimeter as a variable but then also declare it again with just double perimeter?
calcPerimeter is a function which calculates perimeter when given sides. perimeter is a variable (presumably to store result of caclPerimeter).
que 2: is there a specific reason why it says (double, double) in the first part? or is that my professors way of writing a bad code? is it safe to just go ahead and delete iT ?