In this exercise, you modify the pizza slices program shown in Figure 15-10 in the chapter. If

Question:

In this exercise, you modify the pizza slices program shown in Figure 15-10 in the chapter. If necessary, create a new project named ModifyThis10 Project and save it in the Cpp8\Chap15 folder. Enter the C++ instructions from the figure into a source file named ModifyThis10.cpp. Change the filename in the first comment. Enter the instructions shown in Figure 15-8 in the chapter in a header file named ModifyThis10 Square.h. Change the filename in the first comment. Modify the pizza slices program so it uses the parameterized constructor in the ModifyThis10 Square.h file. Test the program appropriately.

1 //Pizza Slices.cpp 2 //Displays the number of square slices 3 //that can be cut from a square pizza 4 //Created/revised by  on  5 6 #include  7 #include

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: