1 Page

lab5

Course: CSCI 180, Fall 2010
School: Saint Louis
Rating:
 
 
 
 
 

Document Preview

<vector> #include #include <iostream> # #include <string> u using namespace std; int main() { vector<string> names; int n; int SetNum=1; string name; cin >> n; while (n != 0){ for (int i=0; i !=n; i++){ cin name; >> names.insert(i, name); } for (int i=0; i !=n; i++){ if ((i%2)==0){ cout<< names[i] <<...

Register Now

Unformatted Document Excerpt

Coursehero >> Missouri >> Saint Louis >> CSCI 180

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
<vector> #include #include <iostream> # #include <string> u using namespace std; int main() { vector<string> names; int n; int SetNum=1; string name; cin >> n; while (n != 0){ for (int i=0; i !=n; i++){ cin name; >> names.insert(i, name); } for (int i=0; i !=n; i++){ if ((i%2)==0){ cout<< names[i] << endl; } } for (int i=n; i != 0; i--){ if ((i%2)!=0){ cout<< names[i] << endl; } } SetNum++; cin>> n; } }
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Saint Louis - CSCI - 180
#ifndef SMART_STACK_H #define SMART_STACK_H #include &lt;iostream&gt; #include &lt;stdexcept&gt; #include &lt;string&gt; #include &lt;sstream&gt; using namespace std; namespace csci180 cfw_ /* A stack implementation based upon use of a linked list. * Elements are inserted and re
Saint Louis - CSCI - 180
#include &lt;stack&gt; #include &lt;iostream&gt; #include &lt;string&gt; using namespace std; int main()cfw_ stack&lt;string&gt; names; int n; int setNum=1; string name; cin&gt; n ; cout&gt; &quot;SET &quot;&gt; setNum &gt; endl; while (n != 0)cfw_ for (int i=n; i=0; i-)cfw_ if (i%2 != 0)cfw_ cin &gt; n
Saint Louis - CSCI - 180
#include &lt;iostream&gt; #include &lt;string&gt; u using namespace std; class Stuff cfw_ private: int number; string label; public: Stuff (int num=5, string str=&quot;hello&quot;) : number(num), label(str) cfw_ cout &lt; &quot;Constructor&quot; &lt; endl; Stuff(const Stuff&amp; original) cfw_ c
Saint Louis - CSCI - 180
#include &lt;iostream&gt; # #include &lt;string&gt; u using namespace std; int int int int int int int yes=1; numbers; count; test; index; numbArray[15]; main()cfw_ while (yes!=-1)cfw_ cin &gt; numbers; while (numbers!=0)cfw_ numbArray[index]=numbers; index+; while (t
Saint Louis - CSCI - 180
#include &lt;iostream&gt; # #include &lt;string&gt; u using namespace std; int int int int int int i int yes=1; numbers=2; count; doubled; test=0; index=-1; numbArray[15];int main()cfw_ while (numbers!=-1)cfw_ cin&gt; numbers; if (numbers != 0) cfw_numbArray[index]=num
Saint Louis - CSCI - 150
from math import sqrt distances# needed for computingclass Point: &quot;A coordinate system with (x, y) standards&quot; def _init_(self, initialX=0, initialY=0): &quot;Let's the user input values for x and y; will default to 0 otherwise&quot; self._x = initialX self._y = i
Saint Louis - CSCI - 150
america = [ 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', '
Saint Louis - SPAN - 110
1. What is a field? Individual piece of data/Made up of one or more bytes, or characters/Examples: name, address, phone number 2. What is a record? Fields that are grouped together for a specific purpose3. What is a primary key? A field, or group of fiel
Saint Louis - SPAN - 110
CH 7 Authentication- process of identifying and confirming that persons identity Business Model- how a company will meet customer needs while making profit Business-to-Business E-Commerce B2B- electronic exchanges between companies Business-to-Customer E-
Saint Louis - SPAN - 110
Application software-complete, self contained program, or set of programs, for performing a specific job Central processing unit CPU- computers brain, works w memory to control execution Communications- connects one IT device to another Controller- contro
Saint Louis - SPAN - 110
Balance sheet- indicates the financial condition of a company at a specific time Business- organizations with one or more people who decide on wellbeing, goals to pursue, organize and complete goals. Business environment- complex collection of political,
Saint Louis - SPAN - 110
Working age population- total number of people aged 16 years and over who are not in jail, hospital, or some other form of institutional care or in US army Labor force- number of people employed plus the number unemployed Employed- worked 1 or more payed
Saint Louis - SPAN - 110
Macroeconomics- the study of total effects on national economy from the choices made by households, firms, and government. (Aggregate) AggregateGross Domestic Product (GDP)- Bureau of economic analysis- market value of all final goods and services produce
Saint Louis - SPAN - 110
Price Supports-Agricultural markets 3 general guidelines 1. isolate market 2. establish price support 3. pay subsidy buyback = deadweight loss area C NO buyback = deadweight loss area A Comparative advantage-lowest opportunity cost to who you compare to (
Saint Louis - SPAN - 110
CH 6 Resource allocations- the ability of markets to direct resources in the social interest that are both efficient and fair 1. Market Price-method to allocate resources, the people most willing to pay receive the resources 2. Command- someone in authori
Saint Louis - SPAN - 110
CH 3 Production Possibilities Frontier (PPF) -shows boundary between those combinations of goods and services that can be produced of what can be produced and those that cannot be produced good-x &amp; good-y -Curvilinear (changing slope, changing relationshi
Saint Louis - SPAN - 110
CH 5 ElasticityPercentage change in price- (new price-old price)/old price Elasticity demand- measures the responsiveness of quantity demanded to a change in a price of a good Calculated by %change of Qd/%change of percent 5 degrees of elasticity Perfectl
Saint Louis - SPAN - 110
CH 1 Economics (root econimcas/one who manages household)- social science that studies choices individuals, business, and gov. make when they cope w scarcity. Scarcity-inability to satisfy all wants Econ w/ an X-Factor-factors in fear, greed, vengeance. W
Saint Louis - SPAN - 110
CH 4 Supply and Demand (price is always graphed on vertical axis) -Competitive market -a market that has many buyers and sellers, such that no single buyer or seller can influence the price Quantity Demanded (Qt)-the amount that consumers plan to buy at a
Saint Louis - SPAN - 110
CH 2 US Economy -What do we produce? Bases on scarcity. -Consumption Goods- refer to goods and services purchased by individuals and households 3 Categories of goods- used as a % of GDP Consumer Goods-60% -Durable Goods- last 3 years or more (relies on cu
Saint Louis - SPAN - 110
1 Me encanto el arte, especialmente los cuadros 2 Ahh si yo tambin. Quien es su pintor favorito? 1 En mi opinin, pienso que Picasso sea el mejor porque hay muchas obras de su arte en todos los museos en el mundo. Y tu? Quien es su pintor favorito? 2 Me en
Saint Louis - SPAN - 110
Spanish 210 Jon Wells Actividad 6 Parte A 1. En el ao 2075 las personas viajarn porque las personas telepuerto. 2. En el ao 2075 se pagar en las tiendas con monedas o billetes. Algunos cosas nunca cambiaron. 3. En el ao 2075 la gente no cerrarn las puerta
Saint Louis - SPAN - 110
Spanish 210 Jon Wells Actividad 26 Parte A 1. Adnde vas con esos prismticos? a. Los llevo por si las moscas. S que tenemos asientos en la sptima fila, pero quiero ver bien a los actores. 2. Por una parte, me gusta esta escultura, pero por la otra me parec
Saint Louis - SPAN - 110
Situacin 1: Eres un/a gua en el Museo de Arte San Lus que lleva a unos visitantes a la exhibicin ms reciente. Ustedes conversan sobre los artistas y las obras y dan sus opiniones y reacciones sobre lo que ven y lo que escuchan.a. Beginsinclassroom,withth
Saint Louis - SPAN - 110
Spanish 210 Jon Wells Actividad 14 Parte A 1. Me alegr de que IBM me contratara. 2. Nos rog que lo hiciramos lo antes posible. 3. Dudo que ayer ella los convenciera. 4. Sent mucho que t no pudieras ir al picnic. 5. Les recomend que venga a las doce. 6. Qu
Saint Louis - SPAN - 110
Jon Wells Spanish 210 Actividad 13 Parte A Antes de la Primera Guerra Mundial (1914-1918) exista en Espaa el llamado arte oficial. El rey contrataba pintores para su corte y les indicaba lo que quera ellos pintaran. En general, antes de que el artista com
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Actividad 9 1) El arte es el dibujo que los pintares pinta y la artesana es la arte que los nios hacen 2) El arte se considera la artesana. 3) Un graffiti es un dibujo en el aire libre que es no permiten de los polticos y las personas
Saint Louis - SPAN - 110
Spanish 210 Jon Wells Actividad 24A l le entrega una flor a ella y ella la huele y sonre. Ella le toma la mano (a l). Se miran uno a otro con mucha intensidad y (ellos) se besan. En ese momento entra otra mujer. Ella los mira (a ellos) con asombro, pero e
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Actividad 21 1) Lola es desesperada y preocupada. 2) Ellas hablan que un amigo o un esposo de Lola. Creo que esto porque les dicen, lo voy a abrazar o voy a matar. 3) Creo que Vernica habla con su madre por telfono o sale con su mejor
Saint Louis - SPAN - 110
Espaol 210 Jon Wells Actividad 11 Argentina ofrece algunos beneficios para que el trabajador tenga cierta proteccin econmica. Uno de estos beneficios es la licencia por matrimonio, gracias a la cual si alguien se casa, puede faltar al trabajo por doce das
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Escribir Cmo piensas usar el Espaol en tu Futuro Empleo? Yo pienso usar el Espaol en mi futuro empleo cuando es necesario que hable con mis compaeros del Espaa. Tambin yo pienso hablar en espaol cuando estoy en los pases que usan la i
Saint Louis - SPAN - 110
Jon Wells Espaol 210 La Hora de Conversacin; El Mate Durante la hora de conversacin, mi amigo Muz y yo aprendemos como preparamos una bebida muy especial de el pas de Argentina. La bebida especial se llama El Mate y es como te. Primero puesto las hierbas
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Composicin 1 Estimado Sr. Biondi, En la Universidad de San Lus, hay muchos problemas para los estudiantes y los profesores tambin. Primero, la comida en las cafeteras es muy malo y, nosotros no nos gusta. Le recomiendo que cocino buen
Saint Louis - SPAN - 110
Espaol 210 Jon Wells Actividad 24 1. Se refiere a Juan. 2. Se refiere a quien. 3. Se refiere a la tarjeta. 4. Se refiere a Juan y las flores. 5. Se refiere a Juan y las flores. 6. Se refiere a Marcos y Ignacio, lo refiere a quien.
Saint Louis - SPAN - 110
Saint Louis - SPAN - 110
Spanish 210 Jon Wells7 Actividad 20 Parte A Gran parte de los habitantes de esta ciudad estn conscientes de que hay que proteger el medio ambiente y esperamos que cuando nuestros hijos tengan su propia familia, todava disfruten de agua limpia y aire puro.
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Actividad 27 Parte A En chile durante el gobierno de Allende, se empez un tipo de protesta llamada el cacerolazo. Espontneamente, algunas madres de familias salieron a loas calles con sus ollas, sartenes y cucharas y empezaron a hacer
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Actividad 18 Parte A: Querido pueblo: Maana son las elecciones y llega el momento de la decisin final. Si Uds. me eligen como lder del pas, pueden estar seguros de que vaya a hacer todo lo que promet durante la campana electoral. Ya s
Saint Louis - SPAN - 110
Espaol 210 Jon Wells Actividad 9: Querida Gabriela, Espero que ests bien. Toda la familia te echa de menos. S, finalmente se acabaron las elecciones. Es una pena que t no se hayas podido escuchar el discurso del nuevo presidente porque estuvo sensacional.
Saint Louis - SPAN - 110
Jon Wells Spanish 210 Escribir: 3 preguntas de las lecturas, Lo Saban? Primero Lectura 1. Por una minora, los hispanos tiene muchas personas. Cuntos hispanos tiene esta minora? a. Con unos 40 millones, es la minora ms grande. 2. Generalmente, de que parti
Saint Louis - SPAN - 110
Jon Wells Spanish 210 Actividad 4 Parte A Marta: Me sorprende que nuestros jefes no le den un aumento de sueldo a Carlos el mes que viene. Ernesto: Que dices? Cmo lo sabes? Marta: Me cont nuestra jefa. Es una lstima que l no recibas aumento como nuestros.
Saint Louis - SPAN - 110
Jon Wells Espaol 210 Actividad 12 1. Haga una dieta estricta. 2. No coma huevos. 3. No coman en restaurantes. 4. Hagan ejercicio tres veces por semana. 5. Salgan a caminar juntos. 6. Evite la carne. 7. Venga a verme dentro de tres meses. 8. Se haga otro e
Saint Louis - SPAN - 110
Jon WellsSpanish 210Actividad 8 Parte A Naci en Nuevo Mxico en 1930, y cuando dej la casa de sus padres, se mud con su madre, dos hermanos y su abuelo a Stockton, California, donde tena parientes. Puesto que su madre tena un restaurante y un hotel, poda
Saint Louis - SPAN - 110
Cultural Event Alex Monetti Spanish 210Por mi evento cultural hispano, yo asist a una pelcula en Pruellage Hall. La pelcula se llama, No eres t, soy yo y fue una comedia. Pero, no me gusta esta pelcula. Es la cuenta de un hombre se llama Javier y sus ave
Saint Louis - SPAN - 110
Alex Monetti Spanish 210Composicin 2 Yo quisiera decir que cuando trabajo en esta empresa, no estoy satisfecho con las condiciones del empleo. Si la situacin no cambia inmediatamente, es mi intencin buscar un empleo nuevo. Primero, es un problema que los
Saint Louis - SPAN - 110
Spanish 210 Global Villa (Plaza Mayor) Event Alex Monetti Como agua para chocolateYo no pude a asistir el evento actual, pero yo mira la pelcula solamente. Por el mayor parte de la pelcula, yo tuve un poco de dificultad con comprensin. Generalmente, yo n
Saint Louis - SPAN - 110
Spanish 210 Alex Monetti Actividad 24 1. Se refiere a Juan 2. Le refiere a quien 3. La refiere a tarjeta 4. Te refiere a Juan y las refiere a flores. 5. Me refiere a Juan y las refiere a flores. 6. Nos refiere a Ignacio y Marcos, lo refiere a quien.
Saint Louis - SPAN - 110
Spanish 210 Alex Monetti Actividad 10 Parte A 1. No, gracias. No necesito ninguna bolsa. Traje tres de mi casa para toda la compra. a. Bien. 2. Hay algo que podamos hacer para detener la desforestacin? Mira este lugar! a. Si, es terrible, pero no s qu se
Saint Louis - SPAN - 110
Spanish 210 Alex Monetti Actividad 7 1. Yo desperdicio muchas cosas, por ejemplo: comida, botellas de plastic. a. Si, yo escribo en solo un lado de papel. b. Si, yo tambin dejo los luces encendias. c. No, pero por que necesito? Yo detesto el medio ambient
Saint Louis - SPAN - 110
#Owner#O#w#n#e#r# # (# #/#
Saint Louis - SPAN - 110
Spanish 210 Alex Monetti Actividad 27 Parte A: En Chile durante el gobierno de Allende, se empez un tipo de protesta llamada el cacerolazo. Espontneamente, algunas madres de familias salieron a las calles con sus ollas, sartenes y cucharas y empezaron a h
Saint Louis - SPAN - 110
Spanish 210 Test 1 Review Chapters 1,3,5II. Vocabulario (142-143) Verbos para expresar influencia Aconsejar Esperar Exigir Insistir en Pedir Preferir Proponer Querer Recomendar Rogar Sugerir Suplicar to want to recommend to beg to suggest to implore to a
Saint Louis - SPAN - 110
Alex Monetti Spanish 210 Actividad 24 Parte A 1. Pongan los manos en la mesa. 2. Pongan la mano que no usas debajo de la mesa. 3. Empujen los frijoles con el cuchillo. 4. No apoyen los codos en la mesa. 5. Dejen el cuchillo y tomen el tenedor con la otra
Saint Louis - SPAN - 110
Spanish 210 Alex Monetti Actividad 12 1. Haya una dieta estricta. 2. No coma huevos. 3. No coman en restaurantes. 4. Hagan ejercicio tres veces a semana. 5. Salgan a caminar juntos. 6. Eviten la carne. 7. Vengan a verme dentro de tres meses. 8. Se haga ot
Saint Louis - SPAN - 110
Alex Monetti Spanish 210 Actividad 8 Parte A Nac en Nuevo Mxico en 1930, y cuando dej la casa de sus padres, se mud con su madre, dos hermanos y su abuelo a Stockton, California, donde tena parientes. Puesto que su madre tena un restaurante y un hotel, po
Saint Louis - SPAN - 110
Alex Monetti Spanish 210 5, 7, 28 1. 2. 3. 4. 5. 6. 7. 8. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 5 Rosa dorma cuando llam Estaban. Carlos se afeitaba cuando llam Estaban. Antonioa miraba cuand
Boise State - PSYCH - 101
General PsychologyDr. Terry R. Hartley terryhartley@boisestate.edu E620Office hours: 10:40-11:30amBlackboard http:/blackboard.boisestate.edu Click the login button Username (student ID) Password (student ID) or old password Login (your page along with
Boise State - PSYCH - 101
How Do Psychologists Develop New Knowledge?Psychologists, like researchers in all other sciences, use the scientific method to test their ideas empiricallyHow Do Psychologists Develop New Knowledge?Psychology disputes unfounded claims from pseudoscienc
Lake Erie College of Osteopathic Medicine - WRIT - 1
4.TheimpactMcMurphyhadtowardsthegroupwashewastheheadleaderofthe group.Hewastheoneeveryonelistenstoandsupported.Theyknewhedidnthaveany signsofmentalillnesssohewasthebrainsofthegroup.Hispresencewasathreatto Hatchetbecausehewasntinsaneatallandsheknewhewascap
Lake Erie College of Osteopathic Medicine - WRIT - 1
le franais 2 _ Ma voiture idaleJe mappelle7. Comment sappelle la voiture? 8. La voiture est de quelle couleur? 9. La voiture a combine de roues? 10. La voiture a combine de portieres? 11. La voiture se sert de quelle forme dnrgie? 12. La voiture cote co
Lake Erie College of Osteopathic Medicine - WRIT - 1
For many reasons now people has express themselves by wearing unique type of clothing that fits them. They started to want to stand out from everyone else by changing their clothing and some extreme changes very popular and were followed by more people. I