i give likes!
Instructions for the student: 1. Design a class 2. Implement the copy constructor member function. 3. Use the 'this' pointer to access the contents of the attributes and invoke the methods within the class. 4. Validate class attributes using try/catch 5. Program output with the original data of the problem. Problem description: 1. (Gaddis) Programming Challenger 20. Pizza Pi pg, 146, Cap 3 a. Define the Pizza class with an attribute of type pointer to the diameter b. Add a Copy Constructor member function c. Incorporate the 'this' pointer, to return the values contained in the attributes of the class and the invocation of its member functions. d. Implement the cascading effect with the 'this' pointer. Show it in the main program. e. Validate the diameter that is positive (try/Catch) and create the Negativeliameter. class to send the validation message. Pag 146, chap 3: 20. Pizza Pi Joe's Pizza Palace needs a program to calculate the number of slices a piza of any size can be divided into. The program should perform the following steps: A) Ask the user for the diameter of the pizza in inches. B) Calculate the number of slices that may be taken from a pizza of that size. C) Display a message telling the number of slices. To calculate the number of slices that may be taken from the pizza, you must know the following faces: - Each slice should have an area of 14.125 inches. - To calculate the number of slices, simply divide the area of the pizza by 14.125. - The area of the pizza is calculated with this formula: Area =r2 NOTE: is the Greck letter pi. 3.14159 can be used as its valuc. The variable ris the radius of the pizza. Divide the diameter by 2 to get the radius. Make sure the output of the program displays the fiumber of slices in fixed point nota. tion, rounded to one decimal place of precision, Use a named constant for pi