SlideShare a Scribd company logo
1 of 1
Download to read offline
For the given program, which XXX iterates through the vector to find the state that is input
(userState) until a match is found?
isnt it:
i < stateNames.size() For the given program, which XXX iterates through the vector to find the
state that is input (userState) until a match is found? vector < string>
stateNames(NUM_STATES); vector statePop(NUM_STATES); string userState; bool
foundState = false; unsigned int i; cin >> userState; foundState = false; for (i=0; XXX; ++i) { if
(stateNames.at(i) == userState) { foundState = true; cout << userState <<","< statePop.at(i) <<
endl;

More Related Content

More from alokindustries1

SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdfSECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
alokindustries1
 
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdfSe sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
alokindustries1
 
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdf
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdfScenario of the Project Plan In the role of IT Head of Loyalist col.pdf
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdf
alokindustries1
 
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdfScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
alokindustries1
 

More from alokindustries1 (20)

Select all that are true about plasmid DNA.a.The DNA in plasmids.pdf
Select all that are true about plasmid DNA.a.The DNA in plasmids.pdfSelect all that are true about plasmid DNA.a.The DNA in plasmids.pdf
Select all that are true about plasmid DNA.a.The DNA in plasmids.pdf
 
Select a current event (local or international) that is relevant to .pdf
Select a current event (local or international) that is relevant to .pdfSelect a current event (local or international) that is relevant to .pdf
Select a current event (local or international) that is relevant to .pdf
 
Seleccione SOLO UNO de los siguientes Objetivos de Desarrollo Sosten.pdf
Seleccione SOLO UNO de los siguientes Objetivos de Desarrollo Sosten.pdfSeleccione SOLO UNO de los siguientes Objetivos de Desarrollo Sosten.pdf
Seleccione SOLO UNO de los siguientes Objetivos de Desarrollo Sosten.pdf
 
Seleccione todas las cualidades que pertenecen a los sistemas parlam.pdf
Seleccione todas las cualidades que pertenecen a los sistemas parlam.pdfSeleccione todas las cualidades que pertenecen a los sistemas parlam.pdf
Seleccione todas las cualidades que pertenecen a los sistemas parlam.pdf
 
Seleccione la declaraci�n FALSA de las siguientes A. Trabajar con o.pdf
Seleccione la declaraci�n FALSA de las siguientes A. Trabajar con o.pdfSeleccione la declaraci�n FALSA de las siguientes A. Trabajar con o.pdf
Seleccione la declaraci�n FALSA de las siguientes A. Trabajar con o.pdf
 
Seismic waves travel faster when the rock is less stiff.A) TrueB.pdf
Seismic waves travel faster when the rock is less stiff.A) TrueB.pdfSeismic waves travel faster when the rock is less stiff.A) TrueB.pdf
Seismic waves travel faster when the rock is less stiff.A) TrueB.pdf
 
Seg�n TCPS 2, �qu� es la investigaci�n de riesgo m�nimo (seleccione .pdf
Seg�n TCPS 2, �qu� es la investigaci�n de riesgo m�nimo (seleccione .pdfSeg�n TCPS 2, �qu� es la investigaci�n de riesgo m�nimo (seleccione .pdf
Seg�n TCPS 2, �qu� es la investigaci�n de riesgo m�nimo (seleccione .pdf
 
Seg�n Juan Linz (1990), �c�mo los sistemas presidenciales crean disc.pdf
Seg�n Juan Linz (1990), �c�mo los sistemas presidenciales crean disc.pdfSeg�n Juan Linz (1990), �c�mo los sistemas presidenciales crean disc.pdf
Seg�n Juan Linz (1990), �c�mo los sistemas presidenciales crean disc.pdf
 
Seg�n Holton en la fuente 1, �cu�les fueron los motivos de los padre.pdf
Seg�n Holton en la fuente 1, �cu�les fueron los motivos de los padre.pdfSeg�n Holton en la fuente 1, �cu�les fueron los motivos de los padre.pdf
Seg�n Holton en la fuente 1, �cu�les fueron los motivos de los padre.pdf
 
Seg�n el texto, �qu� es un factor Persona a la que se le da autori.pdf
Seg�n el texto, �qu� es un factor  Persona a la que se le da autori.pdfSeg�n el texto, �qu� es un factor  Persona a la que se le da autori.pdf
Seg�n el texto, �qu� es un factor Persona a la que se le da autori.pdf
 
Security X has an actual rate of return of 11.8 and a beta of 0.72..pdf
Security X has an actual rate of return of 11.8 and a beta of 0.72..pdfSecurity X has an actual rate of return of 11.8 and a beta of 0.72..pdf
Security X has an actual rate of return of 11.8 and a beta of 0.72..pdf
 
Seg�n el C�digo y las Normas, �cu�l de las siguientes afirmaciones c.pdf
Seg�n el C�digo y las Normas, �cu�l de las siguientes afirmaciones c.pdfSeg�n el C�digo y las Normas, �cu�l de las siguientes afirmaciones c.pdf
Seg�n el C�digo y las Normas, �cu�l de las siguientes afirmaciones c.pdf
 
SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdfSECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
SECCI�N A Lea el estudio de caso a continuaci�n y responda TODAS l.pdf
 
Sec5.1 Ebony James 032323 922 AM () The area of the shaded reglon .pdf
Sec5.1 Ebony James 032323 922 AM () The area of the shaded reglon .pdfSec5.1 Ebony James 032323 922 AM () The area of the shaded reglon .pdf
Sec5.1 Ebony James 032323 922 AM () The area of the shaded reglon .pdf
 
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdfSe sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
Se sabe que ciertos macroinvertebrados (peque�os organismos acu�tico.pdf
 
Sarah sets her alarm for 630 AM to make sure she gets to class on t.pdf
Sarah sets her alarm for 630 AM to make sure she gets to class on t.pdfSarah sets her alarm for 630 AM to make sure she gets to class on t.pdf
Sarah sets her alarm for 630 AM to make sure she gets to class on t.pdf
 
Se descubri� que existen tres alelos diferentes en el locus R. El al.pdf
Se descubri� que existen tres alelos diferentes en el locus R. El al.pdfSe descubri� que existen tres alelos diferentes en el locus R. El al.pdf
Se descubri� que existen tres alelos diferentes en el locus R. El al.pdf
 
Scientists discover more than ten thousand new species of living org.pdf
Scientists discover more than ten thousand new species of living org.pdfScientists discover more than ten thousand new species of living org.pdf
Scientists discover more than ten thousand new species of living org.pdf
 
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdf
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdfScenario of the Project Plan In the role of IT Head of Loyalist col.pdf
Scenario of the Project Plan In the role of IT Head of Loyalist col.pdf
 
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdfScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
ScenarioXYZ Corp. is a parent corporation with 2 handbag stores l.pdf
 

Recently uploaded

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

For the given program, which XXX iterates through the vector to find.pdf

  • 1. For the given program, which XXX iterates through the vector to find the state that is input (userState) until a match is found? isnt it: i < stateNames.size() For the given program, which XXX iterates through the vector to find the state that is input (userState) until a match is found? vector < string> stateNames(NUM_STATES); vector statePop(NUM_STATES); string userState; bool foundState = false; unsigned int i; cin >> userState; foundState = false; for (i=0; XXX; ++i) { if (stateNames.at(i) == userState) { foundState = true; cout << userState <<","< statePop.at(i) << endl;