Question
c++ * Be sure to add your name as a cout in the first lines of each program - else 0 credit. * Add constructors
c++
* Be sure to add your name as a cout in the first lines of each program - else 0 credit.
* Add constructors - a default and parameterized constructor to each.
* Write an .h interface and a .cpp implementation for each class
* Write an Drive/Test file that tests the constructors and functions
* Write a UML class diagram for each class
cout << "Name: YOURNAME - Program Name: PROGRAM NAME - Date: MMDDYY" << endl;
Example: cout << "Name: Jon Smith - Program Name: Prog9Box - Date: 6/28/17" << end;
Program 7 - Circle
You write ALL the code,
then run it - Produce the correct output. Turn in code and screen print of successful run, for credit
* Write a class for a Circle
* Input only the radius.
* Write functions that Calculate the circles Circumference, Area and Diameter, and print out the value of the radius
* Include error checking for radius, must be greater than zero
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started