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
Public: it is visible to the world. A class, method, constructor, interface etc declared public can be accessed from any other class.
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: 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: 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
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.
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.
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 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.
“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
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.
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…
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.