Wednesday, March 4, 2009

Simple room reservation program in java using array, loop and if statement.

Simple program i created in java room reservation and cancellation.

Combination of Array, for loop and if statement. You can get more knowledge in this program. Basic program using java that gives alot of lesson to a begginer like you :-).
























You can donwload my sample program below.



Download File

Tuesday, March 3, 2009

how to create Listbox in JAVA?

Simple program that let the user add data inside the List box using JAVA together with List, JTextField and JButton under Swing Components..









































You can download my example below.


Download File

Monday, March 2, 2009

Changing the background color of the JPanel using JAVA

Allows user change the color of the panel or JPanel in this program using JFrame and 3 buttons.














































You can download my example below.


Download File

Sample java program using JFrame, JButton and JRadioButton.

This simple program using JFrame in java allows user to multiply, Add, Subtract and Divide numbers just enter your number in the first and second text and select your operation and just simply click the button 'Show Answer' and clearing the value inside the Textbox just simply click 'Clear' button.














import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class JSample extends JFrame implements ActionListener {
JButton b1;
JButton b2;
JRadioButton r1;
JRadioButton r2;
JRadioButton r3;
JRadioButton r4;
JCheckBox c1;
JTextField txt1;
JTextField txt2;
public JSample() {
Container p = getContentPane();
JPanel jp = new JPanel();
ButtonGroup bg = new ButtonGroup();
p.add(jp);

bg.add(r1=new JRadioButton("Mutiplication"));
bg.add(r2=new JRadioButton("Addtion"));
bg.add(r3=new JRadioButton("Subtraction"));
bg.add(r4=new JRadioButton("Division"));
jp.add(r1);
jp.add(r2);
jp.add(r3);
jp.add(r4);
jp.add(txt1=new JTextField(5));
jp.add(txt2=new JTextField(5));
jp.add(b1=new JButton("Show Answer"));
jp.add(b2=new JButton("Clear"));
b1.addActionListener(this);
b2.addActionListener(this);
}
public static void main(String[] args) {
JSample js = new JSample();
js.setVisible(true);
js.setSize(400,100);
js.setTitle("Basic Aritmetic Operations - *, +, -, /");
js.setResizable(false);
}
public void actionPerformed(ActionEvent e) {
double ans=0.0;
JOptionPane j = new JOptionPane();
if(e.getSource() == b1) {
if(r1.isSelected()) {
ans=Double.parseDouble(txt2.getText()) * Double.parseDouble(txt1.getText());
j.showMessageDialog(null,"Answer: "+ ans);
}else if(r2.isSelected()) {
ans=Double.parseDouble(txt2.getText()) + Double.parseDouble(txt1.getText());
j.showMessageDialog(null,"Answer: "+ ans);
}else if(r3.isSelected()) {
ans=Double.parseDouble(txt2.getText()) - Double.parseDouble(txt1.getText());
j.showMessageDialog(null,"Answer: "+ ans);
}else if(r4.isSelected()) {
ans=Double.parseDouble(txt2.getText()) / Double.parseDouble(txt1.getText());
j.showMessageDialog(null,"Answer: "+ ans);
}else {
j.showMessageDialog(null,"Select first Operation","Error",JOptionPane.ERROR_MESSAGE);
txt1.setText("");
txt2.setText("");
}
}else if(e.getSource() == b2) {
txt1.setText("");
txt2.setText("");
}
}
}



You can download my example below.


Download File


Friday, February 20, 2009

Database normalization of Student information using Microsoft Access with Data manipulation

Sample data normalization, data manipulation and one to one relationshipships using Microsoft Access.

In this image it shows on how to relate its field using there control field instead we put there description of the Course and Gender since we are doing normalization then we will use the control of each element or data in the table.















In this image it shows all the data under Male and Female student inside tblStudentInfo.








In this image it shows all the data with there corresponding course under tblCourse. Data inside tblStudentInfo.
















You can download my example below.


Download File

Database normalization of Student information using Microsoft Access

Simple database normalization of Student information that contains name, address, Age, Course, Gender it shows on how to normalize a database using one to one relationship using Microsoft Access. tblCourse and tblGender are the looked up table of tblStudentInfo. You can download this sample below.. thank you so much.
































You can download my example below.


Download File

Sample backup in Microsoft access using vb6.0..

