Saturday, May 14, 2022

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


Sunday, May 8, 2022

Kilograms To Grams in C

Kilograms To Grams in C

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


main()

{

 float kilograms=0.00, grams=0.00;

 

 printf("\n");

 printf("\tKilograms To Grams in C");

 printf("\n\n");

 printf("\tGive Kilogram Value : ");

 scanf("%f",&kilograms);

 

 grams = (kilograms * 1000);

 printf("\n\n");

 printf("\t%5.2f Kilogram(s) is equal to %5.2f Gram(s)."

 ,kilograms,grams);

 printf("\n\n");

 printf("\tEnd of Program");

 printf("\n\n");

}

Friday, May 6, 2022

Difference of Two Numbers Using ng-init in AngularJS

Difference of Two Numbers Using ng-init in AngularJS

 Machine Problem

Write a program that uses the ng-init directive that will compute the difference in the two given numbers, 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.

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 2:53 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
  <title>Difference of Two Numbers Using ng-init in AngularJS</title>
</head>
<style>
body {
  font-family: arial;
  font-size: 25px;
  font-weight: bold;
}
</style>
<script type="text/javascript" src="angular.min.js">
</script><br>
<div ng-app ng-init="val_1=25;val_2=10;">
  <form>
  <table border="0" cellspacing=10>
  <tr>Difference of Two Numbers Using ng-init in AngularJS</tr>
  </tr>
  </table>
  </form>
    <p> The difference between {{val_1}}, and
      {{val_2}} is {{val_1 - val_2}}.</p>
  </div>
</body>
</html>


Simple Login Form Using JavaScript