Wyo C++ Ch. 12 Programming Assignment

Ch12Proj1.cpp

Add a method named GetCircumference to the textbook's Circle class that returns the circumference of the circle. Write a client program such as OOP.CPP that displays the circumference. See these links for copies of circle.h and circle.cpp.

Your program must follow the Coding Standards. Also, change the spelling, capitalization, etc. of the textbook's original files (OOP.CPP, circle.h, and circle.cpp) as necessary in order to follow the naming conventions and standards discussed and demonstrated by the instructor. Particularly, the name of the class should be Circle with a capital 'C'. Rename OOP.CPP as Ch12Proj1.cpp and save it to your appropriate network folder. Place another copy in your Submit folder along with circle.h and circle.cpp so that the instructor can execute your program within that folder. Be sure that the #include compiler directives have valid paths so that the instructor can execute the version that is stored in the Submit folder.

You must hand in the following on separate pages stapled in this specified order.

Use a highlighter
to indicated the modified or additional lines of code that you added to these original files.

    1. Ch12Proj1.cpp
    2. circle.h
    3. circle.cpp

Ch12Proj2.cpp

Be creative and create a class of your own design which as at least 2 private member variables, a default constructor that initializes int and double variables to zero, an accessor member function, and a modifier member function.

Also, write a client program that uses the class in an interesting, nontrivial way. Be sure to make use of each member function. Be prepared to execute your client program in front of your classmates and explain the design of your class.

You must submit the header file (.h), the implementation file (.cpp) and client program source file. Be sure to include your name and the name of each file at the beginning of each file.

Your program must follow the Coding Standards. Follow the naming conventions and standards with regard to classes that has been discussed and demonstrated by the instructor. Particularly, the names of the class and member functions should begin with capital letters. Save the files where appropriate in your network folder.

You must hand in the following on separate pages stapled in this specified order:

    1. Ch12Proj2.cpp
    2. Your class interface (.h file).
    3. Your class implementation (.cpp file).