The program is an illustration of string manipulations
What are string manipulations?
String manipulations include calculating the lengths of strings and also performing several operations on the string
The actual program
The complete program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
string passwordStr;
cin>>passwordStr;
if(passwordStr.length() <= 7){
cout<<"Valid";
}
else{
cout<<"Invalid";
}
return 0;
}
Read more string manipulation at:
https://brainly.com/question/14284563