Educational

Educational

Share

This page is available for educatinal environment

PHP Web 16/02/2018

Deadline of Submission is on February 19, 2018

so sad :) hahaha

03/08/2016

C # soon update ko..

Bz d maka update sa page ko..

Photos 09/08/2015

My sample Logo,, waray mahimo... :)

Photos 08/09/2014
Free source code, tutorials and articles 06/09/2014

http://www.sourcecodester.com

that site may makikit an kamo hin Home, Programming etc.
at Programming may ada hin visual basic, VISUAL BASIC.NET, c++, etc... bahala kam kun ano an iyo gagamiton ha iyo system then ito nga site asya ito an mga system nga mga nahimo nira bali full ito hiya. para naman madownload an system ngadto ha site ig click la niyo an iyo karuyag nga system then after that may makikit an kam hin "Download Code" han ubos han picture then ubos pa, hehehe!!, pagkatapos, madownload na ngani ito bali an gawas na ka zip ito... din tapos na kamo na bahala... sana nakatulong ha iyo.... hehehe!!!!... :)

Free source code, tutorials and articles Visual Basic, VB.NET, C #, PHP/MySQL, C/C++, Java/JavaScript, ASP/ASP.NET, MS Access, FoxPro, SQL

13/03/2014

Java Program
(Selection Sort)

import java.util.Scanner;

public class selectionsort {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("enter the size of the array: ");
int n = input.nextInt();
int[] x = new int[n];

System.out.println("enter " + n + " numbers:");
for (int i = 0; i < n; i++) {
x[i] = input.nextInt();
}

System.out.print("the sorted numbers:");
Selection(x);
input.close();
}

