Monday, April 4, 2022

Remove Vowels in C#

 A simple program that I wrote using C# to ask the user to give a string and then the program will remove the vowels 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 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






Program Listing

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace ConsoleApplication1

{

    class Program

    {



        static string remove_vowels(string value)

        {

            var stripped = from c in value.ToCharArray()

                           where !"aeiouAEIOU".Contains(c)

                           select c;


            return new string(stripped.ToArray());

        }


       

        static void Main(string[] args)

          {


              Console.WriteLine();

              Console.WriteLine("\tRemove Vowels in C#");

              Console.WriteLine();

              Console.Write("\tGive a String : ");

              string  given_str = Console.ReadLine();

              Console.WriteLine();

              Console.WriteLine("\tGiven String  : " + given_str + "\n");

              Console.WriteLine("\tRemove Vowels : " + remove_vowels(given_str));

              Console.WriteLine();

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

              Console.WriteLine();

              Console.ReadKey();

        }

    }

}


Payroll Program Using Scala

Payroll Program Using Scala

 Machine Problem

Write a program to ask the user to give the employee's name, number of days' work, and rate per day. The program will compute the salary of the employee by displaying the employee's name, and their salary 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






Program Listing

/* Pay_Program.scala

   Prof. Jake Rodriguez Pomperada, MAED-IT, MIT

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

   jakerpomperada@gmail.com

   November 09, 2021  10:02 PM Tuesday

   Bacolod City, Negros Occidental

 */



import java.util.Scanner;


object Payroll_Program {


  def main(args: Array[String]) : Unit = {


    var input = new Scanner(System.in);


    print("\n\n");

    print("\tPayroll Program Using Scala");

    print("\n\n");

    print("\tEnter Employee's Name : ");

    var emp_name = input.nextLine();


    print("\tEnter Days Worked     : ");

    var days = input.nextDouble();


    print("\tEnter Rate Per Day    : ");

    var rate = input.nextDouble();


    var salary = (days * rate);


    print("\n");

    print("\tEmployee's Name       :  " + emp_name + "\n");

    print("\n");

    print("\tThe Gross Salary      : PHP  " + f"$salary%5.2f" )

    print("\n\n");

    print("\tEND OF PROGRAM");

    print("\n\n");

  }

}


Sunday, April 3, 2022

Average Grade Solver in PHP

Average Grade Solver in PHP

 A simple program that will ask the user to give prelim, midterm, and endterm grade and then the program will compute the average grade of the student 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





Program Listing

index.php

