Answer:
C++.
Explanation:
#include <iostream>
#include <string>
using namespace std;
///////////////////////////////////////////////////////////////
int main() {
string quote, book;
int page;
cout<<"What is your favorite quote from a book?"<<endl;
getline(cin, quote);
cout<<endl;
/////////////////////////////////////////////
cout<<"What book was that quote from?"<<endl;
getline(cin, book);
cout<<endl;
/////////////////////////////////////////////
cout<<"What page was that quote from?"<<endl;
cin>>page;
cout<<endl;
/////////////////////////////////////////////
int no_of_upper_characters = 0;
for (int i=0; i<quote.length(); i++) {
if (isupper(quote[i]))
no_of_upper_characters++;
}
cout<<"No. of upper case characters: "<<no_of_upper_characters<<endl;
/////////////////////////////////////////////
int no_of_characters = quote.length();
cout<<"No. of characters: "<<no_of_characters<<endl;
/////////////////////////////////////////////
bool isDog = false;
for (int i=0; i<quote.length(); i++) {
if (isDog == true)
break;
else if (quote[i] == 'd') {
for (int j=i+1; j<quote.length(); j++) {
if (isDog == true)
break;
else if (quote[j] == 'o') {
for (int z=j+1; z<quote.length(); z++) {
if (quote[z] == 'g') {
isDog = true;
break;
}
}
}
}
}
}
if (isDog == true)
cout<<"This includes 'd' 'o' 'g' in the quote";
//////////////////////////////////////////////
return 0;
}