Tuesday, September 12, 2017

Largest of Three Numbers in Java

In this article I would like to share with you a simple program that I wrote using Java to ask the user to give three numbers and then our program will determine which of the three numbers is the biggest or largest in terms of numerical value.  The code is very simple and easy to understand.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Sample Program Output


Program Listing


Largest_Three_Numbers.java


/**
 * 
 */
package largest_three;

import java.util.Scanner;

/**
 * @author Jake R. Pomperada
 * Bacolod City, Negros Occidental, Philippines
 * September 12, 2017   Tuesday
 */

public class Largest_Three_Numbers {

/**
* @param args
*/

public static void largest_three_values(int a, int b, int c)
{
if (a >= b && a >= c) {
System.out.print("\n\n");
System.out.print("The Largest Number is " + a + "." );
System.out.print("\n\n");
System.out.print("End of Program");
}
if (b >= a  && b >= c) {
System.out.print("\n\n");
System.out.print("The Largest Number is " + b + "." );
System.out.print("\n\n");
System.out.print("End of Program");
}
if (c >= a  && c >= a) {
   System.out.print("\n\n");
System.out.print("The Largest Number is " + c + "." );
System.out.print("\n\n");
System.out.print("End of Program");
}
}

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);

int val1=0;
int val2=0;
int val3=0;
System.out.print("\n\n");
System.out.print("===== Largest of Three Numbers in Java ====");
System.out.print("\n\n");
System.out.print("===== Written By: Mr. Jake R. Pomperada =====");;
System.out.print("\n\n");
System.out.print("Enter Three Numbers : ");
val1=input.nextInt();
val2=input.nextInt();
val3=input.nextInt();
largest_three_values(val1,val2,val3);
input.close();
}

}





Mathematics Tutorial Services in Bacolod City


Having problems following through classroom lectures in mathematics and science and appreciating mathematics and science at its basics? Do you need assistance in coping with the inherent challenges encountered with these subjects? You might just be in need of a follow up, or some more practice in solving problems in these areas. Then a one-on-one or guided practice might be the one for you. 
Mathematics is all about procedures and pattern(s) recognition in solving. If these procedures and patterns are understood, any mathematical procedure no matter how complex is made a lot easier and manageable as they may first appear at first reading. Scientific problems on the other hand need mathematical skills in applying the given information in the problem to appropriate formulas together with information like what is given and what is required in the problem.
Dr. Ma. Junallie F. Pomperada is a professor of the College of Engineering of the University of St. La Salle in the Chemical Engineering Department. Graduated from University of Negros Occidental-Recoletos and finished her Master of Engineering Major in Chemical Engineering from Central Philippine University. She finished her Doctor of Philosophy in Technology Management from Carlos Hilado Memorial State College.

Tutorial Services Offered:
Inorganic Chemistry, Analytical Chemistry, Thermodynamics, Algebra, Trigonometry, Differential and Integral Calculus, Differential Equations, Advanced Engineering Mathematics, Chemical Reaction Engineering, Process Control ad Unit Operations with Specialization in Distillation, Evaporation, Gas Absorption, Stripping, Extraction and Leaching.
She caters high school and college students who are is need proper guidance and direction in mathematics subjects. Her tutorial hourly rate's are very affordable it will discuss before the tutorial session.
Available time tutorial schedule will be on Saturday and Sunday only.

Big discounts for a group of students who will avail of her tutorial services.
For more information kindly contact her in her mobile number 0917 - 701 - 0825.
Email address :  mjefpomperada@yahoo.com.ph
Home Telephone Number : 433  - 5675

Facebook Address: https://www.facebook.com/allie.fuentebella






Sunday, September 10, 2017

Sum of Four Numbers Using Methods in Java


In this article I would like to share with you guys a simple program to ask the user to give four numbers and then our program will compute it's sum using a method in Java. The code is very simple and easy to understand for people that are very new in Java programming I hope you will find my work useful. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.






Sample Program Output


Program Listing

/**
 * 
 */
package addition_four_numbers;

import java.util.Scanner;


/**
 * @author Jake Rodriguez Pomperada, MAED-IT
 * Location : Bacolod City, Negros Occidental Philippines.
 * Date     : September 10, 2017  Sunday  12:13 PM
 */
public class Addition_Four_Numbers {

public static int total_sum(int a,int b, int c, int d)
{
int find_sum=0;
find_sum = (a+b+c+d);
System.out.print("\n\n");
System.out.print("The total sum is  " + find_sum + ".");
return find_sum;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);

int val1=0;
int val2=0;
int val3=0;
int val4=0;
System.out.print("\n\n");
System.out.print("===== Sum of Four Numbers Using Methods in Java ====");
System.out.print("\n\n");
System.out.print("===== Written By: Mr. Jake R. Pomperada =====");;
System.out.print("\n\n");
System.out.print("Enter First Number : ");
val1=input.nextInt();
System.out.print("Enter Second Number : ");
val2=input.nextInt();
System.out.print("Enter Third Number : ");
val3=input.nextInt();
System.out.print("Enter Fourth Number : ");
val4=input.nextInt();
total_sum(val1,val2,val3,val4);
input.close();

}

}



Sunday, September 3, 2017

Maximum Value Checker in Java

A very simple program that I wrote that will check and determine which of the given list of numbers in our array is the maximum or the biggest in terms of numerical value using Java as my programming language.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.



Sample Program Output


Program Listing


Maximum_values.java


/**
 * 
 */
package array_demo;

/**
 * @author Jacob F. Pomperada
 * September 3, 2017  Sunday
 * Mandaluyong City, Metro Manila
 *
 */
public class Maximum_values {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int b[] = {100,35,567,5,62};
int max_value=0;
for (int a=0; a<5; a++)
{
if (b[a] > max_value)
{
max_value=b[a];
}
}

