Categories
C

Shutdown a Computer in C

In this article I will share the work of my friend Sir Ernel on how to shutdown a computer in Microsoft Windows XP.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

Program Listing

//Shutdown
Windows XP
#include<stdio.h>
#include<stdlib.h>
int main()
{
char ch;
printf("Do you want to shutdown your computer now?(y/n)\n");
scanf("%c",&ch);
if(ch=='y'||ch=='Y')
system("C:\\WINDOWS\\System32\\shutdown-s");
return 0;
}
Categories
C++

cout in C++

In this article I will show you how to use the cout command in C++ programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

Program Listing

// cout.cpp
// February  19, 2020
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;


int main()
{
    cout <<"\n\n";
    cout <<"\tAuthor : Jake Rodriguez Pomperada";
    cout <<"\n\n";
    cout << "\tSample Text Display Using cout in C++";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n\n";
}
Categories
Visual FoxPro

Factorial of a Number in Visual FoxPro

 In this article, I will show you how to write a program using a Microsoft Visual Foxpro to ask the user  to give a number, and then the program will compute the factorial value of the given number by our user and  display the results on the screen. 

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.


My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

Program Listing


* Object : Command1      Procedure: Click
*
* Created By Jake R. Pomperada, MAED-IT, MIT
* www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
* [email protected] 
* Microsoft Visual Foxpro 9.-
* Bacolod City, Negros Occidental, Philippines
   
   f = VAL(thisform.txtNumber.Text)
   
    LOCAL i, r

    r = 1
    FOR i = f TO 1 STEP -1
        r = r * i
    NEXT 
   
thisform.label2.Caption = "The factorial value is " + LTRIM(STR(r)) + "."

* Object : Command2      Procedure: Click
*

thisform.txtNumber.value = ""
thisform.label2.Caption = ""
thisform.txtNumber.SetFocus
Categories
C++

Bubble Sort in C++

In this articles, I will show you how to write a bubble sort program which uses C++ as our programming language using for loop statements and arrays data structures.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following [email protected], [email protected], and [email protected]

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.


// addition_subtraction.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// [email protected]
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
    int arr[100],n=0;
    int i=0,j=0,temp=0;

    cout <<"\n";
    cout <<"\t\tBubble Sort in C++\n\n";
    cout <<"\t  Jake R. Pomperada,MAED-IT,MIT";
    cout <<"\n\n";

	cout<<"\tGive the size of array: ";
	cin>>n;
    cout <<"\n\n";

	for(i=0;i<n;++i) {
        cout<<"\tGive Array Element Value No."
         <<(i+1)<< " : ";
		cin>>arr[i];
	}

	cout <<"\n\n";

	cout <<"\tOriginal Arrangement of Values";
	cout <<"\n\n";
	cout <<"\t";
	for(i=0;i<n;++i) {
		cout<<" "<<arr[i];
	}

	for(i=1;i<n;++i)
	{
		for(j=0;j<(n-i);++j)
			if(arr[j]>arr[j+1])
			{
				temp=arr[j];
				arr[j]=arr[j+1];
				arr[j+1]=temp;
			}
	}
    cout <<"\n\n";
	cout<<"\tArray Arrangement After Bubble Sort";
	cout <<"\n\n";
	cout <<"\t";
	for(i=0;i<n;++i) {
		cout<<" "<<arr[i];
	}
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
}


Categories
Java

Minimum and Maximum Number in Java

A program that will ask the user how many element to be process in array and then the program will determine which of the given number in minimum and maximum number using Java programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

/**
 * @author Jake Rodriguez Pomperada,MAED-IT, MIT
 * www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * [email protected]
 * Bacolod City, Negros Occidental Philippines
 */

import java.util.Scanner;


public class Minimum_Maximum_Numbers {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		 Scanner in = new Scanner(System.in);
	        
		 	int n=0, sum = 0;
		 	int min=0, max=0; 
		 	
