Posts

Showing posts with the label OOP Programming

Selection-01 in Java

package IF_1Java;  import java.io.BufferedReader;  import java.io.IOException;  import java.io.InputStreamReader;  public class IF_1 {  public static void main(String[] args) {    System.out.println("Masukan bilangan Anda : ");    BufferedReader bfr = new BufferedReader    (new InputStreamReader(System.in));    String angkaInput = null;    try {       angkaInput = bfr.readLine();   } catch (IOException e) {     e.printStackTrace(); }  int Data = Integer.valueOf(angkaInput).intValue();  if (Data > 0)     System.out.print ("Bilangan Positif"); else if (Data < 0)    System.out.print("Bilangan Negatif"); else    System.out.print ("Anda memasukan bilangan Nol"); }  } 

Download Hospital Project

Image
Dear my university students, I was sorry that I couldn't come to the Class, actually today we will build project using Visual Basic.Net 2003 and DBMS of SQL Server 2000, but as a changed, here I upload the material so You can download and practice it. What you need to practice off course your computer which are the Software of Microsoft Visual Basic.Net 2003 and Microsoft SQL Server 2000. Here is the link : Download Hospital Project Part One Well.., The material written in Bahasa Indonesia, Just cheer and Practice it, if there is any problem perhaps you can send Mail to ader_itb@yahoo.com :)

UML No reason for Conventional paradigm!

Image
UML, well...I ofter here this word! But what is it for! I just know a bit, when I started lesson of software engineering in Institute of technology bandung (ITB). We can now realize that for the ones who before has already built applications using OOP (object oriented programming) such as Java, C++ or perhaps Visual basic.Net, now we can also built or documented using UML for creating Digram Use case, Sequent, Class diagram, activity, collaborations and others. Unified Modeling Language (UML) is a standardized general-purpose modeling language in the field of software engineering. The standard is managed, and was created by, the Object Management Group. The Unified Modeling Language (UML) is used to specify, visualize, modify, construct and document the artifacts of an object-oriented software intensive system under development. UML offers a standard way to visualize a system's architectural blueprints, including elements such as actors, business processes, (logical) components, ac...

Download Material of VB.Net and SQL Server

Image
Talking about Object oriented programming, we must have known about Java, C++, C#. but in this session we will discuss about Visual basic.Net . In this material, I uploaded some materials about how to make "Library software" in Visual Basic.Net and SQL Server. Well..,The development tool which are used are Visual Basic.Net 2003 and SQL Server 2000, as a matter of fact there are newer Languanges like Visual basic.Net 2008 and DBMS of SQL server 2005 here is the Link --> Download Database in VB.net and SQL Server

C++ Programming

Image
Hi Guys! Everyone who try to learn programming must have known about C++ Language. Yup, as we know with C, UNIX, and Windows are built. C++ these days is more familiar, we can use for building Game programming, Robotic and many other. That's why this lesson is taught in every Informatics Universities. What wee need for learning or studying C++, of course we have to have Computer it can be Personal Computer or Notebook. What ever your Operating System it doesn't matter because C++ can be run even in Windows and LInux. In this article, I put a bit itrocution to C++ whch is conduct of two programs uisng Variabel and Const just to now about that, You can downloaded for Free. Here is the link : C++ with Variable and Const by Ader Well.. Just enjoy to learn C++, Let's learn C++ beside Pascal, Shall we :).

Function by Value in Visual Basic.Net

Image
Function by Value in Visual basic.Net is one of the parameters like another parameter such as Function by reference. Well, in this case, Let's try to make function using by value parameter in visual basic.Net 2003. Well, actually Visual Basic.Net 2003 and Visual basic.Net 2005 is almost the same, Even my Book's write Visual Basic.Net and SQL Server 2005, Here we are : 1. Design the form like in the picture above 2. Don't forget, to setting the properties, like text1 named tktKode 3. type the source code bellow : Private Sub btnHitung_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHitung.Click Dim jml_biaya As Integer jml_biaya = hitung_biaya(CInt(txtPemeriksaan.Text), CInt(txtObat.Text), cmbKelompok.SelectedIndex) txtTotal.Text = jml_biaya End Sub Function hitung_biaya(ByVal pemeriksaan As Integer, ByVal obat As Integer, ByVal kelompok As Byte) As Integer Dim potongan As Integer Dim total As Integer total = pemer...

Choose Network DBMS!

Image
Well, it's not to say that we must choose Database management system like SQL Server, MySQL or Oracle and not use Local DBMS anymore like using Access, Paradox, etc. For some university students who are studying in Informatics University these days should write some application programs using Network DBMS and not allowed to use Local DBMS anymore. For some programmer who use visual basic 6.0 usually they make application program combined with SQL Server 2000. And for some Delphi programmers they are also use SQL Server or Oracle for database. So, it's still fair enough, if we still make application program and combined with Local DBMS like Visual basic 6.0 and Microsoft Access, and Delphi Program with Paradox. But these days, we realize, programming era goes to Open source programming, like using Java or Visual basic.Net, C++.Net and others, So, are we ready?

