This image is similar to an array. It groups things. (I am tired, sorry). Here is WSQ 10
]]>Here is the link to my code: https://github.com/cortesivan96/WSQs/blob/master/List%20(WSQ10)
]]>
para este WSQ recomiendo accerder a lynda y ver el tutorial de arrys.
]]>Here is a image of the program executed:
Code on GitHub:
https://github.com/tonygarciavz/A01630861-TC1017/blob/master/WSQ10
]]>Github code: https://github.com/luisduartepalacios/WSQ10/blob/master/WSQ10.cpp
]]>Using lists with arrays and vectors is quite easy, but here we need to combine that knowledge with our knowledge of functions and mathematics… oh and C++. Almost missed that one. Doing it with arrays was easy, so I wanted to do it with vectors and asked for help from Montse Bernal, whose code structure I used to make the program work. It was very useful to use the numeric and cmath libraries for this WSQ.
Without further ado, here’s the link for WSQ 10.
]]>This video (https://www.youtube.com/watch?v=SGyutdso6_c) helped me a lot to understand about vectors.
Here is my code: https://github.com/Andreandc/TC1017/blob/master/WSQ10
]]>//WSQ10 List
#include <iostream>
using namespace std;
int main(){
cout<<“¿Cuantos valores quieres en la lista?”<<endl;
int TAM;
cin>>TAM;
cout<<“Dame “<< TAM <<“valores “<<endl;
float lista[TAM];
int i;
int x;
float d=0;
float s=0;
for (i=0; i<TAM; i++){
cin>> lista[i];
s=s+lista[i];
}
cout<<“El total es “<<s<<endl;
float p =s/TAM;
cout << “El promedio es “<<p<<endl;
for (x=0;x<TAM;x++){
d=d+(lista[x]-p)*(lista[x]-p);
}
cout<<“La desviación estandard es “<<d/TAM<<endl;
return 0;}
And here’s the test of the code:
]]>