Monday, May 16, 2022

Reverse a String in C++

 A simple program to reverse a given string 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>
#include <string>

int main()
{
  
   std::cout <<"\n\n";
   std::cout <<"\tReverse a String in C++";
   std::cout <<"\n\n";
   std::string original("Bacolod City Negros Occidental Philippines");
   std::string reversed_string(original.rbegin(), original.rend());

   std::cout << "\tOriginal: " << original << "\n\n";
   std::cout << "\tReversed: " << reversed_string << "\n";
   std::cout <<"\n\n";
   std::cout <<"\tEnd of Program";
   std::cout <<"\n\n";
}



Sunday, May 15, 2022

Age Checker in AngularJS

Age Checker in AngularJS

 Machine Problem

Write a program that uses ng-app directive that will check if the given age is already an adult, or still a minor, 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




Program Listing

index.htm

<!-- index.htm

  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

  Date     : July 28, 2021 Wednesday 3:16 PM

  Place    : Bacolod City, Negros Occidental

  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com

  Email    : jakerpomperada@gmail.com

 -->

<html>

<head> 

<title>Age Checker Using ng-init in AngularJS</title>

</head>

<style>

body {

   font-family: "arial";

   font-style: bold;

   font-size: 18px;

  }

 </style>

<script type="text/javascript" src="angular.min.js"></script>

<body><br>

<h3>Age Checker Using ng-init in AngularJS</h3>

<body>

  <script>

      

   angular.module('app', []).filter('Check_Age', function() {

       return function(given_age) {

    if (given_age>=18)

          {

        display = "At the age " + given_age +

                " years old. You are already an Adult.";

          }

      else

          {

       display = "At the age " + given_age +

                " years old. You are still a Minor.";

         }

        return(display);

    };

  });

               

      

    </script>

<div ng-app="app" ng-model="given_age" ng-init="given_age=12">

 <p> {{ given_age | Check_Age}}</p>

    </div>

</body>

</html>

</body>

</html>



Saturday, May 14, 2022

Bigger Between Two Numbers in C

Bigger Between Two Numbers in C

 A program to check if the two given number has the same numerical value or bigger numerical value in one another 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

bigger.c

#include <stdio.h>  


/* Bigger Between Two Numbers in C */

   

int main() {  

    int a=0, b=0;  

    printf("\n");

    printf("\tBigger Between Two Numbers in C");

    printf("\n\n");

    printf("\tGive Two Integer Numbers : ");  

    scanf("%d %d", &a, &b);  

    printf("\n\n");

    

if(a > b) 

    {

        printf("\t%d is Largest Number.\n", a);          

    } 

    else if (b > a)

    { 

        printf("\t%d is Largest Number.\n", b);  

    } 

    else 

    {

printf("\tBoth are Equal Numbers. \n");

    }

    printf("\n");

    printf("\tEnd of Program");

    printf("\n\n");

    return 0;  

}

Average of Arrays of Numbers in C++

Average of Arrays of Numbers in C++

 A simple program to compute the average of arrays of numbers 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>

#include <valarray>


using namespace std;


int main()

{

   valarray <int> nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

   

   cout <<"\n";

   cout << "\tAverage of Arrays of Numbers in C++";

   cout <<"\n\n";

   cout << "\tThe Result : " << ( nums.sum() + 0.0 ) / nums.size() << '\n';

   cout <<"\n";

   cout << "\tEnd of Program";

   cout <<"\n";

}

Friday, May 13, 2022

How To Remove Signature in a Certificate in Photoshop

Calculator in C#

Calculator in C#

 A simple calculator program is written 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            try

            {

                Run();

            }

            catch (Exception ex)

            {

                Console.WriteLine("The following error occured\n" + ex);

            }

            Console.ReadKey();

        }


        private static void Run()

        {



            Console.WriteLine("\n");

            Console.Write("\tCalculator in C#");

            Console.WriteLine("\n");

            int firstNum = ReadInt("\tEnter first number: ");

            int secondNum = ReadInt("\tEnter second number: ");

            Console.Write("\tEnter operator: ");

            int op = Console.Read();

            int result = CoCalculation(firstNum, secondNum, (char)op);

            Console.WriteLine("\n");

            Console.WriteLine("\tThe Result: " + result);

            Console.WriteLine("\n");

            Console.Write("\tEnd of Program");

            Console.WriteLine("\n");

        }


        private static int CoCalculation(int firstNum, int secondNum, char op)

        {

            switch (op)

            {

                case '+':

                    return firstNum + secondNum;

                case '-':

                    return firstNum - secondNum;

                case '*':

                    return firstNum * secondNum;

                case '/':

                    if (secondNum == 0)

                        throw new Exception("Cannot divide by 0");

                    return firstNum / secondNum;

                default:

                    throw new Exception("Illegal operand");

            }

        }


        private static int ReadInt(string prompt)

        {

            Console.Write(prompt);


            string input = Console.ReadLine();


            return int.Parse(input);

        }

    }

}


