Posted in Education, JRT Institute, Online Tricks, Programming

Computer Computations

Commonly operated machine particularly used for Trade, Education and Research is the simple definition of computer thought to me on my school days. Computers made our jobs easier to finish. We use it almost everywhere. We know that computers only understand binary numbers i.e., 0‘s and 1‘s. So, these computers are also called “Binary Computers”. Let us take a look on it and its further improvements.

Binary Computers

A binary code represents text, computer processor instructions, or other data using any two-symbol system, but often the binary number system‘s 0 and 1. The binary code assigns a pattern of binary digits (bits) to each character, instruction.

binary

The American Standard Code for Information Interchange (ASCII),uses a 7-bit binary code to represent text and other characters within computers, communications equipment, and other devices. Each letter or symbol is assigned a number from 0 to 127.

7 bit ascii.PNG

Advantages

  • This can be easily represented by electronic devices and for which calculation can be carried out using reasonably simple active electronics.
  • Binary data is also reasonable simple to store – again only needing a two state storage (on/off – 1/0).

Disadvantages

  • Difficult to read.
  • takes a lot of digits to represent any reasonable number.
  • rounding off numbers is the main problem.

Ternary Computers

ternary computer (also called trinary computer) is a computer that uses ternary logic (three possible values) instead of the more common binary logic (two possible values) in its calculations.

ternary

Ternary computing is commonly implemented in terms of balanced ternary, which uses the three digits −1, 0, and +1. The negative value of any balanced ternary digit can be obtained by replacing every + with a − and vice versa. It is easy to subtract a number by inverting the + and − digits and then using normal addition. Balanced ternary can express negative values as easily as positive ones, without the need for a leading negative sign as with decimal numbers. These advantages make some calculations more efficient in ternary than binary. Considering that digit signs are mandatory, and non zero digits are magnitude 1 only, notation using only zero and signs alone is more concise than when 1’s are used.

images (11)

With the advent of mass-produced binary components for computers, ternary computers have diminished in significance. The Josephson junction has been proposed as a balanced ternary memory cell, using circulating superconducting currents, either clockwise, counterclockwise, or off. The advantages of the proposed memory circuit are capability of high speed computation, low power consumption and very simple construction with fewer elements due to the ternary operation. In 2009, a quantum computer was proposed which uses a quantum ternary state, a qutrit, rather than the typical qubit. When the number of basic states of quantum element is d, it is called qudit.

qubit

Advantages

  • The advantages of using ternary logic is to do our computing would be that we can hold the same amount of information in less memory, and we can process more information at once.

Disadvantages

  • Ternary computing relies on three-state “trits” rather than two-state bits.

Quaternary Computers

Quaternary is the base-4 numeral system. It uses the digits 0, 1, 2 and 3 to represent any real number. Four is the largest number within the subitizing range and one of two numbers that is both a square and a highly composite number (the other being 36), making quaternary a convenient choice for a base at this scale. Despite being twice as large, its radix economy is equal to that of binary. However, it fares no better in the localization of prime numbers.

quaternary

Quantum computers are still binary – “quantum binary”, they can have arbitrary superpositions of 0 and 1. 0 and 1 are special cases of a superposition.

 

Catch our blog with more ideas and programming tricks. You can see them in our categories list. Catch some of the cheat sheets of programming languages like Python, Java, MySql and some other cools tricks.

From,

Maria Irudaya Regilan J

Posted in Computer Science, Education

Skype’s Real-Time Code Editor For Coding Interviews

Skype, the most popular video calling platform, recently launched a new preview feature at Skype.com that makes the tiresome task of switching between the interviewer’s call and the code editor more easy and allows to comfortably conduct coding and technical interviews.

The new feature will allow the user to host a video call on top of a code editor that runs in the Microsoft Edge or Chrome browser (version 32 or above). This means that the users need not to download any applications and can access Skype.com on their browsers.

Watch the promotion video made by skype.

The built-in code editor currently supports seven programming languages: C, C++, C#, Java, JavaScript, Python, and Ruby. Syntax highlighting will be included for all these languages, along with a real-time execution feature to help prevent syntactic mistakes during an interview.

Currently, the new interview feature only works for browsers whose default language is set to English. For those interested in trying out the new platform, can go over to Skype’s interviews website and click on “Start Interview,” then invite someone to the call and begin the interview – all with a real-time code editor.

From,

Maria Irudaya Regilan J

Posted in Education, JRT Institute

Tamil Nadu New Draft Syllabus

தமிழ்நாடு கலைத்திட்ட வடிவமைப்பு – 2017

” தமிழ்நாடு கலைத்திட்ட வடிவமைப்புக் குழுவின் பாடவாரியான
அறிக்கைகள் மற்றும் ஒன்று முதல் பன்னிரெண்டு வகுப்பு வரையிலான
அனைத்துப் பாடங்களுக்கும் உரிய வரைவு பாடத்திட்டம் 20.11.2017
அன்று மாண்புமிகு தமிழக முதலமைச்சர் அவர்களால்
மாண்புமிகு பள்ளிக் கல்வித் துறை அமைச்சர் முன்னிலையில்
வெளியிடப்பட்டுள்ளது.

