Categories
C++

Square a Number in C++

 I wrote this program to ask the user to give a number and then the program will compute the square equivalent of the given number using the 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

// square_number.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.com 
// www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com
// November 21, 2020   Saturday  8:52 PM
// Bacolod City, Negros Occidental, Philippines

#include <iostream>

int main()
{
	int num_val = 0;
	
	std::cout << "\n\n";
	std::cout << "\tSquare a Number in C++";
	std::cout << "\n\n";
	std::cout << "\tGive a Number : ";
	std::cin >> num_val;
	
	std::cout << "\n";
	std::cout << "\tThe square value of " <<
	       num_val << " is " <<
	       num_val * num_val << ".";
	       
	std::cout << "\n\n";       
	std::cout << "\tEnd of Program";
	std::cout << "\n\n";       
}
Categories
C++

Inches to Centimeter in C++

In this tutorial, I will show you how to write a program to ask the user to give a value in inches and then the program will convert it into a centimeter value using the 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button,

SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing


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

#include <iostream>

int main()
{
    float inches=0.00,centimeter=0.00;
    
    std::cout << "\n\n";
    std::cout << "\tInches to Centimeter in C++";
	std::cout <<"\n\n";
    std::cout <<"\tGive value in Inches : ";
    std::cin>>inches;
 	
	 centimeter =(inches*2.54);
 	
    std::cout << "\n\n";
    std::cout << "\tThe centimeter value is " << 
            centimeter <<".";
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}
Categories
C++

Text Color and Delay in C++ Using Dev C++

 I wrote this program to demonstrate how to use text color and delay in C++ using Dev C++ 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Thank you very much.

Program Listing

#include <iostream>

#include <windows.h>



using namespace std;



int main()

{

    HANDLE colors=GetStdHandle(STD_OUTPUT_HANDLE);



    string text;

    int a=0;

    text = "Master in Information Technology";

    cout << "\n\n";

    cout << "\tText Color and Delay in C++ Using Dev C++";

	cout <<"\n\n";

    cout <<"\t";

    for(int i=0;i<text.length(); i++)

    {

        a>9 ? a=0 : a++;



        if(a==0)

        {

            SetConsoleTextAttribute(colors,1);

        }else

        {

            SetConsoleTextAttribute(colors,a);

        }

        cout<<text.at(i);

        Sleep(100);

    }

    cout << "\n\n";

    cout << "\tEnd of Program";

    cout << "\n\n";

}

Categories
C++

Count Digits in C++

 In this tutorial, I will show you how to write a program that will ask the user to give a series of numbers and then the program will count the digits in a given number using the 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 at 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

/* Count_Digits.cpp
   Jake Rodriguez Pomperada, MAED-IT, MIT
   November 13, 2020  Friday
   www.jakerpomperada.com
   jakerpomperada@gmail.com
   Bacolod City, Negros Occidental, Philippines
*/

#include <iostream>

long long int a=0;


int main()
{

    int x=0;

    std::cout <<"\n\n";
    std::cout <<"\tCount Digits in C++";
    std::cout <<"\n\n";
    std::cout <<"\tGive a Number : ";
    std::cin >> a;

    std::cout <<"\n\n";

    for (x = 1; a >= 10; x++)
    {
        a = a / 10;
    }

    std::cout <<"\tThe Variable a contains " 
	          <<  x << " digits.\n";
    std::cout <<"\n\n";
    std::cout <<"\tEnd of Program";
    std::cout <<"\n\n";
}
Categories
C++

Area And Perimeter of a Rectangle in C++

 I wrote this program that will ask the user to give of length and width of the rectangle and then the program will compute the area and perimeter of the rectangle 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing


// rectangle.cpp
// Author   : Jake Rodriguez Pomperada,MAED-IT, MIT
// Date     : November 7, 2020
// Website  : www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
// Email    : jakerpomperada@gmail.com
// Location : Bacolod City, Negros Occidental Philippines.

#include <iostream>


int main()
{
    double length=0.00, width=0.00;

    std::cout << "\n\n";
    std::cout << "\tArea And Perimeter of a Rectangle in C++";
    std::cout << "\n\n";
    std::cout << "\tEnter length: ";
    std::cin >> length;
    std::cout << "\tEnter width: ";
    std::cin >> width;
    std::cout << "\n\n";
    std::cout << "\tThe area is: " << length * width << '\n';
    std::cout << "\tThe perimeter is: " << 2 * (length + width) << '\n';
    std::cout << "\n\n";
    std::cout << "\tEnd of Program";
    std::cout << "\n\n";
}
Categories
C++

Feet To Yard in C++

 I wrote this simple program to ask the user a value in feet and then it will convert it into yard equivalent using C++ as my 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. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

// feet_yard.cpp

// Jake Rodriguez Pomperada,MAED-IT, MIT

// www.jakerpomperada.com / www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines



#include <iostream>

#include <iomanip>



const int FeetPerYard = 3;



int main()

{

	

    int feet=0; 

    double yards=0.00;

    

    std::cout <<"\n\n";

    std::cout <<"\tFeet To Yard in C++";

    std::cout <<"\n\n";

    std::cout << "\tNumber of feet : ";

    std::cin >> feet;

    

    yards = static_cast<double>(feet) / FeetPerYard;

    std::cout << std::fixed << std::showpoint;

    std::cout << std::setprecision(2);

    

	std::cout <<"\n\n";

    std::cout << "\tYards Equivalent : " << yards << '\n';    

    std::cout <<"\n\n";

    std::cout <<"\tEnd of Program";

    std::cout <<"\n\n";

}

Categories
C++

Perfect Number in C++

 In this tutorial, I show you how to write a program that will ask the user to give a number, and then the program will check if the given number is a perfect number or not using the 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 City I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

// perfect_number.cpp
// Mr. Jake R. Pomperada, MAED-IT, MIT
// www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
	int  i=0, n=0,sum=0;
	
	cout <<"\n\n";
    cout << "\tPerfect Number in C++";
    cout <<"\n\n";
	cout << "\tGive a Number : ";
	cin >> n;
	sum = 0;
	for(i=1 ; i<=n/2 ; i++ )
    {
		if( n%i == 0 )
		{
			sum = sum + i;
		}
    }
    cout <<"\n\n";
	if(sum == n)
	{
		cout << "\tThe given number " <<
		    n << " is PERFECT Number." ;
	}
	else
	{
		cout << "\tThe given number " <<
		n  << " is NOT a PERFECT Number." ;
	}

	cout <<"\n\n";
	cout <<"\tEnd of Program";
	cout <<"\n\n";
}
Categories
C++

Adding Decimal Places in C++

 I wrote this simple program to demonstrate how to add decimal places 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 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.

My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

Program Listing

// divide.cpp
// Jake Rodriguez Pomperada,MAED-IT,MIT
// www.jakerpomperada.com  / www.jakerpomperada.blogspot.com
// jakerpomperada@gmail.com

#include <iostream>
#include <iomanip>

int main()
{
    double num1 = 1;
    double num2 = 2;

    double divide = (num1 / num2);

    std::cout <<"\n\n";
    std::cout <<"\tAdding Decimal Places in C++";
    std::cout <<"\n\n";
    std::cout <<"\t===== Display Results =====\n\n";
    std::cout << "\t";
    std::cout << std::fixed << std::showpoint;
    std::cout << std::setprecision(2);
    std::cout << divide << std::endl;
    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 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

// 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
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 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.


// addition_subtraction.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 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";
}