Thursday, September 17, 2020

How to use and run a C++ program using Dev C++

Addition of Four Numbers in C++

 A simple program to ask the user to give four numbers and then the program will compute the sum of the four values given by the user using 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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

// Addition of Four Numbers in C++
// Author : Jake Rodriguez Pomperada,MAED-IT,MIT
// Date   : September 17, 2020
// Location : Bacolod City, Negros Occidental Philippines
// Email   : jakerpomperada@gmail.com

#include <iostream>

using namespace std;

int main() {
int sum=0,a=0,b=0,c=0,d=0;
cout << "\tAddition of Four Numbers in C++";
cout << "\n\n";
cout << "\tGive Four Numbers : ";
cin >> a >> b >> c >> d;
sum = (a+b+c+d);
cout << "\n\n";
cout << "\tThe total sum is " << sum << ".";
}

Swapping of Two Numbers in PHP

Swapping of Two Numbers in PHP

 A simple program to demonstrate how to swap two numbers in PHP 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

index.php

<?php  
$a = 400;  
$b = 800;  

echo "<h2>Swapping of Two Values in PHP";
echo "<br><br>";
echo "Before swapping:<br>";  
echo "a =".$a."  b=".$b; 
echo "<br><br>"; 
// Swapping of Values 
$third = $a;  
$a = $b;  
$b = $third;  
echo "After swapping:<br>";  
echo "a =".$a."  b=".$b; 
echo "</h2>";

?>  

Wednesday, September 16, 2020

Square Root a Number in VB NET

Square Root a Number in VB.NET

 I wrote this simple program using Microsoft Visual Basic.NET to ask the user to give a number and then the program will compute the square root value of the given number 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 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

Public Class Form1

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim result As DialogResult = MessageBox.Show("Do you want to quit?", _
                             "Quit Program", _
                             MessageBoxButtons.YesNo)

        If (result = DialogResult.Yes) Then
            End
        Else
            TextBox1.Text = ""
            TextBox2.Text = ""
            TextBox1.Focus()
        End If

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim num_compute As Integer = Math.Sqrt(CInt(TextBox1.Text))

        TextBox2.Text = num_compute.toString
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox1.Focus()
    End Sub
End Class


 

Cube a Number in VB NET

Cube a Number in VB.NET

 A simple program that I wrote that will ask the user to give a number and then the program will compute the cube value of the given number using Microsoft Visual Basic NET.

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

Public Class Form1

    Function cube(ByVal n As Integer) As Integer
        Return Math.Pow(n, 3)
    End Function

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Dim result As DialogResult = MessageBox.Show("Do you want to quit?", _
                             "Quit Program", _
                             MessageBoxButtons.YesNo)

        If (result = DialogResult.Yes) Then
            End
        Else
            TextBox1.Text = ""
            TextBox2.Text = ""
            TextBox1.Focus()
        End If

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim num_compute As Integer = cube(CInt(TextBox1.Text))

        TextBox2.Text = num_compute.toString
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox1.Focus()
    End Sub
End Class

Tuesday, September 15, 2020

Decimal To Binary Converter in VB.NET

 Write a Visual Basic.NET program to ask the user to give a decimal value and thenthe program will convert into binary value.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

Public Class Form1

    Public Shared Function DecimalToBinary(dec As Integer) As String
        If dec < 1 Then Return "0"

        Dim binStr As String = String.Empty

        While dec > 0
            binStr = binStr.Insert(0, (dec Mod 2).ToString())
            dec = Int(dec / 2)
        End While

        Return binStr
    End Function

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim data = CInt(TextBox1.Text)
        Dim value = DecimalToBinary(data)

        TextBox2.Text = value.ToString

    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox1.Focus()

    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        End
    End Sub
End Class

Monday, September 14, 2020

Sum of Digits in Visual Basic.NET

 Write a Visual Basic.NET program to ask the user to give a series of number and then the

program will calculate the sum of the digits of a given number.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim n, sum, r As Integer
        Dim display As String
        n = CInt(TextBox1.Text)
        sum = 0
        While n <> 0
            r = n Mod 10
            sum += r
            n \= 10
        End While
        display = sum.ToString()
        TextBox2.Text = display
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox1.Focus()
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        End
    End Sub
End Class


Odd and Even Number in Java

Odd and Even Number Checker in Java

 Write a program using Java programming language to ask the user to give a number and then the program will check and determine whether the given number is an odd or even number 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 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

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

package odd_even;

import java.util.Scanner;

public class odd_even {

public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        
        System.out.println("\n");
    System.out.print("\t\tOdd and Even Number Checker in Java");
    System.out.println("\n");
    
        System.out.print("\tEnter a number: ");
        int num = reader.nextInt();
        
        System.out.println();
        
