Wednesday, May 18, 2022

Add and Divide Two Numbers in C++

Add and Divide Two Numbers in C++

 A simple program that will ask the user to give two numbers and then the program computes the sum and quotient of the two given numbers 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>

int main()
{
  
  double val1, val2;

  std::cout << std::endl <<std::endl; 
  std::cout <<"\tAdd and Divide Two Numbers in C++";
  std::cout << std::endl <<std::endl; ; 
  std::cout << "\tGive Two Numbers : ";
  std::cin >> val1 >> val2;

  std::cout << std::endl; 
  std::cout <<std::endl; 
  // addition of two numbers
  std::cout <<"\t" <<val1 << "+" << val2 << " = "<< val1+val2 
  << std::endl << std::endl;

   // division of two numbers
  std::cout <<"\t" << val1 << "/" << val2 << " = "<<val1/val2 << std::endl;
  std::cout << std::endl<<std::endl; 
  std::cout <<"\tEnd of Program";
  std::cout << std::endl; 
  return 0;
}

Tuesday, May 17, 2022

How To Check Java Version

Decimal To Binary in PHP

Decimal To Binary In PHP

 A simple program to ask the user to give a decimal value and then it will convert into binary equivalent using 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.

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

<?php

    $output = "";

    if (isset($_POST["txtNumber"])) {

        $output = '<div class="output">Binary Value = '.

                        decbin($_POST["txtNumber"]).

                  '</div>';

    }

?>

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Decimal To Binary In PHP</title>

    <style>

        * {

            box-sizing: border-box;

            margin: 0;

            padding: 0;

        }

        body {

            background-color: #eee;

            min-height: 100vh;

            display: flex;

            justify-content: center;

            align-items: center;

            font-family: sans-serif;

        }

        form {

            background: #fff;

            padding: 30px;

            border-radius: 10px;

        }

        h2 {

            margin-bottom: 20px;

        }

        label,

        input,

        button {

            display: block;

            width: 100%;

            font-size: 14px;

        }

        label {

            padding: 5px 0;

        }

        input {

            padding: 5px;

            margin-bottom: 5px;

        }

        button {

            padding: 8px 0;

            background-color: #4caf50;

            border: none;

            border-radius: 3px;

            color: #fefefe;

            cursor: pointer;

        }

        .output {

            margin-top: 10px;

            background-color: #472781;

            padding: 12px 0;

            color: #fefefe;

            text-align: center;

        }

    </style>

</head>

<body>

    <form action="" method="post">

        <h1>Decimal To Binary In PHP</h1>

        <h2>Jake R. Pomperada, MAED-IT, MIT</h2>

        <label for="txtNumber">Enter a number to convert:</label>

        <input type="number" name="txtNumber" id="txtNumber" value="<?= isset($_POST["txtNumber"])?$_POST["txtNumber"]:""; ?>" autofocus>

        <button type="submit">Convert To Binary</button>

        <?= $output; ?>

    </form>

</body>

</html>

Monday, May 16, 2022

Reverse a String in C++

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