 System.out.println();
       System.out.println("Maximum Value Checker in Java");
       System.out.println();
       System.out.println("Written By Mr. Jake R. Pomperada, MAED-IT");
       System.out.println();
        System.out.print("The Maximum value in the array is " + max_value + ".");
System.out.println("\n\n");
       System.out.println("End of Program");
       System.out.println();

}

}





Minimum Value Checker in Java

A very simple program that I wrote using Java to check which of the list of numbers in an array is the smallest in terms of numerical value.  The code is very simple and easy to understand.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.



Sample Program Output



Program Listing


minimum_value.java


/**
 * 
 */
package array_demo;

/**
 * @author Jacob
 *
 */
public class minimum_value {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=0,min_value=0;
int b[] = {100,35,567,5,62};
min_value=b[0];
for (a=0; a<5; a++)
{
if (min_value > b[a])
{
min_value=b[a];
}
}

 System.out.println();
       System.out.println("Minimum Value Checker in Java");
       System.out.println();
       System.out.println("Written By Mr. Jake R. Pomperada, MAED-IT");
       System.out.println();
System.out.print("The Minimum value in the array is " + min_value + ".");
System.out.println("\n\n");
       System.out.println("End of Program");
       System.out.println();
}

}



Method Overloading in Java

Here is a sample program that shows you how to perform method overloading in Java. The code is very simple and shows your one of the most important concepts of object oriented programming in Java.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.


Program Listing


/**
 * 
 */
package method_overload;

/**
 * @author Jacob Samuel F. Pomperada
 * September 3, 2017
 * Sunday
 * Mandaluyong City, Metro Manila
 *
 */


class product {
private int a;
private int b;
    product()
{
a=5;
b=10;
}
    
   product(int x, int y)
    {
    a=x;
    b=y;
    }
   product(product z)
   {
  
  a= z.a;
  b= z.b;
   }
   
   
int compute()
{
return a*b;
}


}

public class test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
product test1 = new product();
product test2  = new product(2,3);
product test3  = new product(test2);
System.out.println();
        System.out.println("Method Overloading in Java");
        System.out.println();
        System.out.println("Written By Mr. Jake R. Pomperada, MAED-IT");
        System.out.println();
        System.out.println("The value is " +  test1.compute());
        System.out.println("The value is " +  test2.compute());
        System.out.println("The value is " +  test3.compute());
        System.out.println();
        System.out.println("End of Program");
        System.out.println();

}

}




Inventory and Accounting System in Visual Basic 6

In this article I would like to share with you the work of my good friend and fellow software engineer Mr. Joseph Salac it is a an Inventory and Account System in Visual Basic 6 which has a function also of Point of Sale. I request Joseph if he can share his code to us and he send me a copy of this one. Thank you very much Joseph for this one it will be appreciated by our fellow programmers around the world who visited my website.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Saturday, September 2, 2017

Fibonacci Numbers in C++

Here is a very simple program that will ask the user to give a number and then our program will generate the fibonacci series of numbers using C++ as our programming language.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




Program Listing


#include <iostream>

using namespace std;


int main()
{
int x=0,y=0,i=0, n=0 ,sum=0;

cout << "===== FIBONACCI NUMBERS IN C++ =====";
cout << "\n\n";
cout<<"Give a Number : ";
cin>>n;
cout<<"Fibonacci Series is : "<<"\n";
x=0;
y=1;
cout<<x;
cout << "\n\n";
cout<<y;
for(i=3;i<=n;i++)
{
sum=x+y;
cout<<sum<<"\n";
x=y;
y=sum;
}
cout << "\n\n";
cout<<"End of Program";
cout << "\n\n";
}












Fibonacci Numbers in Visual Basic 6

A very simple program that I wrote using Microsoft Visual Basic 6 to accept a number from our user and generate a series of Fibonacci Numbers based on the given number by our user. The code is very simple and easy to understand.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.





Sample Program Output


Program Listing

'Fibonacci Numbers in Visual Basic 6
'Date : September 2, 2017
' Written By: Mr. Jake R. Pomperada, MAED-IT
' Mandaluyong City, Metro Manila Philippines


Private Sub Command1_Click()
Dim a, b, c, input_values As Integer
Picture1.Cls
input_values = Val(Text1.Text)
a = 1
For x = 1 To input_values
    If x > 2 Then
        c = a + b
        a = b
        b = c
        Picture1.Print c & Space(2);
    Else
        Picture1.Print a & Space(2);
        b = a
    End If
Next x
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Picture1.Cls
Text1.SetFocus
End Sub

Private Sub Command3_Click()
End
End Sub



Swap Two Numbers in Visual Basic 6

In this article I would like to share with you a very simple program that I wrote in Microsoft Visual Basic 6 to ask the user to give two numbers and then our program will swap or interchange the two number being provided by our user. The code uses a procedure that I wrote in Visual Basic 6 I hope you will find my work useful. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.






Sample Program Output



Program Listing

'Swap Two Numbers in Visual Basic 6
'Date : September 2, 2017
' Written By: Mr. Jake R. Pomperada, MAED-IT
' Mandaluyong City, Metro Manila Philippines

Public Sub SwapTwoNumbers(Var1 As Integer, Var2 As Integer)
  Dim TempVar As Integer
  TempVar = Var1
  Var1 = Var2
  Var2 = TempVar
  
  Text3.Text = Var1
  Text4.Text = Var2
End Sub


Private Sub Command1_Click()
Dim A As Integer
Dim B As Integer

A = Val(Text1.Text)
B = Val(Text2.Text)

SwapTwoNumbers A, B

End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text1.SetFocus
End Sub

Private Sub Command3_Click()
End
End Sub