Sunday, April 3, 2022

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>

Thursday, March 31, 2022

Average Grade Solver in C

Average Grade Solver in C

 Machine Problem

Write a program that will ask the student to give the prelim, midterm, and final grade, and then the program will compute the average grade of the student 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

/* grade.c

   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT

   Date     : November 13, 2018  Tuesday 9:44 PM

   Location : Bacolod City, Negros Occidental

   Tool     : Dev C++ Version 5.11

   Website  : http://www.jakerpomperada.com

   Email    : jakerpomperada@jakerpomperada.com

*/


#include <stdio.h>


int main() 

 {

  float solve_average=0.00;

  float prelim=0.00,midterm=0.00,final=0.00;

  

  system("COLOR F0");

  printf("\n\n");

  printf("\tAverage Grade Solver in C");

  printf("\n\n");

  printf("\tGive Prelim Grade   : ");

  scanf("%f",&prelim);

  printf("\tGive Midterm Grade  : ");

  scanf("%f",&midterm);

  printf("\tGive Final Grade    : ");

  scanf("%f",&final);


  solve_average =(prelim+midterm+final)/3;


  printf("\n\n");

  printf("\t===== DISPLAY RESULTS =====");

  printf("\n\n");

  printf("\tThe student average grade is %.2f.",solve_average);

  printf("\n\n");

  printf("\tEND OF PROGRAM");

  printf("\n\n");

}




Wednesday, March 30, 2022

Accepts Only Numbers in C++

Accepts Only Numbers in C++

 A simple program that will only accept numbers 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 the 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 <limits>

const auto MaxIgnore =  std::numeric_limits<std::streamsize>::max();

int main()
{
    int num = 0 ;
    bool done = false;

     std::cout <<"\n\n";
     std::cout <<"\tAccepts Only Numbers in C++";
     std::cout <<"\n\n";
    while(!done)
    {
        
std::cout <<"\n";
std::cout << "\tEnter an integer: ";
        if(std::cin >> num)
        {
            std::cout <<"\n";
std::cout << "\tWell done. You entered: " << num;
            done = true;
        }
        else
        {
            std::cout <<"\n";
std::cout << "\tInvalid input!\n";
            std::cin.clear();
            std::cin.ignore(MaxIgnore, '\n');
        }
    }
std::cout <<"\n\n";
     std::cout <<"\tEnd of Program";
     std::cout <<"\n\n";
}


My Online Arithmetic Calculator in PHP