Selection in Visual basic.Net

Image
H ello everybody, I am back to try to make application in Visual Basic.Net With If..Then..Else Selection. Well, Actually in visual Basic.Net there are so many kinds of Selection like If..Then..ELse, If..Then..ElseIf,Iif, and Select..Case. But for this occasion, we will make an application using If..Then..Else selection, here we are 1. Design the form like at picture above 2. Set the properties like in the previous program, for example for textbox1 named by txtName, for button of Hitung named by btnHitung, etc. 3. type the source code bellow : Public Class Form1 Inherits System.Windows.Forms.FormConst jamNormal = 40 Const upahLembur = 10000 Dim nik As String Dim nama As String Dim gol As Char Dim jjk As Integer Dim upahPerJam As Double Dim lembur As Double Dim upahTotal As Double #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any ...

To know about Visual Studio.Net 2003

Image
Well, These days some programmings will change from procedural to Object oriented. we know in the last time Microsoft with Visual Basic 6.0 is currently good in let's say database programming, beside that some programmers also enjoy using Delphi like Delphi 5, Delphi 6 or Delphi 7.0. But this days some programmers and also some learners change their mind to learn Object oriented programming, like using Java, or we can use Visual Basic.Net 2003. From the name, Microsoft visual Studio 2003 contents some software development such as Visual basic.Net, C++.Net, C#.Net, J#.Net. So what is Visual basic.Net? Exactly in this development tools use Frameworks.Net and Class Library Runtime. In Visual Basic 2003, we know that it looks like prior visual basic 6.0 in design, so if we design form in Visual basic.net 2003, you have to manage some components, let's say if we put textbox in form, we have to delete default text. How about codding! well I think the codding is absolutely Object, we ...

Loop In Visual Basic.Net

Image
Looping is one of the basic algorithms which can be found in all programming language like C++, Java, Pascal and so Visual Basic.Net. In this session we can try to make program Looping using Visual Basic.Net for. In Visual Basic.Net, there are many kinds of looping, but in this case, we can just Loop with For..Next, here we are : 1. Go to your Visual Basic.net via your visual studio.net 2. design the Form, like a picture above 3. setting properties for each component; let's say for your textbox1named txtId, for button of 'simpan' named btnSimpan, etc 4. type the code bellow : Private Sub btnSimpan_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSimpan.Click If indeks_data > jml_data - 1 Then MsgBox("List sudah penuh") Else data_lecturer(indeks_data, 0) = txtNoInduk.Text data_lecturer(indeks_data, 1) = txtNama.Text data_lecturer(indeks_data, 2) = txtAlamat.Text data_lectu...

Library software in VB.net & SQL Server 2000

Image
W ell.., these days we know that programming are disposed to Object oriented programming like using Java and .Net applications like Visual Basic.Net. well, in this session, I try to make Library Application using Visual Basic.Net 2003 and SQL Server 2000, here we are : 1.Firstly, we have to make database in SQL server 2000, log on to your DBMS SQL server 2000 2.In the GUI of SQL Server, type : Created database Library, then press F5 or Execute 3.type script table : create table Buku( kdBuku varchar(7)primary key, namaBuku varchar(35), pengarang varchar(35), penerbit varchar(30), edisi varchar(5)) 4.click execute Now.., it’s time to make Book's form in Visual basic.Net. In GUI of Visual Basic.Net 2003, click file --> New --> Project : 1.Design form like a picture above 2.Now, on GUI of Visual basic.Net, click menu Tools --> connect to database --> then choose ‘Microsoft OLE Provider for SQL Server’, then click Next, then Fiil in the name of your SQL Server, choose ‘Use ...

Why OOP?

Image
These days, we are still proud of using Functional or Convensional method for developing our software or systems. Yup, we must have known about flow map, data flow diagram and even entity relationship diagram. It's for this reason, so many students who tries to finish his/her studying apply for their script about information system with structure method and software, of course we can guess, Waterfall, Flow map, DFD,ERD and codding of software. Why, don't we try to move to Object oriented method using UML, and try to build the program using OOP such as Java, C# (.Net), PHP 5. It's time to move Now, in another side we don't have to forget all structured software like Pascal, Delphi or Visual Basic 6.

Visual Basic.Net 2005

Image
Visual Basic.Net is new developments tools from Microsoft which support Object Oriented Programing (OOP). Form this software, hopping that all application which has built by.Net include (C++.Net, J#.Net, ASP.Net,etc) will run in any other Operating systems. Well..have you ever tried this software? as a matter of fact, if you have familiar with Visual Basic 6.0 You will not too difficult to learn it, why. Because You will still use codding of VB. 6.0 (That's what we call to Visual Basic 6.0) in Visual Basic .Net 2005. In Database, we can share with DBMS SQL Server 2005 for advanced. if you are always using local DBMS such as Access, from now on, you had better choose Network Database such as SQL Server 2000, SQL Server 2005 or Oracle. Created By Ader.