(in c++):
Output "Valid" if input's length is less than or equal to 7. Otherwise, output "Invalid".

Ex: If input is test123, output:

Valid

Recall string's length() returns the length of the string. Ex: myString.length()

in c Output Valid if inputs length is less than or equal to 7 Otherwise output Invalid Ex If input is test123 output Valid Recall strings length returns the len class=

Respuesta :

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