I created a program using Microsoft Visual Basic 6.0 that will crate a backup database of Microsoft Access and also it can restore Backup database if you want. A simple program but gives a lot of knowledge.. you can download this program below..























You can download my example below.


Download File

Wednesday, February 11, 2009

Simple data manipulation using java and ARRAYS.

BASIC STUDENT INFORMATION

This program allows user add, edit, delete, display and search using JAVA PROGRAM.
It is a simple data manipulation of data using arrays with out having any dynamic database like access of sql server it just simple array and algorithm. I use IO package for this program in order user can input data.. looping for searching and display those data inside my ARRAYS. You can download this program and you can post comments and suggestions below. Thank you...












You can download my example below.


Download File

Free download php installer.

XAMPP is an easy to install Apache Distribution for Linux, Windows, Mac OS X, and Solaris. The package including the Apache web server with great designer you can relate table using designer like other database software's..XAMPP is an easy to install. Apache distribution containing MySQL, PHP and Perl.

You can use XAMPP for your web database it easy to use and flexible and most practical and most complete webserver solution.
You can download this software in this site and just simply install that to own computer.

This image is XAMPP Control Panel Application that you can START and STOP APACHE and MYSQL

























File Size : 37.53 MB
You can download this software below.

or visit here https://www.apachefriends.org


Download File

How to remove virus, worm and trojan in the computer?

Removing virus, worm or even trojan virus is painful, I found this application which can remove trojan viruses named NOOB_KILLER By Leerz 

You can simply click 8-X Kill All and Restart, Shutdown or else you want to be specific of those viruses and worms just simply click of those given worm and viruses.















You can update live of this software just simply click X and Live Update Now!













List of viruses and worm that NOOB Killer can fix:
  • StrawberryJuicer
  • Krag.exe
  • Destrukto
  • w32dranyam
  • Funny UST Scandal.exe
  • SilentSoftech
  • Knight
  • WinZip123
  • iloveher.exe
  • displaymonitor.exe
  • ImgKulot
  • Taga Lipa

You can download this software below.



Download File

Tuesday, February 10, 2009

Registration program using Visual Basic 6.0 with Database.

I created this program for 7th Mega Job Fair [April 28 and 29] at Limketkai Center Cagayan de oro Philippines. Using Visual Basic 6.0 this program allows users to add, edit ,delete, cancel, search and generate ID and General reports and it will automatically count number of JOB SEEKERS. I am using Microsoft Acces for the DATABASE of this program and ADODB for the recordset access and connection of database. You can download this program and you post comments and suggestions below. Thank You! have a nice day!

















You can download my example below.


Download File

How to open a corrupted and unreadable drive and recover my files?

Hi hello can you help me on how to open and recover all my files in my drive... When i double click my drive G: an error will appear Can't open drive G: drive unreadable and corrupted.
I try use chkdsk G: /R Yes it works but all my FILES are lost. Can you help me on how to recover my FILES.. Can anyone can help me.. because i need those Files


This image shows an error when i double click my drive G.

Complete grading system or Class Record using microsoft excel.

COMPLETE Grading System using Microsoft Excel 2003 it will automatic get the grade of the attendance depending of the percentage of the attendance together the quizzes, seat work and EXAMS and will automatic ADD the
PRELIM, MIDTERM, PRE-FINAL AND FINAL EXAMS And AVERAGE and will result the subject grade of the student and it will give automatic remarks if the student passed or fail in prelim, midterm, pre-final and final in his subject..














You can download my example below.


Download File

Simple grading system using microsoft excel.

Simple manipulation of student grade using Microsoft Excel 2003 it will automatic ADD the
PRELIM, MIDTERM, PRE-FINAL AND FINAL and the output is the AVERAGE. And AVERAGE divide by FOUR the result is the subject grade of a student and it will give automatic remarks if the student passed or fail in his subject..







You can download my example below.


Download File

Saturday, February 7, 2009

Dowload tutorial for PHP.

You can download PHP tutorial here.
Here i would like to show the very basics of PHP in a short, simple tutoria that you can download herel.
This text only deals with dynamic web page creation with PHP, though PHP is not only capable of creating web pages you can also a dynamic webpages on it.
In this tutorial we assume that your server has activated support for PHP and that all files ending in .php are handled by PHP. On most servers, this is the default extension for PHP files, but ask your server administrator to be sure. If your server supports PHP, then you do not need to do anything. Just create your .php files, put them in your web directory and the server will automatically parse them for you. Enjoy



















