--Originally published at TC 1017
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLycEdocUxPRTRwclk/view?usp=sharing
--Originally published at TC 1017
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLycEdocUxPRTRwclk/view?usp=sharing
--Originally published at TC 1017
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLyamR2SjVRcGRwV1U/view?usp=sharing
--Originally published at TC 1017
These are my codes for the 2nd partial exam.
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLydGotMWdlclJMZlU/view?usp=sharing
--Originally published at TC 1017
At the beginning of this class I thought I wouldn’t learn anything, but as time goes I get each time surer about this way of teaching-learning, works.
This has been a really challenging class, because even when you think the activities will be easy, you realize it isn’t. There are always challenges, big or small ones but there always are.
I’ve been satisfied about this course in general and about what I’ve learned. I’m sure I’m doing the best I can and I’m doing well.
--Originally published at TC 1017
Mid semester review.
We were supposed to learn all of these topics (or more) during these weeks:
This was about comments in blogs, its just pretty simple. First you go to the publication and the “comments'” are in the bottom.
NEVER write your whole code left wing aligned. You need to categorize everything so your code will look nice and you’ll identify the mistakes so much easier.
The most common ones are:
int -Integer values
long -Big numbers
string -String characters
char -Single character
double -Bigger space to save numbers
bool -Booleans
const -Constant values
“cout” is used to print a sentence giving instructions to the user. You will always use it this way:
cout<< “TEXT” << endl;
cout<< “TEXT” << ‘\n’ ;
You better make sure of never put “Cout” with a capital letter because it won’t work.
In this case you will always use “cin”, but FIRST, declare the variable (int, float, etc).
Here you use the specific function and write the variables you will use:
int sum (int X, int Y)
{
return (X+Y);
}
It’s like a small piece of code, so you’ll use return at the end.
Visit my post about Functions and watch my example: https://wordpress.com/post/marielvvblog.wordpress.com/137
You use the “cout” and declare the value you do want this way:
sum (X,Y)
Why? Because you’ve already created the function so you just specify which variables you’ll use and the order.
You always have to put “#include” before any library.
<iostream> This is the principal. You can’t run your code without this library.
<cmath> Trigonometric functions .
<string> Using this one you can include
Continue reading "MSR" --Originally published at TC 1017
Every time you don’t know how to solve a problem to code it, you can get information from reliable sources, just like:
C++ book: http://www.greenteapress.com/thinkcpp/thinkCScpp.pdf
Ken’s channel on YouTube: https://www.youtube.com/user/kenbauer/videos
Or maybe ask to a friend! There are always at least one way to get your doubt away.
--Originally published at TC 1017
ON TO FUNCTIONS!
At the beginning I didn’t understand what I had to do, but thanks to other classmates’ posts I got it.
It was just pretty easy to program, and so much similar to a previous one.
I learned that I had to declare the functions out of the main code. We have to use the “return” because the functions (sum, rest, dev, pro, and res) are kind of little pieces of code by itself, so they each one of them have to return a value.
Click to view slideshow.You can go to my code at: https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLyRExGWk1TWl9hdE0/view?usp=sharing
--Originally published at TC 1017
Factorial Calculator!
This was a really challenging code. I had to investigate new libraries, types of data.
Thanks to this WSQ I learned that “string” library is ONLY for programming in Windows because for a strange reason, Mac includes it.
By the way, string library is for a string of characters, in this case I used it to enable “yes” and “no” answers.
“double” is for a large space for numbers, “long” makes it even bigger.
Click to view slideshow.You can see my code in:
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLyMkpZcXNLZm9wWjQ/view?usp=sharing
--Originally published at TC 1017
¡Sum of numbers! this one was a really hard problem to code for me. I tried over and over again to solve this but it din’t work even when it run so I ended up asked for help so when my friend explained me I realized my mistake was because of the syntax…
https://drive.google.com/a/itesm.mx/file/d/0B0piRrApgTLyTFMwUjZIZUJUWXM/view?usp=sharing
--Originally published at TC 1017
This was a really hard activity for me, I had to search on internet pages and ask to friends who knew about programming.
Click to view slideshow.