Define a class WordOp having the following description:
Data members/ Instance variables:
str : to store a word
max : to store the highest alphabetical character present in the word.
min : to store the lowest alphabetical character present in the word.
Member functions:
WordOp(String s) : parameterized constructor to accept a word in UpperCase.
void calcMaxMin() : to find the highest and the lowest character present in the word.
void display() : to display the word along with the highest and the lowest character.
Answers
Answered by
1
Answer:
Some noncommunicable diseases are more common than others. The four main types of noncommunicable diseases include cardiovascular disease, cancer, chronic respiratory disease, and diabetes.
xxXAbhayXxx:
Hi
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Economy,
2 months ago
English,
4 months ago
Math,
4 months ago
Math,
10 months ago
Chemistry,
10 months ago
Computer Science,
10 months ago