	        System.out.println("\n");
	        System.out.print("\tMinimum and Maximum Number in Java");
	        System.out.println("\n");
	                 
	        System.out.print("\tEnter no. of elements you want in array:");
	        n = in.nextInt();
	        int a[] = new int[n];
	        
	        for(int i = 0; i < n; i++)
	        {
	        	System.out.print("\tGive element "
	        			+ " value no." + (i+1) + " : ");
	        	a[i] = in.nextInt();
	            
	        }
	        
	        min = max = a[0];
	        
	        for(int i=1; i < n; i++) {
	        	if(a[i] < min) min = a[i];
	        	if(a[i] > max) max = a[i];
	        }
	        System.out.println();
	        System.out.println("\tMinimum Number  : " + min +"." ); 
	        System.out.println("\tMaximum Number  : " + max +"." );
	        System.out.println();
	        System.out.println("\tEnd of Program");
	        System.out.println("\n");
	}

}
Categories
Perl

Square Root Converter in PERL

 I will show you how to write a Perl program that will ask the user to give a number and then the program will convert the given number to it’s square root equivalent.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing


# square_root.pl
# Author : Jake Rodriguez Pomperada, MAED-IT
# Date   : November 4, 2019   Monday
# Email  : [email protected]
do {
system("cls");
print "\n\n";
print "\tSquare Root Converter in PERL";
print "\n\n";
print "\tGive a Number : ";
chomp($num_val =<>);
$result = sqrt($num_val);
print "\n";
print "\tThe Square Root Value of $num_val is $result.";
print "\n\n";
print "\tDo you want to continue Y/N? : ";
chomp($reply =<>);
} while (uc $reply eq 'Y');
print "\n";
print "\tEnd of Program";
print "\n\n";
Categories
Perl

Loan Interest Solver in PERL

In this tutorial, I will show you how to write a Perl program that will ask the user the principal amount, number of years, and interest rate of the loan of the customer, and then the program will compute the interest amount to be paid by the customer and display the result on the screen.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following [email protected], [email protected], and [email protected]

My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

# interest.pl
# Author  : Jake Rodriguez Pomperada, MAED-IT
# Date    : October 21, 2020
# Website : www.jakerpomperada.blogspot.com  / www.jakerpomperada.com 
# Email   : [email protected]

do {
system("cls");
print "\n\n";
print "\tLoan Interest Solver in PERL";
print "\n\n";
print "\tEnter Principal Amount PHP : ";
chomp($principal =<>);
print "\tEnter Number of Years      : ";
chomp($time =<>);
print "\tEnter Percent Rate %       : ";
chomp($rate =<>);
$solve_interest = ($principal * $time * $rate) / 100;
print "\n";
$result = sprintf("%.2f", $solve_interest); 
print "\n";
print "\tThe Interest is PHP $result.";
print "\n\n";
print "\tDo you want to continue Y/N? : ";
chomp($reply =<>);
} while (uc $reply eq 'Y');
print "\n";
print "\tEnd of Program";
print "\n\n";
Categories
Java

Average Score in Java

 A simple program that I wrote using Java programming language to compute the average score given by the user.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Sample Program Output

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * [email protected]
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * October 20, 2020   Monday
 */


