Tuesday, August 31, 2021

Remove Vowels and Consonants in Modern C++

Remove Vowels and Consonants in Modern C++

 A simple program that I wrote to ask the user to give a string and then the program will remove the vowels and consonants in Modern C++.

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

#include <iostream>

#include <string>


bool is_consonant(char ch) noexcept

{

  const std::string consonants("bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ");


  return consonants.find(ch) != std::string::npos;

}


bool is_vowel(char ch) noexcept

{

  const std::string vowels("aeiouAEIOU");


  return vowels.find(ch) != std::string::npos;

}


std::string remove_vowels(const std::string& input) noexcept

{

std::string output;

output.reserve(input.size());


for (char ch : input)

  if (!is_vowel(ch))

    output += ch;


return output;

}


std::string remove_consonants(std::string& input) noexcept

{

   std::string output;

   output.reserve(input.size());


   for (char ch : input)

  if (!is_consonant(ch))

       output += ch;


   return output;

}


int main()

{

   std::string input;


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

   std::cout << "\tRemove Vowels and Consonants in Modern C++";

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

   std::cout << "Enter a string: ";

   std::getline(std::cin, input);

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

   std::cout << "String Without Consonants: " << remove_consonants(input) << "\n\n";

   std::cout << "String Without Vowels    : " << remove_vowels(input) << "\n";

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

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

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

}


Monday, August 30, 2021

Multiplication Table in AngularJS

Multiplication Table in AngularJS

 Machine Problem

Write a program that will ask user to give the column and row value and then the program will generate a multiplication table based on the  given column and row value by the user.

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

<!-- index.htm

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

  Date     : July 24, 2021  Saturday 10:37 AM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

  <head>

    <title>Multiplication Table Creator in AngularJS</title>

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

    <script>

    var myApp=angular.module("myModule",[]);

    myApp.controller("Create_Table",function($scope) {

    $scope.MultiplicationTable=function()

    {

    

      var x=1;

      var output = "<table border='1' align='center' width='500' cellspacing='0'cellpadding='5'>";

      for(y=1;y<=$scope.rows;y++)

      {

      output = output + "<tr>";

        while(x<=$scope.column)

        {

       output = output + "<td align='center'>" + y*x + "</td>";

        x = x+1;

      }

       output = output + "</tr>";

       x = 1;

    }

    output = output + "</table>";

    document.write("<style> body { font-family: arial; font-size: 16px;  font-weight: bold; }; </style>");

    document.write("<br><h3 align='center'>Multiplication Table in AngularJS</h3>");

    document.write(output);

    }

    });

     </script>

 </head>

 <style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

 <body ng-app="myModule" ng-controller="Create_Table">

  <h3>Multiplication Table Creator in AngularJS</h3>

 <div>

  <table border="0">

  <tr>

  <td>

  Enter Your Row Value  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="rows"/>

       </td>

      <tr>

  <td>

  Enter Your Column Value  </td>

       <td>

        &nbsp;&nbsp;&nbsp;&nbsp;

         <input type="number" ng-model="column"/>

       </td>   

       </tr>

       <tr>

         <td>&nbsp;&nbsp;&nbsp;</td>

        </tr>

      <tr>

      <td colspan="5">

      <input type="button" ng-click="MultiplicationTable()"

          title="Click here to generate a multiplication table."

      value="Create Multiplication Table"/>

      </td>

      </tr>

      </table>

     </div><br>

       </div>

  </body>

</html>


Saturday, August 28, 2021

Addition of Two Numbers in Modern C++

Addition of Two Numbers in Modern C++

 I wrote this program to ask the user to give two numbers and then program will compute the sum of two numbers using modern C++ approach in programming.

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

// add.cpp

// Jake Rodriguez Pomperada, MAED-IT, MIT

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

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>


int main()

{

int a=0,b=0,sum=0;

std::cout <<"\tAddition of Two Numbers in Modern C++";

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

std::cout <<"\tEnter Two Numbers : ";

std::cin >> a >> b;

sum = (a+b);

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

std::cout <<"\tThe sum of " << a <<

          " and " << b << " is "

<< sum << ".";

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

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

}

Friday, August 27, 2021

Remove Vowels, and Consonants in Pythons

Remove Vowels and Consonants in Python

 Write a Python program that will ask the user to give any string and then the program will remove and display the vowels and consonants in the given string by the user.

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 at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

# vowels_Consonants.py
# Author : Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

# Remove all consonents and vowels from string
# Using list comprehension
print()
print("\tRemove Vowels and Consonants in Python")
print()
string = input('Enter any string: ')

print()

remove_vowels = "".join([chr for chr in string.lower() if chr in "aeiou"])
print("String Without Consonants : " + str(remove_vowels.upper()))
remove_consonants = "".join([chr for chr in string.lower() if chr
in "bcdfghjklmnpqrstvwxyz"])
print("String Without Vowels : " + str(remove_consonants.upper()))
print()
print("\tEnd of Program")
print()


How To Delete a Class in Google Class Room

How to Archive a Class in Google Class Room

Wednesday, August 25, 2021

Divide Two Numbers in JavaScript

Divide Two Numbers in JavaScript

 A simple program to ask the user to give two numbers and then the program will divide the two numbers 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 at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.




Program Listing