Thursday, May 12, 2022

Decimal To Octal in C++

Decimal To Octal in C++

 A program that will ask the user to give a number in decimal and convert it into octal equivalent 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

#include <iostream>

using namespace std;

void  Decimal_To_Octal(int n){
 
    if( n == 0)
        return;
    Decimal_To_Octal( n / 8);
   cout <<n % 8;
  }
  
  int main(){
    int n=0;
    cout <<"\n\n";
    cout <<"\tDecimal To Octal in C++";
    cout <<"\n\n";
    cout <<"\tGive Decimal Number : ";
    cin >> n;
    cout <<"\n";
    cout <<"\tOctal Equivalent : ";
    Decimal_To_Octal(n);
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
    return 0;
  }

Wednesday, May 11, 2022

My Books in Lazada.com

Grams To Kilogram in C#

Grams To Kilogram in C#

 A program asks the user to give a value in grams and then the program will convert it into kilograms equivalent 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.




 





Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {

        static void Main(string[] args)

        {

            /* Kilogram To Grams in C#

             * Jake Rodriguez Pomperada, MAED-IT, MIT

             * www.jakerpomperada.blogspot.com and www.jakerpomperada.com

             * jakerpomperada@gmail.com

             * 

             */

            

            Console.WriteLine("\n");

            Console.Write("\tGrams To Kilogram in C#");

            Console.WriteLine("\n");

          Console.Write("\tGrams To Kilogram in C#");

            decimal gram = Convert.ToDecimal(Console.ReadLine());

            decimal kilogram = gram / 1000;

            Console.WriteLine("\n");

            Console.WriteLine("\t" + gram + " Gram(s) in Kilogram(s) is equal to  " + kilogram + ".");

            Console.WriteLine("\n");

            Console.Write("\tEnd of Program");

            Console.WriteLine("\n");

            Console.ReadKey();

        }

    }

}


Kilogram To Grams in C#

Kilogram To Grams in C#

 A program asks the user to give a value in kilograms and then the program will convert it into grams equivalent 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.





Program Listing

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            /* Kilogram To Grams in C#
             * Jake Rodriguez Pomperada, MAED-IT, MIT
             * www.jakerpomperada.blogspot.com and www.jakerpomperada.com
             * jakerpomperada@gmail.com
             * 
             */
            
            Console.WriteLine("\n");
            Console.Write("\tKilogram To Grams in C#");
            Console.WriteLine("\n");
            Console.Write("\tGive the Kilogram (kg) : ");
            decimal kilogram = Convert.ToDecimal(Console.ReadLine());
            decimal gram = kilogram * 1000;
            Console.WriteLine("\n");
            Console.WriteLine("\t" + kilogram + " Kilogram in Gram(s) is equal to " +gram+".");
            Console.WriteLine("\n");
            Console.Write("\tEnd of Program");
            Console.WriteLine("\n");
            Console.ReadKey();
        }
    }
}


Tuesday, May 10, 2022

String Copy and String Reverse in C++

String Copy and String Reverse in C++

 A simple program to demonstrate string copy and string reverse 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.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

=================================================


Want to support my channel?

GCash Account

Jake Pomperada

09173084360


Paypal

https://paypal.me/jakerpomperada


Patreon

https://www.patreon.com/jakerpomperada


Thank you very much for your support.






Program Listing


#include<iostream>
#include<cstring>

using namespace std;

int main()
{
  char str1[50]="I LOVE C++ PROGRAMMING";
  char str2[7];
  
  cout <<"\n\n";
  cout <<"\tString Copy and String Reverse in C++";
  cout <<"\n\n";
  
  strncpy(str2,str1,10);
  
  cout<<"\tstr1:"<<str1<<endl
      <<"\tstr2:"<<str2<<endl;
 
cout <<"\n\n";
cout<<"\tReverse String : " << strrev(str2)<<endl;
 
cout <<"\n\n";
cout <<"\tEnd of Program";
cout <<"\n\n";
}