#WSQ06-Greatest Common Divisor

--Originally published at diegotc2016

Doing this WSQ was more or less easy for me, the only difficult part was that I didn’t remember how to do the greatest common divisor of two numbers, so I searched in youtube for an example. The other difficult part was the java syntax, I’ve programmed in python for a year and learning java is becoming a challenge for me but I’m getting better

Here’s the code In Eclipse:

#WSQ06-Greatest Common Divisor

#WSQ06-Greatest Common Divisor

Here’s the code in GitHub:

*****

Here’s the video:


#WSQ06-Greatest Common Divisor

What are visibility modifiers, their purpose and use in practice?

--Originally published at diegotc2016

Public

Public: it is visible to the world. A class, method, constructor, interface etc declared public can be accessed from any other class.

Private

Private: it is visible to the class only. Methods, Variables and Constructors that are declared private can only be accessed within the declared class itself.

No Modifier

No Modifier: it is the default and it is visible to the package. A variable or method declared without any access control modifier is available to any other class in the same package.

Protected

Protected: visible to the package and all the subclases. Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members’ class

I got this out of:

https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html

What are visibility modifiers, their purpose and use in practice?


What are visibility modifiers, their purpose and use in practice?

#WSQ08

--Originally published at Jsph's Blog

#WSQ08

 

Once again, last semester I did this WSQ in python and it was very tricky, today I saw the work of my classmates to achive this one principaly Jorge Padilla’s Blog. Honestly I use his code to practice and understand more about this wsq.

A Lychrel number is a natural number that cannot form a palindrome through the iterative process of repeatedly reversing its digits and adding the resulting numbers. This process is sometimes called the 196-algorithm, after the most famous number associated with the process.

A Reverse-and-add process produces the sum of a number and the number formed by reversing the order of its digits. For example, 56 + 65 = 121. As another example, 125 + 521 = 646.

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Allowances may be made for adjustments to capital letters, punctuation, and word dividers.

Here’s the code on my git but special thanks to Jorge for share his code.

https://github.com/JsphSalazar/POO/blob/master/WSQ08

Sources:

https://en.wikipedia.org/wiki/Palindrome

https://en.wikipedia.org/wiki/Lychrel_number

http://www.p196.org/ visit this awesome page.


#WSQ08

#WSQ07

--Originally published at Jsph's Blog

The Babylonians had an accurate and simple method for finding the square roots of numbers. This method is also known as Heron’s method, after the Greek mathematician who lived in the first century AD. Indian mathematicians also used a similar method as early as 800 BC. The Babylonians are credited with having first invented this square root method, possibly as early as 1900 BC.

The Babylonian method for finding square roots involves dividing and averaging, over and over, to obtain a more accurate solution with each repeat of the process.

Last semester I did this program in Python but now it’s very different and more complex. However, I saw some codes of my classmates and did some research to achieve this wsq. It was not difficult but you need to think clearly how to use this method.

#WSQ07

I use import javax.swing.JOptionPane;. This is a pane to ask an input to the user. This is located in the javax.swing library. The JOptionPane class allows you to have input boxes

I saw this video too:

and also I visited my new friend stackoverflow:

http://stackoverflow.com/questions/24092196/babylonian-algorithm-in-java

And the link of my code:

https://github.com/JsphSalazar/POO/blob/master/WSQ07


#WSQ07

#WSQ06

--Originally published at Jsph's Blog

Hey guys!

This was my first try using objects in Java and it was a little tricky.

I saw some post of my classmates and it’s codes to understand more about this but I got some trouble and I can’t run my program

Here’s the screenshot:

#WSQ06

So if one of you knows how to solve this problem, please help me.

Elige entre las etiquetas más utilizadas


#WSQ06

#WSQ04

--Originally published at Jsph's Blog

Hi guys!

Today I’m going to talk about #AbolishGrades

I saw this video and I really love it because compares the traditional way to teach and flipped learn way. In my opinion flipped learn is better for us as students because we can learn at our pace. We can choose the topics we want to learn and decide how much time we spend on it.

I think flippled learn should be implemented in all classes at the Tec.

#WSQ04


#WSQ04

#WSQ03

--Originally published at Jsph's Blog

I already watched this video…

and I can say this

“Object-oriented programming (OOP) is a programming language model organized around objects rather than “actions” and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data” (Rouse, M. 2008).

Using oriented programming is very useful if we want to create specific or complex programs because in Java we can create objects that the programmer can manipulate and how they relate to each other.

I think the most important is identify the main characteristics of object oriented programming:

Class definitions – Basic building blocks OOP and a single entity which has data and operations on data together

Objects – The instances of a class which are used in real functionality – its variables and operations

Abstraction – Specifying what to do but not how to do ; a flexible feature for having a overall view of an object’s functionality.

Encapsulation – Binding data and operations of data together in a single unit – A class adhere this feature

Inheritance and class hierarchy – Reusability and extension of existing classes

Polymorphism – Multiple definitions for a single name – functions with same name with different functionality; saves time in investing many function names Operator and Function overloading

Here’s the source: http://www.careerride.com/oops-characteristics.aspx

First of all we need to understand this concepts perfectly to be able to program with objects.


#WSQ03

#WSQ05-Project

--Originally published at diegotc2016

My team is conformed by:

  • Diego Alatorre
  • César Cortez
  • Manuel Nuño
  • Cesar García

Our project will be a game using Java will be kind of a maze. The principal character will start at a certain point of a house an he/she will have to find someone (his/her son/daughter/grandma we still do not have decided yet). Cesar García has already done a sketch for it.

Here’s the picture:

#WSQ05-Project
By Cesar García

#WSQ05-Project

#WSQ04-Flipped Learning/#AbolishGrades

--Originally published at diegotc2016

The video was about the differences between a traditional classroom and a flipped classroom. The differences between a flipped classroom and a traditional one are…

#WSQ04-Flipped Learning/#AbolishGrades

Flipped vs Traditional

I have had 4 classes that are flipped, 1 (Fundamentals of Programming) has worked, 2 (Computer Org & OOP) of them have worked for now and one didn’t worked at all (Physics). I think that one of the biggest disadvantages of the flipped learning is that if you don’t read at all outside the classroom you are not going to learn.


#WSQ04-Flipped Learning/#AbolishGrades