        if(num % 2 == 0)
            System.out.println("\tThe given number " 
            + num + " is an Even Number.");
        else
            System.out.println("\tThe given number " 
                     +num + " is an Odd Numbe.r");
System.out.println("\n");
     System.out.println("\tEnd of Program");
     System.out.println("\n\n");
}
}



Addition of Two Numbers in Java

Addition of Two Numbers in Java

 A simple program that will ask the user to give two numbers and then the program will compute the sum of the two numbers using Java programming language. I am using Eclipse as my Java integrated development environment.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

addition.java


import java.util.Scanner;

public class Addition {

public static void main(String[] args) {
   int num1, num2, sum;
   Scanner sc = new Scanner(System.in);
     System.out.println("\n");
    System.out.print("\t\tAddition of Two Numbers in Java");
    System.out.println("\n");
 
        System.out.print("\tEnter First Number: ");
        num1 = sc.nextInt();
        
        System.out.print("\tEnter Second Number: ");
        num2 = sc.nextInt();
        
        sc.close();
        sum = num1 + num2;
        
        System.out.print("\n");
        System.out.print("\tThe sum of " + num1 + " and " 
                  + num2 + " is "+ sum + ".");
        System.out.println("\n");
        System.out.println("\tEnd of Program");
        System.out.println("\n\n");
}

}


Saturday, September 12, 2020

Number Palindrome in C++

Number Palindrome in C++

 A simple program to ask the user to give a number and then the program written in C++ will check if the given number is a Palindrome or Not a Palindrome.

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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

#include <iostream>

using namespace std;

int main()
{
int a=0,no=0,b=0,temp=0;
int original=0;

cout <<"\n\n";
cout <<"\tNumber Palindrome in C++";
cout <<"\n\n";
cout<<"\tGive Any Number : ";
cin>>no;

b=no;
original = no;

cout << "\n\n";

while(no>0)
{
a=no%10;
no=no/10;
temp=temp*10+a;
}
if(temp==b)
{
cout<<"\tThe given number " 
    << original<<" is a Palindrome.";
}
else
{
cout<<"\tThe given number " 
    << original<<" is Not a Palindrome.";
}
cout <<"\n\n";
cout << "\tEnd of Program";
cout <<"\n\n";
}


Friday, September 11, 2020

Hello World in C++

String Palindrome in C++

String Palindrome in C++

 This program will ask the user to give a string and then the program will check if the given string is a Palindrome or Not using a 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 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

// string_palindrome.cpp
// This program will ask the user to give a string 
// and then the program will check if the given 
// string is a Palindrome or Not using  a
// C++ programming language.
// Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
// Website  : http://www.jakerpomperada.com
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental Philippines.

#include <iostream>

using namespace std;

int a=0,len=0,j=0,flag=1;
char given_str[100];

int main()
{
cout <<"\n\n";
cout <<"\tString Palindrome in C++\n\n";
cout<<"\tGive a string: ";
cin>>given_str;
    
for(len=0;given_str[len]!='\0';len++);
   
for(a=0,j=len-1;a<len/2;a++,j--)
{
if(given_str[j]!=given_str[a])
flag=0;
}

cout <<"\n\n";

if(flag==1)
{
cout<<"\tThe given string " <<given_str <<  
      " is Palindrome";
}
else
{
cout<<"\tThe given string " << given_str <<  
      " is Not Palindrome";
}
cout <<"\n\n";
cout << "\tEnd of Program";
}

Thursday, September 10, 2020

Average Grade Solver Using if-else in C++

 A simple program to compute the average grade of the student using if-else statement using 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 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 I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com

Program Listing

//  grade_average.cpp
//  A C++ program using arrays and if-else statement to
//  solve the average of the student
//  Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
//  Website  : http://www.jakerpomperada.com
//  Email    : jakerpomperada@gmail.com
//  Location : Bacolod City, Negros Occidental Philippines


#include <iostream>

using namespace std;

int main()
{
        int mark[6];
        float sum=0.00,average=0.00;

        cout << "\n\n";
        cout << "\tAverage Grade Solver Using if-else in C++";
        cout << "\n\n";
        for(int a=0; a<6; a++)
        {
            cout<<"\nGive Grade[ "<<a+1<<" ] :: ";
                cin>>mark[a];
                sum+=mark[a];
        }

        average=(sum/6);
  
        cout << "\n\n"; 
        cout << "\tThe Average Grade is " <<average <<"\n\n";
        cout<<"\tYour Letter Grade is :: ";
        if(average>=90)
        {
                cout<<"[ A ]\n";
        }
        else if(average>70 && average<=80)
        {
                cout<<"[ B ]\n";
        }
        else if(average>60 && average<=70)
        {
                cout<<"[ C ]\n";
        }
        else
        {
                cout<<"[ D ]\n";
        }
        cout <<"\n\n";
        cout << "\tEnd of Program";
}