C++ flowchart Only, please. I need a full develop flowchart for this code PLEASE
ID: 3716987 • Letter: C
Question
C++ flowchart Only, please.
I need a full develop flowchart for this code
PLEASE ONLY ANSWER A FULL EXPLAINED FLOWCHART
18. Phone Number List Write a program that has an array of at least 10 string objects that hold people's names and phone numbers. You may make up your own strings, or use the following: "Alejandra Cruz, 555-1223" "Joe Looney, 555-0097 "Geri Palmer, 555-8787 "Li Chen, 555-1212" Holly Gaddis, 555-8878" "Sam Wiggins, 555-0998 "Bob Kain, 555-8712" "Tim Haynes, 555-7676" "Warren Gaddis, 555-9037 Jean James, 555-4939 "Ron Palmer, 555-2783" Programming Challenges 611 The program should ask the user to enter a name or partial name to search for in the array. Any entries in the array that match the string entered should be displayed. For from the list: Geri Palmer, 555-8787 example, if the user enters "Palmer" the program should display the following names Ron Palmer, 555-2783Explanation / Answer
Dear student,
#include <iostream>
using namespace std;
class A
{
public:
string a, b;
};
int main()
{
A objarr[10] = { {"Geri Plamer","555-8787"}, {"Jean James","555-2783"} }; //add all the object values
string fa="Plamer";//If these values match any objects values, you have found the object
for(int i=0;i<10;i++)
{
string> string two = objarr[i].b;
if(objarr[i].a.find(fa) || objarr[i].b.find(fa))//Matching fa to the objects values and checking if they match
{
cout<<"Object found at index "<<(i+1)<<endl;
cout<<"Name= "<<objarr[i].a<<" & Number= "<<objarr[i].b<<endl;
return 0;
}
}
cout<<"Object not found with matching values";//Not found
return 0;
}
Please comment for any queries.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.