# Quiz week 14: Autoevaluation

--Originally published at Let&#039;s CODE

I have made my Autoevaluation for the class and this is the result. Autoevaluation – TC1017 Mastery – Sheet1 After a depp reflection, I realize that I need to learn how to use Scilab, make some recursions, and investigate what was the meaning of the las row of the document. I feel satisfied with my … Continue reading Quiz week 14: Autoevaluation

# Final project: Snake

--Originally published at Let&#039;s CODE

This is the explanation video of the program I made as my final project for Solving problems with programming.

# Homework 9: Multipart data and files

--Originally published at Let&#039;s CODE

In this asingment we are going to read a text file and count the number of both lines and characters present on the document. We need to use the libraries #include <iostream> and #include <fstream> to be able to use the functions that open and read text documents. This is my code. #include <iostream> #include … Continue reading Homework 9: Multipart data and files

# Homework 12: Estimating e

--Originally published at Let&#039;s CODE

This program will be capable of estimate the value of “Euler’s number” (e) and the user will give the accuracy expressed as a number of decimals. To calculate e, I declared three variables. One of them saves tha value of e, another counts each executation of the loop, and the last one (x), in each ocassion … Continue reading Homework 12: Estimating e

# Homework 11: Go Bananas

--Originally published at Let&#039;s CODE

Now we are going to make a program that can find the quantity of BANANAS present in a text file. The word “banana” can be writen in any way, that’s why I opted for converting all letter in the document to lower case. I set a vector called BANANA with a size of 6, where … Continue reading Homework 11: Go Bananas

# Homework 10: Babylonian Method

--Originally published at Let&#039;s CODE

This function will calculate a square root through the Babylonian Method. First of all, I would like to explain how the method works. You have to establish a first number that is “aproximate” to the real squareroot, doesn’t matter if that number is equal to one, because we are going to make some mathematical operations. … Continue reading Homework 10: Babylonian Method

# Quiz week 11: Partial #2 Review

--Originally published at Let&#039;s CODE

The teacher gave us a document with 10 problems to solve. This with the objective of practicing the topics that we have seen during the semester.   Exercise 1: Write a function that calculates the distance between two points in a coordinate plane. I used the Pythagoras theorem. #include <iostream> #include <math.h> using namespace std; … Continue reading Quiz week 11: Partial #2 Review

# Quiz Week 9: The distance between coordinates

--Originally published at Let&#039;s CODE

The task for today was only creating a function that could calculate the distance between two pair of coordinates on the cartesian coordinates plane that were given for the user. In the quiz was not necessary to create the entire program, but the function cause it was the only part required. To make this part … Continue reading Quiz Week 9: The distance between coordinates

# Quiz Week 8

--Originally published at Let&#039;s CODE

This class we were oredered to write a code that generates the Fibonacci series. I was a really challenging task, ’cause my logic didn’t adapted to the situation righly. Finally I used some loops, vectors and a function to make it work. This is what I wrote. #include <iostream> using namespace std; int fibonacci(int n) … Continue reading Quiz Week 8

# Homework 8: Yo soy 196

--Originally published at Let&#039;s CODE

We are going to calculate the quantity of Lychrel numbers (natural numbers that doesn’t convert on palindromes after a serie of aditions, for example, 196 is a Lychrel number), natural and made palindromes that are present in a range of integer numbers given by the user. If we want to convert a non-natural palindrome to … Continue reading Homework 8: Yo soy 196