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;
}
Retro recently discovered that several key files of your antivirus program have been deleted.
<h3>What is antivirus example?</h3>
New versions of Microsoft Windows even include Windows Defender, which with the latest versions of Windows can defend against computer viruses. Other well-known antivirus programs include Norton antivirus and McAfee, and popular free antivirus programs include Avast and AVG.
<h3>Which antivirus is best for laptop?</h3>
McAfee Antivirus Plus is our top choice for multiple devices because its subscriptions offer protection for every device in the home for a reasonable cost.
To learn more about Antivirus Plus, refer
brainly.com/question/28050091
#SPJ4
Structural insulated panels have the ability to insulate as
well as SUPPORT WEIGHT.
Explanation:
- Structural insulated panels (SIPs) are a high performance building system for residential and light commercial construction.
- SIPs are engineered panels used to construct walls, floors, and ceilings.
- SIPs provide an extremely durable, strong, and energy-efficient building option. This is a replacement for construction methods using traditional framing lumber and insulation,
- The panels consist of an insulating foam core sandwiched between two structural facings, typically oriented strand board. The panels also have the capacity to support heavy weights as well as light weights.
- SIPs are manufactured under factory controlled conditions and can be fabricated to fit nearly any building design. The result is a building system that is extremely strong, energy efficient and cost effective.
- Building with SIPs will save you time, money and labor.