Calculating E

--Originally published at My TC1017 programming class

So, this is a program that calculates the value of e (Euler’s number) with the precision the user wants. As well, I added so that the user can also tell the program how many decimals he wants to be shown on the answer.

As usual, I will leave the link to the cpp file on Google Drive. This time, I didn’t use external sources besided Mr. Ken’s help and the web page giving the formula on how to calculate it. The link to the formula is included on the file.

Here is the file.

Go Bananas – WSQ11

--Originally published at Programming in C++

For this program we were supose tu search for the word “banana” in a file, even if the word is written in upper or lower cases.

This was a very similar to the WSQ10. First we need to make a file, in this case, and for obviusly reasosn, I call it “banana.txt”. We have to open the file, then, to ingonre when the word is written u¡in upper or lower, we can change the hole file to lower cases.





--Originally published at Future Queen of C++

I created my first code on GitHub in the final week of the semester! But I did it, it wasn’t hard, it was just laziness. And the thing that made me upload this into the web was that I needed to take more than one photo because of the size of the program, really.

But here it is

I used some lines of WSQ09, I think, that’s the correct number I don’t recae really well.

And here is a pie of how it works and what the file was.Screen Shot 2017-11-14 at 6.02.40 PM


Hearted Bananas <3

--Originally published at Regular Blog



El propósito de este programa es contar el número de veces que se repite la palabra “banana” en un archivo de texto, de cualquier forma que esté escrita (alternando mayúsculas y minúsculas), como “BanAna” o “BAnanA” o “banANa”…

Para esto tuvimos que invocar un archivo de texto, como en el #WSQ09, pero además de eso, fue necesario abrir una nueva biblioteca: . Como se ve en el código…!!!

Go Bananas – (WSQ11)

--Originally published at TC1017 (Python3) – Titel der Website

What was to do in this WSQ:

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.

My Banana File:

WSQ11 - TextDatei.PNG

My Sourcecode:

WSQ11 - SourceCode.PNG

The result:

WSQ11 - Ergebnis.PNG

Homework 11

--Originally published at Blog de Esteban

Este programa fue el segundo más difícil del curso porque no sabia muy bien como hacerlo, mi problema era encontrar las palabras en el texto.

Solucioné este problema leyendo el blog de otros alumnos que ya lo habían hecho y comprendí bien como funcionaba yendo a la oficina de ken.

Mi problema era el siguiente, no sabia que valor arrojaba este código:

int findbanana = str.find(“banana”);

Ya después comprendí que lo que hace “find” es buscar en el string la palabra que ponemos y te devuelve el numero de carácter donde se encuentra.

aquí una foto de mi código:

Hice mucha investigación para este programa y lo que más me sirvió fue el manual del curso que lo dejo a continuación, igualmente te dejo un video que puede servir.

También te dejo el link de descarga de mi programa en github!, es la primera vez que subo algo a esta plataforma:

y por ultimo un video que te puede servir para este WSQ:

Go Bananas

--Originally published at My TC1017 programming class

This is a program that takes a file that has the word ‘Banana’ written on it in several styles (Upper case mixed with lower case, everything in upper case, etc.)

Most of the informatin on the tools used is in the file, because I lost the links to the information. Sorry :/

As always, I will leave the link to the Google Drive File.

Bananas CPP File


Go Bananas

--Originally published at Valeria CT

For this assignment I created the function find_banana(), which received a string, like Ken asked. In the main I opened the .txt file, converted everything to lower case and then called find_banana(). I used nested conditionals and nested loops. Here’s my code with everything explained, feel free to ask me if you have questions!