Skip to main content

Using Java and Python simultaneously

Hi friends,                                                                                                                    

               Firstly, I would like to thank you all for your love and support towards our blog.
                  We here are happy to know that our previous posts on tutorials and mini projects have helped you a great deal.

        So far many of you might have done some really amazing projects using a particular programming language. But in this post of mine, I would like to share with you my mini project for which I have collaborated two of the most amazing programming languages for this project of mine!
   
       Yes! You have read it right! In this project of mine, I have combined Python and Java programming languages.

       The main agenda of this project is to combine the two programming languages, which are indirectly dependent on each other. By the way, this project takes input from the user in the form of a JFrame and plots a graph of the linear equations.

      
      We know that Python has a library called Tkinter which allows us to create forms and implement Graphical User Interface (GUI) programming. Impressive as it may sound, the interface isn't as beautiful, flexible, structured and easy as Java.

     Hence I've decided to implement the Java as front end to accept the user input for the linear equations and Python as a scripting language for back end to plot the graphs!

     Here are the images when we run the programs. (The programs are run individually and independently from each other).

The Java front end to receive input from the user of the linear equations:


The Python back end to plot the graphs of the received input from the user:





I hope you liked this project. 

Please follow, comment and subscribe our blog.

                                   Please contact us at technopedia13@gmail.com for the source code with detailed explanation of the project with the project code HB101.

Thank you very much :) :D Love you all!


Keep Coding!!

Comments

  1. If you dont mind, can you post the body of program .(entire program )

    ReplyDelete
    Replies
    1. We are preparing a gist which contains the codes of all our programs. We'll post the link once its ready.

      Delete

Post a Comment

Popular posts from this blog

Intro to Python Programming - 2. Basic Output

Hello everyone!           Considering the lot of requests I received from my dear friends and viewers, I shall now start posting step by step tutorials for mastering Python programming. I proceed with the assumption that you have a basic foundation of the C programming language . If not much of it, at least having some idea about the type specifiers such as ‘%d for integer, %f for floating point variables etc.’ and also, some basic ideas about data types such as int , float , char etc. would be of great help. :)           Before we begin with the coding part of python, I want you to understand a few basic concepts, like: 1.      Python is scripting language. 2.      Python programs do not make use of statement terminators like semicolons ‘;’ as in C, C++ and Java. 3.      A basic Python program does not require any header file. e.g. We use # include < stdio.h > in C to include standard I/O library We import libraries in Python only for some using some special

Printing the text horizontally in Python Programming language

Hi guys,         We know that the "print" function is used to print the data to the standard output device in Python Programming language. But, the print function automatically adds a newline character every time we cal it.        For example, consider a program segment to display numbers from 1 to 5:                                                                            for n in range ( 1 , 6 ):                                     print n           The output of the code will be:                               1                               2                               3                               4                               5   But what if we want the output to be something like:                 1 2 3 4 5    How do we go about it?     The answer to this is indeed very simple. The key is to add a "," after the variable  at the end of the print statement. Consider the following code to print the even a

Kotlin :A New Beginning

Hello guys, You might have heard about a new language supported for the android Officially by Google,Named as Kotlin. Kotlin is a statically typed Programming language.By statically typed language i mean that the type checking is done during complile time. It was developed in July 2011 by Jetbrains in Russia,In 2017 Google declared Kotlin as the official langauge for android. However the Traditional Java developers are sticking to java. New programmers who want to make android apps,Web apps can use Kotlin as a language of preference. With this Post i welcome you to the world of Kotlin. There is no good book for kotlin but there is the official documentation on Kotlin.I refer the official Kotlin documentation. The main aim of this post if to Introduce you Kotlin and its Uses and also how to write programs in Kotlin. The official documentation can be found on the website   KOTLIN I belive that this post will help you to write codes in Kotlin. So lets begin Firstly