Answer:
?
Explanation:
these are instructions to a question?
Answer:
The code is given below. Follow the question and the code definitions for better understanding.
Explanation:
#include<iostream>
#include<string>
using namespace std;
int main(){
string pastWord="";
string currentWord,nextWord;
int n,t;
int singleton=0;
int consecutive=0;
cout<<"Enter words. ('xxxxx' to exit):\n";
cin>>nextWord;
do{
currentWord=nextWord;
cin>>nextWord;
if ( (currentWord!=pastWord)&&(currentWord!=nextWord) )
singleton++;
else if((currentWord==pastWord)&&(currentWord!=nextWord))
consecutive++;
pastWord=currentWord;
}while(nextWord!="xxxxx");
n=singleton;
t=consecutive;
cout<<"There were "<<n<<" singletons and "<<t<<" consecutive repetitions.";
cin.get();
return 0;
}
Explanation:
the Word processor is used to for
* Editing of documents
*Formatting of documents
*Creation of documents
*Saving documents
Python is a programming language launched in 1991 by Guido van Rossum. It is common as a beginner's language and in teaching, but also as a general programming language with application in many different domains.
It has dynamic typing, which is why it is sometimes described as a scripting language. The language is also characterized by the fact that indentation affects the program flow. This makes the program code compact and is considered to give it good readability.
Learn more about Python in brainly.com/question/22841107