You can download this tutorial below.


Download File

Sample program using ADODC WITH DATABASE.

This VB6.0 program allows user to add, edit, delete, search by option and display record using ADODC RECORD and ADODC CONNECTION. Microsoft Access for the DATABASE of this Program.

















You can download my example below.


Download File

Wednesday, February 4, 2009

Basic student record with adding of pictures using vb6.0

This vb6.0 program allows user to add with student picture, edit, delete , save and dynamic search. I am using Microsoft Access for my Database, ADODB connection and Record set. You post comment about this program. Thank you!
















You can download my example below.


Download File

How to create and write text file in java?

This will automatically creates and write TEXT FILE OR NOTEPAD.












You can download my example below.


Download File

How to create folder using vb6.0?

This program allows user to create folder and delete using visual basic 6.0..






















You can download my example below.


Download File

Basic student Information program using Php.

This program allows user to add, edit, delete, display records using Php. And with page navigation.. including dynamic check boxes. Enjoy!..
You can post comments in my program.





















You can download my example below.


Download File

Monday, January 26, 2009

How to display date and time using vb6.0?

Getting the time and Date in your computer basically its easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that put timer in your form too.
Timer1 is the default name of the timer and set timer interval into 10. And double click your form which is your form1 and after that i want you to put this code inside your form load() . label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program. You can download my example below.. Thats all!
















Download File

How to display date and time using vb6.0?

You may set first the TIME and DATE of your system i mean you computer because there are some cases that the time and date in your computer is not set so may set first before doing some actions inyour visual basic 6.0.
Getting the time and Date in your computer basically its very easy.
First is to put two labels in your form label1 and label2 that is the name of the two labels and then after that i want you put 1 command button inside you form which is command1. And double click your command button put this code inside command1_click() label1.caption is equal to Date and lablel2.caption is equal to Time after that run your program and try to click your command button and it will automatically appear the time and date. You can download my example below.. Thats all!















You can download my example below.


Download File

How to use for each statement in Php?

I have here an example using foreach statement in Php the first thing you need to do
is to open notepad but if you have dream weaver or other software editor is OK.
Php has several conditional and loop statements that have been part of the
language since its creation. Unlike them, the foreach statement is one
of the loop statement influenced by other programming languages that
used foreach for years. For example java. Unlike the other conditional and loop
statements, the foreach statement is used only on arrays so basically foreach statement
accept only variable arrays. I have here an example that you can download using foreach statement.. You can post comments or question about other entities in Php or other languages.

You can download my example below.

Download File

How to use toLowerCase in java?

toLowerCase() is one the basic method of the string class.
I have here and example using toLowerCase() method converting the Upper case text into
lower case.

Example my name:

String name ="JOHN EMISYL PALER"; Declaration of variable.
To convert my name into lower case form heres the following syntax.

System.out.println(name.toLowerCase());









You can download my example below.

Download File

How to use toUpperCase in java?

toUpperCase() is one also of the basic method of string class in java like toLowerCase() method.
toUpperCase() method is opposite of toLowerCase() method. toLowerCase() is converting Upper case text into Lower case. They have different action dealing with Strings or Text. I have here an Example for toUpperCase() method.

Example:

String name="john emisyl paler";

System.out.println(name.toUpperCase());













You can download my example below.

Download File

How to display numbers using do while loop in php?

do while statement is one of loop statement in Php that
has a specific condition depending the program flows basically do while loop and while loop
are commonly the same but deffirent format of coding. The same with while loop that do while
statement
will automatically stop if the condition becomes false.
Example:
int x=1;

do {

System.out.println("Number: " + x);
x++;

}while(x<=10);

You can download my example below.

Download File

How to display numbers using while loop in php?

while statement is one of loop statement in Php that
has a specific condition depending the program flows. The while loop
statement will automatically stop if the condition becomes false for
example if you creating a simple program displaying numbers
the
while loop statement will stop displaying numbers base in a given value
or the count of the loop on how many times the loop repeat.

while (condition)
code to be executed;

Simple looping using while loop
Example:

$i=1;
while($i<=10)
{
echo "The number is " . $i . "
";

$i++;
}

