Question: 5. Write a C++ program that implements an oval class. The program should output the width, length and area of the oval. The user should
5. Write a C++ program that implements an oval class. The program should output the width, length and area of the oval. The user should let the user enter the values from the keyboard to pass to the constructor. Use UML class diagram provided. Place all classes into one file. Output should be user friendly. Oval -length: double -width: double +Oval(double, double) +setLength(double): void +getLength(): double +setWidth(double): void +getWidth(): double +area(): double Name the program: TestovalxX.cpp, where XX are your initials
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
