Friday, October 23, 2020

Cube Root Solver in C++

 A simple program that I wrote that will ask the user to give a number and then the program will convert the given number into its cube 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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

// Cube_Root_Solver.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
    int num=0;
    double cube_root =0;

    cout <<"\n";
    cout <<"\tCube Root Solver in C++";
    cout <<"\n\n";
    cout <<"\tGive a Number : ";
    cin >> num;

    cube_root = pow(num,(float)1/3);

    cout <<"\n\n";
    cout << "\tThe Cube Root of " << num << " ] is "
         << cube_root << ".\n";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
}



Sum and Difference of Two Numbers in C++

Sum and Difference of Two Numbers in C++

 A simple program program that I wrote using C++ to ask the user to give two numbers and then the program will compute the sum and difference of the two given numbers 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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

// sum_difference.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
    int a=0,b=0,sum=0,difference=0;

    cout <<"\n";
    cout <<"\tSum and Difference of Two Numbers in C++";
    cout <<"\n\n";
    cout <<"\tGive First  Value : ";
    cin >> a;
    cout <<"\tGive Second Value : ";
    cin >> b;

    sum = (a+b);
    difference = (a-b);

    cout <<"\n\n";
    cout << "\tThe sum of " << a << " and " << b <<
         " is " << sum <<"."<<"\n";
    cout << "\tThe difference between " << a << " and " << b <<
         " is " << difference <<"."<<"\n";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
}




Addition of Two Numbers in Delphi

Addition of Two Numbers in Delphi

 A simple program that I wrote using Borland Delphi to ask the user to give two numbers and then the program will compute the sum of two numbers and display the results in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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

unit Addition;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Label4: TLabel;
    Button2: TButton;
    Button3: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  if MessageDlg('Do you really want to quit?', mtConfirmation,
      [mbYes, mbNo], 0) = mrYes then
    Close
  else
    form1.show;
end;


procedure TForm1.Button2Click(Sender: TObject);
var a,b : integer;
    x,y,sum : string;

begin
    x := edit1.Text;
    y := edit2.Text;

    a := StrToInt(x);
    b := StrToInt(y);

    sum := IntToStr(a+b);

    label4.caption := 'The sum of ' +x + ' and '
                + y + ' is ' + sum + '.';
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
   edit1.Text := '';
   edit2.Text  := '';
   label4.caption :='';
   edit1.SetFocus;
end;

end.

Product of Two Numbers in Delphi

Thursday, October 22, 2020

Product of Two Numbers in Delphi

 A simple program to ask the user to give two numbers and then program will compute the product of two numbers.

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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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

unit Product;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Edit1: TEdit;
    Label2: TLabel;
    Edit2: TEdit;
    Label3: TLabel;
    Edit3: TEdit;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  a,b  : Integer;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
a := strtoint(edit1.Text);
b := strtoint(edit2.Text);

edit3.text := inttostr(a*b);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
edit1.text := '';
edit2.text := '';
edit3.text := '';
edit1.SetFocus;
end;

end.

Payroll Program in PHP

Payroll Program in PHP

 A simple program using PHP to solve 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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


<!doctype html>

<html>

<head>

<title>Payroll Program in PHP</title>

</head>

<body>


<style>

body {


font-family: arial;

size: 12px;

}

</style>

<form method="POST" action="">

<h2>Payroll Program in PHP</h2>

<?php

$days_work=$rate=$g_sal=$deduct=$n_sal=0;

if(isset($_POST['compute'])){

$days_work=$_POST['days_work'];

$rate=$_POST['interest_rate'];

$g_sal=$days_work*$rate;

$deduct=$g_sal*.1;

$n_sal=$g_sal-$deduct;

}

?>

<p>Number of Days Work: <input type="text" name="days_work" size="8" value="<?=$days_work;?>"/></p>

<p>Rate Per Day: <input type="text" name="interest_rate" size="8" value="<?=$rate;?>"/></p>

<p><input type="submit" name="compute" value="Compute Salary"/></p>

<p>

Gross Salary: <?=number_format($g_sal, 2);?><br/>

Deduction: <?=number_format($deduct, 2);?><br/>

Net Salary: <?=number_format($n_sal, 2);?>

</p>

</form>

</body>

</html>

Wednesday, October 21, 2020

LLE part 6

Square Root Converter in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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


Program Listing

# square_root.pl
# Author : Jake Rodriguez Pomperada, MAED-IT
# Date   : November 4, 2019   Monday
# Email  : jakerpomperada@gmail.com
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";

Loan Interest Solver in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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   : jakerpomperada@gmail.com

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";

Minimum and Maximum Number in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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


Program Listing

/**
 * @author Jake Rodriguez Pomperada,MAED-IT, MIT
 * www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * jakerpomperada@gmail.com
 * 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");
}

}


Tuesday, October 20, 2020

Kilometers To Miles in Java

 A program that will ask the user to give a distance in kilometers and then it will convert into miles equivalent 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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


Program Listing

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

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

public class Kilometers_Miles {

private static DecimalFormat df2 = new DecimalFormat("#.###");

public static void main(String[] args) {
// TODO Auto-generated method stub
  Scanner in = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tKilometers To Miles in Java");
        System.out.println("\n");
        System.out.print("\tEnter Number of Kilometers : ");
        
        double km =in.nextDouble();
        double miles = (km * 0.621);
        
        System.out.println("\n");
        System.out.println("\t" + km + " Kilometer(s) is "
                          + df2.format(miles) + " Miles(s).");
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println("\n");

}

}



Arithmetic Operators in Java

 A program that I wrote using Java programming language that will ask the user to give two numbers and then the program will compute the sum, difference, product, and quotient of the two numbers 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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


Program Listing

/**
 * @author Jake Rodriguez Pomperada,MAED-IT, MIT
 * www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * jakerpomperada@gmail.com
 * Bacolod City, Negros Occidental Philippines
 * October 20, 2020  
 */

import java.util.Scanner;

public class Arithmetic_Operators {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner in = new Scanner(System.in);
        
        System.out.println("\n");
        System.out.print("\tArithmetic Operators in Java");
        System.out.println("\n");
        System.out.print("\tGive First Value  : ");
        int a =in.nextInt();
        System.out.print("\tGive Second Value : ");
        int b =in.nextInt();
        
        int addition = (a+b);
        int subtract = (a-b);
        int product  = (a*b);
        int quotient = (a/b);
        
        System.out.println("\n");
        System.out.println("\t===== DISPLAY RESULTS =====");
        System.out.println();
        System.out.println("\tThe sum of " + a + " and "
                    + b + " is " + addition +".");
        System.out.println("\tThe difference of " + a + " and "
            + b + " is " + subtract +".");
               System.out.println("\tThe product of " + a + " and "
    + b + " is " + product +".");
        System.out.println("\tThe quotient of " + a + " and "
            + b + " is " +  quotient  +".");
        System.out.println();
        System.out.println("\tEnd of Program");
        System.out.println("\n");

}

}


Average Score in 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 jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

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

 * jakerpomperada@gmail.com

 * 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");

}


}