First, we need to declare and initialize the array of string elements with the given names:
```cpp
#include <iostream>
#include <string>
using namespace std;
int main() {
string names[10] = {"Lin", "Mary", "Lee", "Jessica", "Rani", "Michelle", "Saeed",
Show more…