cm and education minister.jpg
கல்வியாளர்கள் உள்ளிட்ட பொதுமக்கள் இணைய வழி கருத்துக்
கேட்பு படிவம் மூலமாக அல்லது கடிதம் மூலமாகவோ 28.11.2017 வரை
தங்களது கருத்துக்களை தெரிவிக்கலாம்.

இயக்குனர்,
மாநிலக் கல்வியியல் ஆராய்ச்சி
மற்றும் பயிற்சி நிறுவனம். “

 

You can check out the new draft syllabus at here. You can also post your feedback till November 28th, 2017.

Also, download SSLC Mathematics formulae book and check our blog for more information.

From,

Maria Irudaya Regilan J

Posted in Computer Science, Education, Programming

How to convert Java file into executables

Previously I have told that learning Java is a magic. Wanna learn more in that magic? Here’s the easy explanation on converting .java file to .exe.

Steps for exporting .jar from .java

Step 1: Create your java file. I recommend you to create your file in eclipse because creating .jar file for your program can be easily done in that. If you do not have eclipse installed in your system, you can find it in here.

Step 2: Now create your project on eclipse and store it in your workspace.

Step 3: Now right click on your project in Project Explorer tab and select Export.

Export.png

Step 4: In Export -> under JAVA folder select jar file and click next.

export tab.png

Step 5: Select the export destination for your .jar file and click Finish

savingfile.png

Steps for creating an executable

Step 1: You should download a setup of JSmooth to your system. You will find it in here.

Step 2: Open JSmooth after instaling in your system.

jsmooth front.png

Step 3: On Skeleton tab, under Skeleton Selection, select console wrapper option from dropdown list to show my console window as output in my application. You also have other suitable options that can be chosen. Under Skeleton Properties, type the message in the text box that shows when an error occurs(mostly when the client doesn’t own a machine where Java installed). Check PressKey checkbox to make the message to stay in the screen until any key is pressed.

jsmooth skeleton.png

Step 4: On Executable tab, Give you Application Name under Executable Binary text box and Give your Application Icon under Executable Icon.

jsmooth executable

Step 5: On Application tab, under Main Class text box, give the class name of your Java program. In my case, it is “Strdisplay“. Check Use an embedded jar check box under Embedded Settings and direct it to your exported .jar file at the beginning.

Jsmooth Application.png

Step 6: Now, Click the gear icon at the top to compile. Save your Jsmooth file with a good name.

jsmooth save

Once, you have compiled successfully, you get compilation dialog box as follows,

jsmooth compilation

Step 7: After a successful compilation you can see an application exists near your Jsmooth file. Double click it and enjoy the execution.

jsmooth output.PNG

 

That’s it. now you can able to develop executable applications in Java. If you want to know how to develop executables in python, click here. Also Catch up Cheat sheets that are available in our blog. You can catch them under our blog categoryProgramming‘.

From,

Maria Irudaya Regilan J

Posted in Computer Science, Education, Programming

Any of these Programming Languages that you should know

Java

This language got its birth in the year 1991. This language is the important player in the field of Android development. Know this Oracle’s production if you wanna be the champion in android field.

download

C

This language is the platform for the people who wants to learn a programming  language. It helps you to understand how memory allocation of a variable works and explains the structure of programming languages.

images

Python

This language traces back to 1989, and is loved by its fans for its highly readable code. You can learn it easily at the beginning and don’t forget it has variety of real time application.

images (1)

PHP

This language for programming web sites is incredibly common and so popular and even some estimates say it powers one-third of the web. Big sites like WordPress, Facebook, and Yahoo use it.

images (3)

JavaScript

Learn this and you feel so comfortable while working on web. This has no relation with Java. The language which gives you a lot of money $.

images (2)

R

This is the programming language of choice for statisticians and anybody doing data analysis. A magical tool for the people works with data.

images (4)

Go

Originally designed by Google to build systems at the immense scale needed to power the world’s busiest search engine, it’s since caught on with developers who value reliability and integrity above all else. It’s one of the fastest-growing programming languages out there, too.go_logo

Ruby

Like Python, developers like this 24-year-old language because it’s easy to read and write the code. Also popular is Rails, an add-on framework for Ruby that makes it really easy to use it to build web apps. The language’s official motto is “A programmer’s best friend.”

41AuTDK368L._SX355_

Perl

Originally developed by a NASA engineer in the late ’80s, Perl excels at processing text, and developers like it because it’s powerful and flexible. It was once famously described as “the duct tape of the web,” because it’s really great at holding websites together, but it’s not the most elegant language.

images (9)

Swift

While Apple’s previous issues with Taylor Swift may have made all the headlines, the Apple Swift programming language was winning over developers as a faster, easier way to build iPhone apps. With high-profile fans like IBM, expect it to take off even more in 2016.

download (3).jpg

MATLAB

Intended as a mathematical programming language to help teach university students advanced algebra and image processing, it’s also widely used by scientists, engineers, and programmers working in the exploding field of image processing and other artificial-intelligence applications.

images (10)

Catch our blog also with some other cool stuff.

Posted in Computer Science, Education, Programming

Tic Tac Toe game in Python 3.6

Doing programming is awesome when you get the output what you have expected. When you include graphics on the programming, you are actually making the code to dance. Here, is an example of a code dance, The Tic Tac Toe game. Download it and you can also convert it to an exe file. Use this file as you setup.py if you are going to convert your file into an executable application.

Share your comments and tell your friends too.

Also take a look on how to send sms using python and many more.