Author Archives: Juan Pablo Barberena

#TC1017 Project Update 2

We managed to print the history, the info (like instructions, but they’re not complete yet!) and to reset the board. We thought this (resetting the board) would be harder, but we only needed to call the PopulateBoard function again. Also, we modified the board to include vertical and horizontal dividers, making it easier to identify the grids. We’re only a few steps from completing it!

#TC1017 #mastery28: Reading and writing files

So, I created another PDF tutorial. This time, I explained how to open files, read them, write them and close them. This is really useful for many purposes when you need to manipulate external information. I got help from the text book, my previous quizzes and WSQs, and of course, from Ken. Here’s the link:

https://drive.google.com/open?id=0B7w3BFfqL9oQNUpfNjhqakdkQ2c&authuser=0

Hope you find it useful and helpful!

#TC1017 #mastery24: Arrays

Hey! This is one of the last masteries tutorials for the course. This time, I explained Arrays. I haven’t practiced much with this topic, so I consulted this page for more info (http://www.cplusplus.com/doc/tutorial/arrays/). Besides, I looked at Eduardo Tostado’s mastery tutorial (thanks a lot!).  So, here’s the link to the PDF:

https://drive.google.com/open?id=0B7w3BFfqL9oQakstc25EajJ2MW8&authuser=0

#TC1017 Project Update

Hey! So, we didn’t remember to create the blog posts, so there weren’t any updates. So, this is the first one!! We already created the functions to write, erase, check row, check column and check grid. Also, we created a validated user input (not allowing numbers, rows or columns lower than 1 or higher than 9). Also, we started creating the function for colors, but we haven’t implemented it yet… finally, we also subsituted every space between numbers with a |, so it looks a bit more like a divided square. So far it’s looking good, and we hope to finish it by tomorrow or by Tuesday! Anyways, here’s the link to the Github, and a screenshot of how it looks:

https://github.com/kenwbauer/JuanPabloSquared/blob/master/sudoku.cpp

PS: We want to thank Eduardo Tostado and Juan Abdiel because we looked at their code in order to seek guidance in the check grid function. We were doing only one loop, therefore it wasn’t working.

#TC1017 #wsq17: SciLab

So, finally!! This is the last WSQ of the course, and I finished it! It was relatively easy… I just downloaded SciLab, read the PDF tutorial, and managed to do some math in the console. I think this will be a very helpful tool for every student (specially an engineering student). It does a lot of things I don’t know about (such as matrixes, differential eqautions among others), but I know that, when I learn those topics, SciLab will help me by making things easier. The only problem I notice is that there are too many functions, and I think it’s a little complicated to remember every rule for writing. But with practice and experience, I’m pretty sure everyone can get the hang of it. Here’s a picture of what I did in SciLab:

I plotted a function;

I experimented with functions, and variables. Also, I compared two variables to see what happens.

#TC1017 #wsq16: Cars

Hey everyone! I just finished WSQ16! I had some trouble with the variables, beacuse I was converting a string to a double, but then I was converting it back to a string! Thankfully, Ken helped me figure this out. Also, I want to thank Eduardo Tostado, becasue I took a look at his code; it really helped me to figure things out. Anyways, here’s the link to my code:

https://github.com/JPBarberena/Codes/blob/master/wsq16.cpp

#TC1017 #quiz11: Bananas!

So, I finished this quiz already. With question 1 I didn’t have problems at all. But with Question 2, I had some trouble using the “find” function. Besides the page Ken provided, I used this one to guide me: http://stackoverflow.com/questions/2340281/check-if-a-string-contains-a-string-in-c

Here are the codes:

Q1=https://github.com/JPBarberena/Codes/blob/master/question01.cpp

Q2=https://github.com/JPBarberena/Codes/blob/master/question02.cpp

 

#TC1017 #quiz10: Wish Lists

Hey, so I finished this Quiz. The first question was very easy; i just had a little problem when I passed the vector size as a parameter instead of the vector itself.

On the other hand, question 2 was harder. I forgot to initialize my total to 0, so I got a very different result from what I should have obtained. Fortunately, Ken was around to help me.

Here are the links:

Question 1: https://github.com/JPBarberena/Codes/blob/master/question1.cpp

Question 2: https://github.com/JPBarberena/Codes/blob/master/question2.cpp

Enjoy!

#TC1017 #ECOS: Bonus Quiz

All done!!

#TC1017 #mastery23: Vectors

I created another PDF tutorial for you to learn about vectors: what they are, how are they used, etc. Hope you like it!

https://drive.google.com/open?id=0B7w3BFfqL9oQTDNxaXNoNm5IQkk&authuser=0