import java.util.Scanner; 
public class Average_Score {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int score1, score2, score3, score4, score5 ;  
	    double average;              
	    char repeat;                 
	    String input;                
	      
	      	      
	      Scanner keyboard = new Scanner(System.in);
	      
	      
	      do
	      {
	      
	       System.out.println("\n");
		  System.out.print("\t\tAverage Score in Java");
 	      System.out.println("\n");
	      
	      	         
	         System.out.print("\tEnter Score No. 1 : ");
	         score1 = keyboard.nextInt();
	         

	         System.out.print("\tEnter Score No. 2 : ");
	         score2 = keyboard.nextInt();
	         

	         System.out.print("\tEnter Score No. 3 : ");
	         score3 = keyboard.nextInt();
	         
	         System.out.print("\tEnter Score No. 4 : ");
	         score4 = keyboard.nextInt();
	         
	         
	         System.out.print("\tEnter Score No. 5 : ");
	         score5 = keyboard.nextInt();
	         	         
	         keyboard.nextLine();

	          average = (score1 + score2 + score3 + score4 + score5) / 5.0;
	          System.out.println();
	         System.out.println("\tThe average score is " + average);
	         System.out.println();   

	         System.out.print("\tContinue Y for yes or N for no: ");
	         input = keyboard.nextLine();  
	         repeat = input.charAt(0);     

	      } while (repeat == 'Y' || repeat == 'y');
	      System.out.print("\n\n");
		  System.out.println("\tEnd of Program");
		  System.out.println("\n\n");
	}

}

Categories
Java

Compound Interest in Java

A Java program that I wrote to ask the user to give the principal amount, rate, and years to be paid by the user.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.
My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.


Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Sample Program Output
/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * [email protected]
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * October 20, 2020   Monday
 */


import java.util.Scanner; 
import java.text.DecimalFormat;

public class Compound_Interest {
	
	 private static DecimalFormat df2 = new DecimalFormat("#.###");

	public static void main(String[] args) {
		// TODO Auto-generated method stub

  		  Scanner input = new Scanner(System.in);
				 	      
	      System.out.println("\n");
		  System.out.print("\t\tCompound Interest m in Java");
 	      System.out.println("\n");
	      
	      System.out.print("\tEnter Principal Amount   :  ");
	      double principal_amt = input.nextDouble();
    
	      System.out.print("\tEnter Interest Rate      :  ");
	      double rate = input.nextDouble();
    
	      System.out.print("\tEnter Number of Years    :  ");
	      double time = input.nextDouble();
    
	        // Calculate compound interest rate here 
	      
	      double CI = principal_amt * 
	                 (Math.pow((1 + rate / 100), time));
	        
	     System.out.print("\n");
	     System.out.println("\tThe Compound Interest is $  "+ df2.format(CI)); 
	     System.out.print("\n\n");
		 System.out.println("\tEnd of Program");
		 System.out.println("\n\n");
		
	}

}
Categories
Java

Payroll Program in Java

 I wrote this java program to compute the salary of an employee in the company.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following [email protected], [email protected], and [email protected]
My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.
Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.

Program Listing

/**
 * @author Jake Rodriguez Pomperada, MAED-IT, MIT
 * [email protected]
 * www.jakerpomperada.com
 * Bacolod City, Negros Occidental
 * October 19, 2020   Monday
 */


import java.util.Scanner; 
import java.math.RoundingMode;
import java.text.DecimalFormat;

public class Payroll_Program {

	/**
	 * @param args
	 */
	
	 private static DecimalFormat df2 = new DecimalFormat("#.###");

	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		  String emp_name;         
	      int hours;           
	      double payRate;      
	      double grossPay;     
	      

	      Scanner input = new Scanner(System.in);
	      
	      System.out.println("\n");
		  System.out.print("\t\tPayroll Program in Java");
  	      System.out.println("\n");
	      
	      System.out.print("\tGive Employees Name :  ");
	      emp_name = input.nextLine();
     
	      System.out.print("\tHow many hours did you work this week? : ");
	      hours = input.nextInt();
	      
	      
	      System.out.print("\tWhat is your hourly pay rate? : ");
	      payRate = input.nextDouble();
	      
	       grossPay = hours * payRate;
	      
	      System.out.print("\n");
	      System.out.print("\t===== Display Records =====");
	      System.out.print("\n\n");
	      System.out.println("\tEmployees Name :  " + emp_name);
	      System.out.println("\tGross Pay      : PHP " + df2.format(grossPay));
	      System.out.print("\n\n");
		  System.out.println("\tEnd of Program");
	       System.out.println("\n\n");
	}

}