public static void Selection(int[] arr){

/* advance the position through the entire array */
/* (could do j < n-1 because single element is also min element) */

for(int i=0; i

13/03/2014

Java Program
(Quick Sort)

import java.util.Scanner;

public class quicksort {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("enter the size of the array: ");
int n = input.nextInt();
int[] x = new int[n];

System.out.println("enter " + n + " numbers:");
for (int i = 0; i < n; i++) {
x[i] = input.nextInt();
}

System.out.print("the sorted numbers:");
quick(x, 0, x.length -1);
for (int k = 0; k < x.length; k++) {
System.out.print(x[k] + " ");
}
input.close();
}

static int partition(int arr[], int left, int right) {
int i = left, j = right;
int tmp;
int pivot = arr[(left + right) / 2];

while (i pivot)
j--;
// if the pointers have crossed, swap the items
if (i

13/03/2014

Java Program
(Merge Sort)

import java.util.Scanner;

public class mergesort {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("enter the size of the array: ");
int n = input.nextInt();
int[] x = new int[n];

System.out.println("enter " + n + " numbers:");
for (int i = 0; i < n; i++) {
x[i] = input.nextInt();
}

System.out.print("the sorted numbers:");
merge(x, 0, x.length - 1);
for (int k = 0; k < x.length; k++)
{
System.out.print(x[k] + " ");
}

input.close();
}

public static void merge(int array[], int l, int h) {
int low = l;
int high = h;
if (low >= high) {
return;
}

int middle = (low + high) / 2;
merge(array, low, middle);
merge(array, middle + 1, high);
int end_low = middle;
int start_high = middle + 1;

while ((l

13/03/2014

Java Program
(Insertion Sort)

import java.util.Scanner;

public class insertionsort {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("enter the size of the array: ");
int n = input.nextInt();
int[] x = new int[n];

System.out.println("enter " + n + " numbers:");
for (int i = 0; i < n; i++) {
x[i] = input.nextInt();
}

System.out.print("the sorted numbers:");
insertion(x);
input.close();
}

public static void insertion(int[] arr) {
int i, j, newValue;
for (i = 1; i < arr.length; i++) {
newValue = arr[i];
j = i;
while (j > 0 && arr[j - 1] > newValue) {
arr[j] = arr[j - 1];
j--;
}
arr[j] = newValue;
}
for (int k = 0; k < arr.length; k++) {
System.out.print(arr[k] + " ");
}
}

}

13/03/2014

Java Program
(Bubble Sort)

import java.util.Scanner;

public class bubblesort {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("enter the size of the array: ");
int n = input.nextInt();
int[] x = new int[n];

System.out.println("enter " + n + " numbers:");
for (int i = 0; i < n; i++) {
x[i] = input.nextInt();
}

System.out.print("the sorted numbers:");
bubble(x);
input.close();
}



public static void bubble(int[] arr) {

//make arr passes through the array
for (int i = 0; i < arr.length; i++) {
//from the first element to the end
for (int j = 1; j < arr.length; j++) {
//if adjacent items are out of order, swap them
if (arr[j] < arr[j - 1]) {
int temp = arr[j];

arr[j] = arr[j - 1];
arr[j - 1] = temp;
}
}
}

for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
}
}

13/03/2014

C++ Program
(All Program using Main Menu)

# include
# define Pi 3.1416
# define q 12
# define ifc 3
# define pw 1
# define pwd 1
# define pc 2
# define SIZE 10

int area,length,width;
int ht,w,l,wdk,pntcost,flrcost,totcost,flr;
int n[SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 12};
int i, k;
int as,answer,sum;
int r,volume;
int fr;
int m;
int a;
int b;

void menu()
{
do
{
float john,smith,abs,totv,y,z,i;
float ar,mb,mp,r,interest,bal;
float fah,cel;

printf("\n\t***************************************************************");
printf("\n\t* *********************************************************** *");
printf("\n\t* *---------------------------------------------* *");
printf("\n\t* *********************************************************** *");
printf("\n\t* * [0] EXIT * *");
printf("\n\t* *********************************************************** *");
printf("\n\t* * || * *");
printf("\n\t* * [1] ELECTION COUNT || [6] INTER ACTIVE LOOP * *");
printf("\n\t* * [2] VOLUME OF SPHERE || [7] FARENHIET TO CENTEGRAM * *");
printf("\n\t* * [3] MORTAGE || [8] AREA OF A RECTANGLE * *");
printf("\n\t* * [4] HISTOGRAM || [9] ROOM COST ESTIMATE * *");
printf("\n\t* * [5] TURBO C BOX || [10] QUESTION & ANSWER * *");
printf("\n\t* * || * *");
printf("\n\t* *********************************************************** *");
printf("\n\t***************************************************************");
printf("\n");
printf("\n\t ENTER THE NUMBER DO YOU WANT:\t");
scanf("%d", &a);
printf("\n");
switch (a)
{
case 0: printf("\n\t GOOD BYE FOR NOW !!! ");
printf("\n\t HAVE A NICE DAY ");
break;
case 1:
printf("\n\t ENTER THE NUMBER OF VOTE FOR JOHN:\t");
scanf("%f",&john);
printf("\n\t ENTER THE NUMBER OF VOTE FOR SMITH:\t");
scanf("%f",&smith);
printf("\n\t ENTER THE NUMBER OF ABSTENSION:\t");
scanf("%f",&abs);
printf("\n\n\n\n\t NUNMBER WHO VOTE JOHN: %.2f",john);
printf("\n\t NUMBER WHO VOTE SMITH: %.2f",smith);
printf("\n\t NUMBER OF ABSTAIN VOTER: %.2f\n\n",abs);

totv=john+smith+abs;
y=(john/totv)*100;
z=(smith/totv)*100;
i=(abs/totv)*100;

printf("\n\t Total voters: %.2f voters.",totv);
printf("\n\n\t The percent who vote john: %.2f percent.",y);
printf("\n\t The percent who vote smith: %.2f percent.",z);
printf("\n\t Percent of abstention: %.2f percent.\n\n",i);

if (john>smith) {
printf("\n\t The winner is JOHN !!!! \n\n\n\n\n ",john);
}
else if (smith>john){
printf("\n\t The winner is SMITH !!!!\n\n\n\n ",smith);
}
else if (john==smith){
printf("\n\t NOBODY WIN !!!!\n\n\n\n\n");
}
printf("\n\t ENTER TO GO BACK TO MAIN MENU\n\n");
break;
case 2: /* obtain input data */
printf("\n\n\t Enter the radius of a sphere:\t ");
scanf("%d",&r);

/* calculate the volume of a sphere */
volume=Pi*r*r*r;

/* output data */
printf("\n\n\t The volume of a sphere is %d.\n\n\n\n\t",volume);
printf("\n\t ENTER TO GO BACK TO MAIN MENU\n\n");
break;

case 3: /*clrscr();*/
printf("\n\t Enter Mortgage Balance:\t");
scanf("%f",&mb);
printf("\n\t Enter Monthly Payment:\t\t");
scanf("%f",&mp);
printf("\n\t Enter Annual Rate:\t\t");
scanf("%f",&ar);
r=ar/100/q;
printf("\n\tMonth\t\tInterest\tBalance\n");
for(m=1;m

13/03/2014

C++ Program
(Voting)



main()

{

float john,smith,abs,totv,y,z,i;

printf("\n\n\t enter the number of votes for john:\n\t ");
scanf("%f",&john);
printf("\n\t enter the number of votes for smith:\n\t ");
scanf("%f",&smith);
printf("\n\t enter the number of abstension:\n\t ");
scanf("%f",&abs);
printf("\n\n\n\n\t number who vote john: %.2f",john);
printf("\n\t number who vote smith: %.2f",smith);
printf("\n\t number of abstain voter: %.2f\n\n",abs);

totv=john+smith+abs;
y=(john/totv)*100;
z=(smith/totv)*100;
i=(abs/totv)*100;

printf("\n\t total voters: %.2f voters.",totv);
printf("\n\n\t the percent who vote john: %.2f percent.",y);
printf("\n\t the percent who vote smith: %.2f percent.",z);
printf("\n\t percent of abstention: %.2f percent.\n\n",i);

if (john>smith) {
printf("\n\t the winner is JOHN !!!! \n\n\n\n\n ",john);
}
else if (smith>john){
printf("\n\t the winner is SMITH !!!!\n\n\n\n ",smith);
}
else if (john==smith){
printf("\n\t NOBODY WIN !!!!\n\n\n\n\n");
}

}

Want your school to be the top-listed School/college in Catbalogan?

Click here to claim your Sponsored Listing.

Location

Category

Telephone

Website

Address


Sitio Sto Nino Purok 2
Catbalogan
6700