Q: In the Pizza Cost project you say to use the formula: area_pizza = pi * (0.5 diameter)^2, Have the user input the diameter of the pizza. Then the calculation function takes the (int) radius as a parameter and uses diameter in the formula. Do you really want us to convert to diameter, then radius, then back to diameter again?
A: No. The user should input the diameter (since pizza shops report diameter, and this will facilitate your data collection ;) ), and the function must have a radius parameter. But the definition of the function was not meant to imply that you had to convert back to diameter.
*******************
Q: For the fourth problem, where we create a menu that links to all the previous problems, should all the code from the previous problems 1-3 be copy/pasted into the last program? Or can the fourth program call the other three even though they are different
A: C program can only have one main(), so it is easiest for now to copy all the functions into the 4th program.
*******************
Q: How can I control how many decimal places are printed for double values?
A: See section 2.6 of H&K, especially table 2.13. Controlling format is essential when you have really small numbers or need great precision.
*******************
Q: Having an integer radius can introduce error. Should I use a double instead?
A: No. Follow the directions. And if you find any data supporting your claim, please bring it to me and you might convince me to change the specification.