Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152
ferny580’s Articles at TC101 Fall 2015, Page 4
Introduction to Programming Python and C++

Author Archives: ferny580

mastery

mastery

mastery

Quiz 4

Pick a number

#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int a; srand (time (NULL)); int x = rand () % 101; cout << “te doy un número del 0 al 100 adivinalo” << endl; cin >> a; while (a!=x) { if (a<x) { cout << “muy alto, intentalo de nuevo” << endl;…

sum of numbers

#include <iostream> #include <cstdlib> using namespace std; int main () { int a,b,c, s=0; cout<< “Rango” << endl; cout<< “Número a” << endl; cin >> a; cout << “segundo número” << endl; cin>>b; c=b-a+1; while (a<=b) { s=s+a; a++; } cout <<“La suma es de: ” << s << endl; }

Fun with numbers

#include <iostream> using namespace std; int main() { int a,b,c,d,f,g; cout << “Dime número A” << endl; cin >> a; cout << “Dime número B” << endl; cin >> b; c = a + b; d = a * b; f = a/b; g = a%b; cout << “El resultado son los siguientes” << endl…

Temperature

#include <iostream> using namespace std; int main () { int a,c,b,d; cout << “Coloca grados” << endl; cin >> a; c= 5*(a-32)/9; if (c>100) { cout << “gaseoso” <<endl; } else if (c<0) { cout << “solido”; } else { cout <<“líquido”; return 0; } }

Cygwin and atom install.

I installed the cygwin, i have some problems to install because it doesn´t works so I watch this video to install it.

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).