<html>

 <head> 

  <title>Divide Two Numbers in JavaScript</title>

 </head>

 <body>

  <h1>Divide Two Numbers in JavaScript</h1>

  <script>

  var a = prompt("Enter First Value");

  var b =prompt("Enter Second Value");


     var divide = parseInt(a) / parseInt(b);


     alert("The quotient of " + a + " and " + b 

           + " is " + divide.toFixed(2) + ".");

    </script>

  </body>

  </html>

Tuesday, August 24, 2021

Difference of two Numbers in Python

Difference of Two Numbers in Python

 A simple program to ask the user to give two numbers and then the program will compute the difference of the two numbers, 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 at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

difference.py

# Python program to find difference between two numbers
# Author : Jake Rodriguez Pomperada, MAED-IT, MIT
# www.jakerpomperada.blogspot.com and www.jakerpomperada.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental Philippines

print()
print("\tDifference of Two Numbers in Python")
print()
num1 = int(input('Enter first number: '))
num2 = int(input('Enter second number: '))

# num1 is greater than num2
if num1 > num2:
diff = num1 - num2
# num1 is less than num2
else:
diff = num2 - num1

# Display the difference of two numbers
print()
print('The difference between {0} and {1} is {2}.'.format(num1, num2, diff))
print()
print("\tEnd of Program")
print()

Monday, August 23, 2021

Creating a Function in PHP

 A simple program to demonstrate how to creating and use functions 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 at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.




Program Listing

index.php


<?php

// defining the function

function greetings()

{

    echo "Happy Birthday to you.<br>";

}


echo "Hey Julianna Rae <br/>";

// calling the function

greetings();


echo "Hey Virgilio <br/>";

// calling the function

greetings();


Sunday, August 22, 2021

Largest of Three Numbers in AngularJS

Largest of Three Numbers in AngularJS

 Machine Problem

Write a program that will ask user to give three numbers, and then the program will find the largest of three given numbers by the user and then display the results in 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 at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.





Program Listing

<!-- index.htm

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

  Date     : July 23, 2021  Friday  10:54 PM

  Place    : Bacolod City, Negros Occidental

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

  Email    : jakerpomperada@gmail.com

 -->

<html>

  <head>

    <title>Largest of Three Numbers in AngularJS</title>

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

    <script>

    var myApp=angular.module("myModule",[]);

    myApp.controller("Largest_Values",function($scope) {

    $scope.doFind=function()

    {

      var max_val = 0;

        if ($scope.a > $scope.b)

      {

      max_val = $scope.a;

    } else

    {

     max_val = $scope.b;

    }

    if ($scope.c > max_val) 

    {

     max_val = $scope.c;

    }

      $scope.result = "The Largest Number is " + max_val + ".";

  }

    

  });

     </script>

 </head>

 <style>

body {

font-family: arial;

font-size: 25px;

font-weight: bold;

}

</style>

 <body ng-app="myModule" ng-controller="Largest_Values">

  <h3>Largest of Three Numbers in AngularJS</h3>

 <div>

  <table border="0">

  <tr>

  <td>

  Enter Your First Number

  </td>

       <td>

         <input type="number" ng-model="a"/>

       </td>

      <tr>

  <td>

  Enter Your Second Number

  </td>

       <td>

         <input type="number" ng-model="b"/>

       </td>   

       </tr>

       <tr>

      <td>

      Enter Your Third Number

     </td>

       <td>

         <input type="number" ng-model="c"/>

       </td>   

       </tr>

      <tr>

      <td colspan="10">

      <input type="button" ng-click="doFind();"

      value="Find Largest Number"/>

      </td>

      </tr>

      </table>

     </div><br>

       {{result}}

    </div>

  </body>

</html>


Saturday, August 21, 2021

Area of the Circle in VB NET

Area of the Circle in VB.NET

 Machine Problem

Write a program that will ask the user to give a radius of a circle and the program will compute

the area of the circle.

Use the following formula below.

area = (3.14 * radius * radius)

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 at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.




Program Listing


' Area of the Rectangle in VB.NET

' Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

' www.jakerpomperada.com  and www.jakerpomperada.blogspot.com

' jakerpomperada@gmail.com

' Bacolod City, Negros Occidental Philippines

' May 16, 2021   Sunday  1:10 PM


Public Class Form1

    'Declaring constant value of PI of the circle

    Public Const PI = 3.14


    ' Compute Button

    Private Sub btnCompute_Click(sender As Object, e As EventArgs) Handles btnCompute.Click

        Dim radius As Single = 0.0F

        Dim area As Single = 0.0F

        Dim radius_value As String


        radius_value = txtRadius.Text


        If radius_value = "" Or IsNumeric(radius_value) = False Then

            MessageBox.Show("Please enter a radius value.")

            txtRadius.Focus()

        Else

            area = PI * Val(radius_value) * Val(radius_value)

            txtArea.Text = area.ToString("#####.##")

            txtArea.ReadOnly = True

        End If


    End Sub

    ' Clear Button

    Private Sub btnClear_Click(sender As Object, e As EventArgs) Handles btnClear.Click

        txtRadius.Text = ""

        txtArea.Text = ""

        txtRadius.Focus()

    End Sub


    Private Sub btnQuit_Click(sender As Object, e As EventArgs) Handles btnQuit.Click

        Dim result = MessageBox.Show(" Are you sure you want to quit the program?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question)

        If result = DialogResult.Yes Then

            Me.Close()

        Else

            Me.Show()

            txtRadius.Text = ""

            txtArea.Text = ""

            txtRadius.Focus()

        End If

    End Sub

End Class