Advertisements

Aatul Palandurkar

Archive for July 2015

Objectives :

  • How to publish Android app to Google Play Store?
  • How to publish Android app to Google Play Store using Eclipse?
  • How to create keystore in Android?
  • How to zip align an Android app?
  • How to export signed Android package?
  • How to export signed Android APK?
  • How to export signed Android app?
  • How to create signature for Android app?
  • How to compress Android app for publishing?
  • How to make an Android app ready for publishing?

This video will guide you to publish your own Android apps on Google Play through some simple steps and that too with few clicks. This small video will answer all the questions above.

The video was recorded during a Online Android Training and uploading unedited video here. The training was conducted from Doha, Qatar. If you need online training on Android or need any support, please feel free to write me at aatul@ancyber.com

Please feel free to share the video if you like it and do comment below. And subscribe to my YouTube channel for more video tutorials.

Advertisements
Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Starting a series of some Java programs as many students were asking to share the programs. Here is the first program of the series.

Objectives:

  • Write a Program that calculates and prints the simple interest using the formula : Simple Interest = PTR/100
  • How to calculate Simple Interest in Java?
  • Write a program to calculate Simple Interest in Java.
  • Write a Java program that calculates and prints the simple interest using the formula : “SimpleInterest = PTR/100” and input values P, T, R should be accepted as command line.
  • How to use Command Line Arguments in Java?
  • How to pass values from command line in Java?
  • How to take input in Java from console?

 

This particular program can be written in various ways, we will try to write the solution program in different ways here and one can try to understand the difference between them.

Method 1 :

import java.util.Scanner;

public class SimpleInterestExample {

    public static void main(String[] args) {

        int p,t,r, result;

        Scanner sc = new Scanner(System.in);

        System.out.println("Enter the Value of P : ");
        p = sc.nextInt();

        System.out.println("Enter the Value of T : ");
        t = sc.nextInt();

        System.out.println("Enter the Value of R : ");
        r = sc.nextInt();

        result = (p*t*r)/100;
        System.out.println("Interest is : " + result);
    }
}

This one is the simplest way to write the program to find simple interest in Java. Here we have simply created the object of Scanner class for taking input. Scanner class was introduced in Java 6. To use Scanner class we will have to import the class from java.util package.

Method 2:

Now we will write a Java program that calculates and prints the simple interest using the Scanner class again but with object oriented programming approach.

import java.util.Scanner;

public class SimpleInterestExample
{
		double principalAmount = 0;
        double interestRate = 0;
        double term = 0;
		double simpleInterest = 0; 

    public void calculateSimpleInterest()
	{
		Scanner input = new Scanner(System.in);

		System.out.print("Enter the Principal amount : ");
		principalAmount = input.nextDouble();

		System.out.print("Enter the Rate As a decimal : ");
		interestRate = input.nextDouble();

		System.out.print("Enter the amount of time in years : ");
		term = input.nextDouble();

		simpleInterest = (principalAmount * interestRate * term) / 100;
	}

    public void displaySimpleInterest()
	{
		System.out.println("The Simple Interest is : " + simpleInterest);
    }
}

Mock Test Program for above code so that we can test the code. keep both the classes in same package and run the Mock Test Program or MockTestProgram.java

public class MockTestProgram{

    public static void main(String[]args);
	{
		SimpleInterestExample simpleInt = new SimpleInterestExample();
		simpleInt.calculateSimpleInterest();
		simpleInt.displaySimpleInterest();
	}
}

Method 3:

Now we will write a Java program that calculates and prints the simple interest using the formula : “SimpleInterest = PTR/100” and input values P, T, R should be accepted as command line.

import java.util.Scanner;

public class SimpleInterestExample {

    public static void main(String[] args) {
		double p,t,r, result;

		p = Double.parseDouble(args[0]);
		t = Double.parseDouble(args[1]);
		r = Double.parseDouble(args[2]);

		Scanner sc = new Scanner(System.in);

		System.out.println("Enter the Value of P : ");
		p = sc.nextDouble();

		System.out.println("Enter the Value of T : ");
		t = sc.nextDouble();

		System.out.println("Enter the Value of R : ");
		r = sc.nextDouble();

		result = (p*t*r)/100;
		System.out.println("Interest is : " + result);
    }
}

 

I will be sharing more programs soon as many students were asking for programs which were carried out during Java training and were asked in assignments after Java training. By the time enjoy coding in Java and use NetBeans, it will ease your life.

Hello everyone,

Jiri Kovalsky, Manager, NetCAT has announced NetCAT 8.1 and I have already registered for the same. And looking forward to have more people from all over the world and specially India for NetCAT 8.1.

NetCAT

You just need to invest few hours per week from mid July 2015 through mid October 2015. And you have to play a little with upcoming version of NetBeans, hunt for bugs and help community to release new and stable version of NetBeans. Make many new friends here and learn a lot from them. Get a chance to work with people having extreme experience and with very high profile in IT. You will never get such a chance with any other company or technology. The main thing you can mention that you have worked with NetBeans for that particular period as a Community Contributor.

Show your love towards NetBeans and technologies that NetBeans supports and earn lots of goodies depending on points you have earned for your work after completion of the program. If you wish you can select specific tribe and you can work with tribe on specific technology.

So what are you waiting for?  Visit http://wiki.netbeans.org/NetCAT and fill registration form, and hit Subscribe button after registration or send a mail to sympa@netbeans.org with subject line as “subscribe netcat” without quotes.


Advertisements

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 8,761 other followers

Tweets

%d bloggers like this: