MASTERY TOPICS

--Originally published at estefilangarica.wordpress.com

  • Use of comments   (MASTERY 01)

https://estefilangarica.wordpress.com/2017/02/12/lists/

  • C++ Good Style coding conventions (MASTERY 02)

https://estefilangarica.wordpress.com/2017/03/10/quiz-09-distance/

  • Basic types and their use (MASTERY 03)

https://estefilangarica.wordpress.com/2017/02/14/quiz-5-programming-exercises/

  • Basic output (print) (MASTERY 04)

https://estefilangarica.wordpress.com/2017/01/13/blog-post-title/

  • Basic user input (text based) (MASTERY 05)

https://estefilangarica.wordpress.com/2017/01/13/featured-content-3/

  • Calling functions (MASTERY 06)

https://estefilangarica.wordpress.com/2017/02/12/factorial-calculator/

  • Creating functions  (MASTERY 07)

https://estefilangarica.wordpress.com/2017/02/12/factorial-calculator/

  • Importing and using libraries (MASTERY 08)

https://estefilangarica.wordpress.com/2017/01/31/functions-quiz-3/

  • Creating and using your own libraries (program with multiple files) (MASTERY 09)
  • Use of the conditional “if” (MASTERY 10)

https://estefilangarica.wordpress.com/2017/01/13/featured-content/

  • Use of “else” with a conditional if (MASTERY 11)

https://estefilangarica.wordpress.com/2017/01/13/featured-content/

  • Nesting of conditional statements (ifs inside ifs) (MASTERY 12)

https://estefilangarica.wordpress.com/2017/01/13/featured-content-2/

  • Use of loops with “while” and “do while” (MASTERY 13)

https://estefilangarica.wordpress.com/2017/01/13/featured-content/

  • Use of loops with “for” (MASTERY 14)

https://estefilangarica.wordpress.com/2017/03/07/quiz-week-8/

  • Nested loops (MASTERY 15)

https://estefilangarica.wordpress.com/2017/03/07/quiz-week-8/

  • Use of recursion for repetitive algorithms

https://estefilangarica.wordpress.com/2017/04/18/estimating-e/

  • When to use what type of repetition in a program

https://estefilangarica.wordpress.com/2017/04/07/babylonian-method/

  • Creation and use of Arrays/Vectors in C++

https://estefilangarica.wordpress.com/2017/02/12/lists/

  • Creation and use of strings

https://estefilangarica.wordpress.com/2017/03/07/multipart-data-and-files/

  • Validated user input (ensure correct/expected data entry)

https://estefilangarica.wordpress.com/2017/02/12/factorial-calculator/

  • Reading and writing of text files
  • Matrixes and Vectors

https://estefilangarica.wordpress.com/2017/02/12/lists/

  • Data analysis with tools (to be determined which tool, most likely SciLab)
  • Visualization of data with tools

Final Project

--Originally published at estefilangarica.wordpress.com

In this project I am working with Karen Chacón and Angel Gabriel. They both study the same as me: Biomedical engineering.

Our first project was to elaborate a clock, but we decide it to change it because of the time we had left. Our new project is more simple, but still very interesting. It consists of a protoboard that has leds, a microphone and multiple cables.

In the protoboard we created a very simple circuit with the different elements mentioned before (leds, microphone and multiple cables). For this project we used the platform arduino, which is going to read our code and finally light up the leds.

HOW DOES IT WORK?

The function of the microphone is to capture the music to be played. Once the microphone captures the music the leds are going to light up to the rhythm of the music.

You can see more of this project in my classmate´s blog.


SciLab

--Originally published at estefilangarica.wordpress.com

Thirteenth Activity

The instruction Ken gave us was:

Scilab is a great tool that I believe you will find very useful during the rest of your degree programs and beyond. The motivation here is simply to introduce you to the tool. Scilab is open source software and runs on Linux, Mac and Windows

Download the latest version at http://www.scilab.org/download/latest

Please download and “play with” SciLab.

Please follow the tutorial available on their website under Resources->Documentation. Here is the direct link to the tutorial http://www.scilab.org/content/download/849/7901/file/Scilab_beginners.pdf

Page for SciLab to download at https://www.scilab.org

Do NOT panic, there are 33 pages but it will not take you too long to go through it.


Estimating e

--Originally published at estefilangarica.wordpress.com

Twelfth Activity

The instruction Ken gave us was:

In this assignment you will estimate the mathematical constant e. You should create a function called calculuate_e which receives one parameter called precision that should specify the number of decimal points of accuracy.

You will want to use the infinite series to calculate the value, stopping when the accuracy is reached (previous and current calculation are the same at the specified accuracy).


Go Bananas

--Originally published at estefilangarica.wordpress.com

Eleventh Activity

The instruction Ken gave us was:

Write a function called find_bananas which receives a single parameter called filename (a string) and returns a positive integer which is the number of times the word (string) “banana”  (or “BANANA” ) is found in the file. The banana can be any case (‘BaNana’ or ‘BANANA’ or ‘banana’, etc) and they can be “stuck together” like “banAnaBANANA” (that counts as two). Create your own test file (plain text) to check your work.


Babylonian Method

--Originally published at estefilangarica.wordpress.com

Tenth Acitvity

The assignment Ken gave us was the following:

In this assignment you will write a function to calculate the square root of a number using the Babylonian method.

The function should receive a number and return floating point number. Obviously you should test your function, so create a main program that asks the user a value, calculates the square root and displays that.


Multipart Data and Files

--Originally published at estefilangarica.wordpress.com

The assignment Ken gave us was:

So for this assignment I would like to see you create a function that receives as parameter the name of a file (this would be a string value like data.txt) and your function counts the number of lines and the number of characters in the file which it returns as a single value (but with two values). You will want to look at how to create/define and return a struct value from a function and how to open and read text files line by line.


Quiz Week 8

--Originally published at estefilangarica.wordpress.com

The instructions Ken gave us were:

Write a function that calculates returns the “nth” Fibonacci number where we define a function over the Fibonacci numbers mapping the naturals (starting with zero) to the Fibonacci series. So fibonacci(0) returns 0, fibonacci(1) returns 1, fibonacci(2) returns 1 and so on. Note that we are using the modern definition where the sequence starts with zero. You should try to implement this with two solutions: one with a loop and one with recursion. Which do you think is “better”, which looks more “elegant”, which is more “efficient”?