Output:

The number is 1
The number is 2
The number is 3
The number is 4
The number is 5

Download File

How to create text file in vb6.0?

Creating and Writing text in Text file or Notepad in Visual Basic 6.0 here the following procedure. In this example i have 1 text box in my form and 1 command button in my form. After clicking your command button basically it will create notepad and write text depending the text that you inputted in you text box. You can download this example below.

















You can download my example below.


Download File

How to use switch statement in Php?

Very nice example for switch statement.

If have many blocks and if you want to select one of you blocks actually you can use Switch statement.

The switch statement is used to shorting the code i mean the block of code instead using if..else..elseif.



Syntax:


The switch statement

switch (expression)
{
case label1:
code to be executed if expression = label1;
break;
case label2:
code to be executed if expression = label2;
break;
default:
code to be executed
if expression is different
from both label1 and label2;

}


Example:

switch ($x)
{
case 1:
echo "Index 1 ";
break;
case 2:
echo "Index 2";
break;
case 3:
echo "Index 3";
break;
default:
echo "No number between 1 and 3";
}

If the value of variable $x is 2 the output is

Output:

Index 2

How to declare arrays in Php?

Example 1:

$names = array("Johnr","Mario","Merbert");

Example 2:
$names[0] = "John";
$names[1] = "Mario";
$names[2] = "Merbert";
echo $names[1] . " and " . $names[2] . " are ". $names[0] . "'s neighbors";

?>

You can the element or the value of the array using there indeces or index.

Example:
echo $name[2];

Output:

Mario

Download File

How to decalre variable using Php

Proper Format

$var_name = value;

Example:
//Open parameter

$txt = "Hello World!";
$number = 25;

$echo($txt . "
");
$echo($number);

?> //Closing parameter

Ouput:

Hello word
25

Download File


How to create Factorial using vb6.0?

















Private Sub Command1_Click()


Dim x As Integer
Dim ctr As Integer
ctr = 1

For x = 1 To Val(Text1.Text)

ctr = ctr * x

Next x

Label1.Caption = "Factorial of " & Text1.Text & " is" & ctr


End Sub

Download File

How to declare array in vb6.0?

Example:

Dim myArrayName(0 To 5) As String

'The range of this array is 0 to 4 only.
'Data type is String it means you can store only string value in your array.

myArrayName(0)="John"
myArrayName(1)="Mario"
myArrayName(2)="Mark"
myArrayName(3)="Ailey"
myArrayName(4)="Merbert"

Sunday, January 25, 2009

How to create Factorial using java?

I have here an example getting the factorial of the given value in this example i used
import.java.io.*; its a kind of package in java in order the user will input a number.
IO means
Input and Output
. For example if the user will input 5 basically the factorial of 5 is 120 i have here a formula getting 120.

5 is the user input

solution
1 x 2 x 3 x 4 x 5 = 120

In order we can get the 120 in java we will use for loop statement on of the loop statement in java. Here the Output!

****
****OUTPUT**********












You can download my example below.

Download File


//I have here very nice example for do while.

class dowhile
{ //class name
public static void main(String[] args) { //default method of java
int x = 1;
do {
System.out.println("Number: " + x);
x++;
}while(x<=10);


/*
Instructions

int x=1 is your declaration of your variable.
x<=10 is your condition til the condition becomes false.
x++ is your Incrementation in-order your x will move starts 1 to 10.
System.out.println("Number: " + x); is for display Number : 1 to 10.

*/

}
}


********OUTPUT**********













Download File

How to use for loop in java programming?

//I have here very nice example for forloop.

class forloop
{ //Your class the name of the is 'forloop
public static void main(String[] args) {
for(int x=1; x<=10;x++) { //
System.out.println("Number: " + x);
}

/*
Instructions

int x=1 is your declaration of your variable starts from 1 to 10.
x<=10 is your condition til the condition becomes false.
x++ is your Incrementation in-order your x will move starts 1 to 10.
System.out.println("Number: " + x); is for display Number : 1 to 10

*/

}
}

/*
********OUTPUT**********

Number: 1
Number: 2
Number: 3
Number: 4
Number: 5
Number: 6
Number: 7
Number: 8
Number: 9
Number: 10


*/

Download File
 

blogger templates | Make Money Online