Tutorial Creating Sales Program in JCreator
Tutorial Creating Sales Program in Jcreator - Back again with my admin of champion -Tutorial here I will give a tutorial on how to create a software sales program JCreator easily and surely you will be able to make its sales program.
Creating this sales program we use the Java programming language. Java
is a programming language can be run on various computers or laptops
including telephone or now more to a smartphone, and I think quite hard
to understand, but if we are more in its study can be easy to be
understood, so so we should be familiar with prior to language java programming in order to understand it because there is the proverb does not know it was love.JCreator is my life we learn the basic because it first entered in
the 3rd semester I learned OOP 1 using this software, if you want you
can use the visual netbean later I will share again if I get the task of
lecturers and will share it to you guys.Further we just made a sale of program materials and conditions that must be in full, namely:1. Computer or Laptop2. Jcreator (can search on google) here I wear JCreator Pro version 53. Be sure to read the prayer before doing this tutorial4. Research and Understand.
Tutorial Creating Sales Program in JCreator:
1. Open the program JCreator File> New> File and then click
2. Then select Java Classes in the right column and select Java Class click next
3. Name your seterah but the contents may not use spaces and Location select a folder you want to save and click the Finish button
4. Now fill it with the script below
stringvars package;
import java.io. *;
java.util.Scanner import;
// Copyright 2015 By Alden Herdiana
{public class program _ selling 1
import java.io. *;
java.util.Scanner import;
// Copyright 2015 By Alden Herdiana
{public class program _ selling 1
public static void main (String [] a) {
Scanner input = new Scanner (System.in);
String name _ goods;
System.out.print ("Enter Item Name:");
nama_barang = input.next ();
int _ the unit price;
System.out.print ("Enter the Unit Price");
harga_satuan = input.nextInt ();
int _ initial stock;
System.out.print ("Enter Stock Beginning:");
stok_awal = input.nextInt ();
int sold;
System.out.print ("Enter The Sold:");
sold = input.nextInt ();
int sa;
sa = _ initial stock - sold;
int th;
th = sold * _ the unit price;
System.out.println ("==============================");
System.out.println ("Item Name:" + name _ goods);
System.out.println ("Unit Price" + _ unit price);
System.out.println ("Stock Beginning:" + _ initial stock);
System.out.println ("Sold:" + sold);
System.out.println ("Stock End:" + sa);
System.out.println ("Total Price" + th);
}
}
Scanner input = new Scanner (System.in);
String name _ goods;
System.out.print ("Enter Item Name:");
nama_barang = input.next ();
int _ the unit price;
System.out.print ("Enter the Unit Price");
harga_satuan = input.nextInt ();
int _ initial stock;
System.out.print ("Enter Stock Beginning:");
stok_awal = input.nextInt ();
int sold;
System.out.print ("Enter The Sold:");
sold = input.nextInt ();
int sa;
sa = _ initial stock - sold;
int th;
th = sold * _ the unit price;
System.out.println ("==============================");
System.out.println ("Item Name:" + name _ goods);
System.out.println ("Unit Price" + _ unit price);
System.out.println ("Stock Beginning:" + _ initial stock);
System.out.println ("Sold:" + sold);
System.out.println ("Stock End:" + sa);
System.out.println ("Total Price" + th);
}
}
5. If you have select the Build menu and select the Build File
The result see below

No comments:
Post a Comment