Skip to main content

17.11) Exercise 28


  1. Write a program that:
    • Prompts the user to enter values for circle x & y coordinates and circle radius
    • Creates a Circle object with these coordinates and radius
    • Calls the appropriate methods of this object to compute circle area and circumference
    • Prints the area and circumference
  2. Compile your program and link it with the previously compiled class implementation, which you should have available from the previous exercise as a file called circle.o. Check that the program runs correctly.
  3. Optionally, create a makefile to simplify the process of compiling the two files and linking them.