Question: A Betelgeusean plorg has these properties: Data A plorg has a name with no more than 19 letters. A plorg has a contentment index (CI),
A Betelgeusean plorg has these properties:
Data
A plorg has a name with no more than 19 letters.
A plorg has a contentment index (CI), which is an integer.
Operations
A new plorg starts out with a name and a CI of 50.
A plorg’s CI can change.
A plorg can report its name and CI.
The default plorg has the name "Plorga".
Write a Plorg class declaration (including data members and member function prototypes) that represents a plorg.Write the function definitions for the member functions. Write a short program that demonstrates all the features of the Plorg class.
Step by Step Solution
3.57 Rating (168 Votes )
There are 3 Steps involved in it
include include using namespace std class Plorg public Plorg name Plorga CI 50 Plorgstring name ... View full answer
Get step-by-step solutions from verified subject matter experts
