Quiz Week 10

--Originally published at My TC1017 programming class

First of all, I want to apologize for not having done this one before. My excuse (though probably not acceptable) is that I did not know how to do it.

Let me explain: I didn’t want to just Google the answer. I had just finished Yo Soy 196, and had not started with File Reading, and I knew the answers were on that practice.

Last Tuesday, I actually finished doing it, and I also wanted to go a little further the practice. While doing so, I came across some tools that would definetely help me solve this quiz. So, here it is.

Quiz Week 10

I wrote a little about how I did what I did, though I couldn’t manage for the program to ask the user for the sentence and the character (Will have to research later).

You may want to reference WSQ09 directly for any doubts.


File Reading

--Originally published at My TC1017 programming class

This program contains information on how to create a programm tha reads a file, and tells you the number of lines and characters in the file.

I wanted to go a little further on the program, so I made it that the user can input the name of the file they want to open.

As always, I will leave the CPP file, and a few refrences.

Google Drive

Refrences:


Yo Soy 196

--Originally published at My TC1017 programming class

First of all, I should say that one is one heck of a programm. Basically, what the program is supposed to do, is for the user to input a set of numbers. Then, from those numbers, you will get how many palindromes, how many non-Lycherels, and how many Lycherel numbers you have.

There are different ways of doing so. In my case (as you will see), I used some boolean operators in order to find what they were.

In addition, in order to run the program properly, you will need a library to use BigIntegers, which allow for the use of HUGE numbers. There is a Tutorial made by Mr. Ken on how to do it. I will also be includeing the link.

Lastly, it will be important for you to install (On the Windows 10 Linux Shell) the program MAKE. The cpp file will have the instructions for it.

Google Drive File

References

 


Final project for TC1017

--Originally published at My TC1017 programming class

A Brief Explanation

For the final project, I teamed up with Valeria Cruz.

We want to create a glove (using an Arduino board as the processing unit) than can read sign language and then translate it to audio, so mute people can communicate more easily with others.

The project is a work Valeria had done before in secondary school. She already has the program for reading the sign language on the glove. What we are trying to do, more than making the code for the signal reading, is to create a code that will take those inputs, turn them into words, and then convert them into audio that can be listened.

Below, there is rough schedule (Made by Valeria).

 

SCHEDULE

Week from the 23rd to the 29th of October

  • Research and try to learn as much as possible on this type of language
  • Search and buy the materials that we’re going to need

Week from the October 30th to November 5th 

  • Begin writing our code
  • Start making the circuit and connecting the sensors, etc.

Week from the 6th to the 12th of November

  • Test our written part code and make corrections
  • Begin the ‘turn to audio’ part

Week from the 13th to the 17th of November

  • Finish our code and test it several times

November 21st

  • Hand in the final project (If finished).

 

DONE! 


Lists

--Originally published at My TC1017 programming class

Here is the CPP file on WSQ07 about lists. There are a few notations that you might find useful. As always, I will leave the link to the file on Google Drive.

Drive file: https://drive.google.com/open?id=0B8vzJAbVok1MSUlKdVlZZEx5ZEk

Other useful links: 

 


Sum of numbers

--Originally published at My TC1017 programming class

This programm makes the sumatory of all the number in a user defined range.

In order to make it happpen, a used a For loop, since it allowed for the conditions needed to be considered.

I will leave the Drive link, and there are some notations on the file itself. I will leave a link on how to use the FOR loop.

Drive: https://drive.google.com/open?id=0B8vzJAbVok1MZDJzSnhYT216X0U

Foor Loop: https://www.tutorialspoint.com/cplusplus/cpp_for_loop.htm


Random number generator

--Originally published at My TC1017 programming class

Here is a random number generator. There are some annotations on the program itself, and as always, I will put the link to the Google Drive document.

 

I personally had some trouble understanding the srand seed. There is a small description on the cpp file that explains a little bit on how it works.

https://drive.google.com/open?id=0B8vzJAbVok1MLUttZERaTFhtXzQ

Random number generator: http://www.cplusplus.com/reference/cstdlib/rand/

Seed for random number:

http://www.cplusplus.com/reference/cstdlib/srand/


Temperature

--Originally published at My TC1017 programming class

Here is the program I made for the temperature calculator. The cpp file has some notes on it, since I had some trouble with the conditionals and conditions.

I will leave the links to the resources I used. Hope it helps. As always, I’ll leave the link to the Drive document.

CPP file:  https://drive.google.com/open?id=0B8vzJAbVok1MMk1rWkdpcW1CX28

Resoruces

Basic Inputs/Outputshttp://www.cplusplus.com/doc/tutorial/basic_io/

Statements and flow control: http://www.cplusplus.com/doc/tutorial/control/

Operators: http://www.cplusplus.com/doc/tutorial/operators/

 

 

 

 


css.php