![]() Of slices that may be taken from the pizza, you must know ![]() The program should perform the following steps:Ī) Ask the user for the diameter of the pizza in inches.ī) Calculate the number of slices that may be taken from a pizza of that size.Ĭ) Display a message telling the number of slices. Joe's Pizza Palace needs a program to calculate the number of slices a pizza of any sizeĬan be divided into. I read a cplusplus book and I still cant answer it. ![]() When it states round to one decimal place of precision, what does it mean?įor example, when I input 15 and it calculate the number of slices I should cut the pizza into 12.5ĭoes round to one decimal place of precision mean that it should round to 13 ? instead of 12.5? Or what I have is correct?Īs well is the types of my variables correct? I want to know what "Make sure the output of the program displays the number of slices in fixed point notation, rounded to one decimal place of precision." means in Problem #1
0 Comments
Leave a Reply. |