<?php if(isset($_POST["grade1"], $_POST["grade2"], $_POST["grade3"])) { $calc = $_POST["grade1"] + $_POST["grade2"] +$_POST["grade3"]; $calc = round($calc / 3, 2); $avg = '<div>You average grade is: <strong>'.$calc.'</strong></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>Average Grade Solver</title> <style> * { box-sizing: border-box; margin: 0; padding: 0; } body { min-height: 100vh; display: flex; justify-content: center; align-items: center; background-color: #f1f1f1; font-family: sans-serif; } main { padding: 30px; border-radius: 2px; background-color: #fff; } h1 { margin-bottom: 10px; line-height: 1; text-transform: uppercase; font-size: 28px; text-align: center; } h2 { margin-bottom: 30px; line-height: 1; font-size: 20px; text-align: center; } .block { margin: 0 auto 10px; } label { display: block; margin-bottom: 5px; } input { padding: 8px; width: 100%; } button { padding: 8px 16px; background-color: #607d8b; color: #fff; outline: 0; border: 0; border-radius: 3px; cursor: pointer; width: 150px; width: 100%; margin-bottom: 20px; } button + div { font-size: 18px; text-align: center; background-color: #ffeb3b; padding: 10px; border-radius: 3px; } </style> </head> <body> <main class="container"> <h1>Average Grade Solver in PHP</h1> <h2>Jake R. Pomperada, MAED-IT, MIT</h2> <form action="" method="post"> <div class="block"> <label for="grade1">Give Prelim Grade:</label> <input type="number" min=0 name="grade1" id="grade1"> </div> <div class="block"> <label for="grade2">Give Midterm Grade:</label> <input type="number" min=0 name="grade2" id="grade2"> </div> <div class="block"> <label for="grade3">Give Final Grade:</label> <input type="number" min=0 name="grade3" id="grade3"> </div> <button type="submit">Submit</button> <?php if(isset($avg)) echo $avg; ?> </form> </main> </body> </html>


Remove Consonants in a String in JavaScript

Remove Consonants in a String in JavaScript

 A simple program asks the user to give a string and then the program will remove the consonants in the given string using JavaScript 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





Program Listing

<html>

<h2>Remove Consonants in a String in JavaScript</h2>

<style>

  body {

  font-family: arial;

  }

</style>

<script type="text/javascript">


function Remove_Consonants(str) {

var str = document.getElementById( 'rev_cp' ).value;

  var strArr = str.split('');

  for (var x = 0; x < str.length; x++) {

    var char = str[x].toLowerCase();

    if (char == "a" || char == "e" || char == "i" || char == "o" || char == "u") {

      

    } else {

      strArr[x] = '';

    }

  }

  alert( "" + strArr);

  return strArr.join('');

}


</script>

<form>

<input type="text" size=40 id="rev_consonants"><br><br>

<input type="button" value="Remove Consonants String" onClick="Remove_Consonants(rev_consonants)">

</form>

</html>


 

Remove Vowels in a String in JavaScript

Remove Vowels in a String in JavaScript

 A simple program asks the user to give a string and then the program will remove the vowels in the given string using JavaScript 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






Program Listing

<html>

<h2>Remove Vowels in a String in JavaScript</h2>

<style>

  body {

  font-family: arial;

  }

</style>

<script type="text/javascript">


function Remove_Vowels(str) {

var str = document.getElementById( 'rev_vowels' ).value;

  var strArr = str.split('');

  for (var x = 0; x < str.length; x++) {

    var char = str[x].toLowerCase();

    if (char == "a" || char == "e" || char == "i" || char == "o" || char == "u") {

      strArr[x] = '';

    }

  }

  alert( "" + strArr);

  return strArr.join('');

}


</script>

<form>

<input type="text" size=40 id="rev_vowels"><br><br>

<input type="button" value="Remove Vowels String" onClick="Remove_Vowels(rev_vowels)">

</form>

</html>



Reverse a String in JavaScript

Reverse a String in JavaScript

 A simple program asks the user to give a string and then the program will reverse the given string and display the reverse string in the alert dialog box using JavaScript 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





Program Listing

<html>
<h2>Reverse a String in JavaScript</h2>
<style>
  body {
  font-family: arial;
  }
</style>
<script type="text/javascript">
function reverse_string(form) {
var text = "";
var str = document.getElementById( 'rev_string' ).value;
for (i = 0; i <= str.length; i++)
text = str.substring(i, i+1) + text;
alert( "" + text);
}
</script>
<form>
<input type="text" size=40 id="rev_string"><br><br>
<input type="button" value="Reverse String" onClick="reverse_string(rev_string)">
</form>
</html>


Saturday, April 2, 2022

Simple Multiplication Table Using Arrays in C++

SIMPLE MULTIPLICATION TABLE USING ARRAYS IN C++

 A simple multiplication table using arrays 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





Program Listing

#include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { int values[10] = {1,2,3,4,5,6,7,8,9,10}; int values2[10] = {10,9,8,7,6,5,4,3,2,1}; cout << "\n\n"; cout << " ===== SIMPLE MULTIPLICATION TABLE USING ARRAYS IN C++ ====="; cout << "\n\n Created By: Mr. Jake R.Pomperada,MAED-IT"; cout << "\n\n"; for (int list=0; list <10 ; list++) { cout << "\n"; cout<< setw(2) << list[values] << " x " << setw(2) << list[values] << " = " << setw(2) << list[values] * list[values]; cout<< setw(10) << list[values] << " + " << setw(2) << list[values2] << " = " << setw(1) << (list[values] + list[values2]); } cout << "\n\n"; system("PAUSE"); return EXIT_SUCCESS; }

Multiply Two Numbers Using Pointers in C

Multiply Two Numbers Using Pointers in C

 A program that will ask the user to give two numbers and then the program will multiply the values of the two given numbers using pointers 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





Program Listing


#include <stdio.h>

int main()
{
 int num1=0,num2=0,multiply=0;
 int *p1,*p2;

 printf("\n\n");
 printf("\tMultiply Two Numbers Using Pointers in C");
 printf("\n\n");
 printf("\tEnter First Number : ");
 scanf("%d",&num1);
 printf("\tEnter Second Number: ");
 scanf("%d",&num2);
 
 p1=&num1;
 p2=&num2;
 
 multiply=*p1 * *p2;
 
 printf("\n\n\tProduct of %d and %d is %d.",*p1,*p2,multiply);
 printf("\n\n");
 printf("\tEnd of Program");
 printf("\n\n");

}

Friday, April 1, 2022

Creating a Text File in C++

Creating a Text File in C++

 A program to demonstrate how to create a text file 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






Program Listing

#include <iostream>
#include <fstream>

using namespace std;

int main()
{
  ofstream outFile;
  outFile.open("mydata.txt");
  string quit = "n";
  string line;
  cout <<"\n\n";
  cout <<"\tCreating a Text File in C++";
  cout <<"\n\n";
  while (quit != "y") {
    cout << "Enter a line of text: ";
    getline(cin, line);
    outFile << line << endl;
    cout << "Stop entering text (y/n)? ";
    getline(cin, quit);
  }
   cout <<"\n\n";
  cout <<"\tData has been successfully saved in mydata.txt";
  cout <<"\n\n";
  outFile.close();
  return 0;
}

Addition of Three Numbers Using ng-bind in AngularJS

Addition of Three Numbers Using ng-bind in AngularJS

 Machine Problem

Write a program that uses ng-bind directive that will accept three numbers, and then the program will compute the sum of three 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 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





Program Lisitng

<!-- index.htm
  Author   : Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
  Date     : July 29, 2021 Thursday  5:56 PM
  Place    : Bacolod City, Negros Occidental
  Websites : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
  Email    : jakerpomperada@gmail.com
 -->
<html>
<head>
  <title>Addition of Three Numbers Using ng-bind 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>

<script>
       var app = angular.module("addition", []);
        app.controller('app', ['$scope', function ($app) {
         $app.add= function () {
                $app.sum = 0;
                $app.sum = ($app.val_1 + $app.val_2 + $app.val_3);
                $app.display = $app.sum + ".";
            }
        }]);
    </script> 
</script>  
<div ng-app="addition" ng-controller="app">
  <form>
  <table border="0" cellspacing=10>
  <tr>Addition of Three Numbers Using ng-bind in AngularJS</tr>
  <tr>
  <td>Enter First Value </td>
  <td><input type="number"  ng-model="val_1" ng-change="add()"></td>
  </tr>
   <tr>
  <td>Enter Second Value </td>
  <td><input type="number"  ng-model="val_2" ng-change="add()"></td>
  </tr>
   <tr>
  <td>Enter Third Value </td>
  <td><input type="number"  ng-model="val_3" ng-change="add()"></td>
  </tr>
</table>
  </form>
  <span>The sum of {{val_1}}, {{val_2}}, and {{val_3}} is </span> 
    <span ng-bind="display"></span>
   </p> 
</div>
</body>
</html>