Question: C++ as simple as possible. Exercise 12.1 Define a class Area that has two private variable members: units of type string. area_value of type float.
C++ as simple as possible.



Exercise 12.1 Define a class Area that has two private variable members: units of type string. area_value of type float. Modify the P12_1a.cpp program to create a dynamic variable of type Area, then: 1. Input from the keyboard the area_value and its units. Compute one-half and one-quarter of the area and display the results. 2. Destroy the dynamic variable at the end. Call your new program ex12_1.cpp Let us look at P12_1a.cpp to see how this is done. 4. | 1. 1/P12_1a.cpp . This program illustrates dynamic variables 2. #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
