Programming Logic and Design, 9e
d. Design an application that declares an array of 25 Cakeobjects. Prompt the user for a flavor, icing, and diameter for each Cake, and pass each object to a method that computes the price and returns the complete Cakeobject to the main program. Then display all the Cakevalues. An 8−inch cake is $19.99, a 9−inch cake is $22.99, and a10−inch cake is $25.99. Any other entered size is invalid and should cause the price to be set to 0.