Friday, September 27, 2019

Average Grade Solver in C++

In this article, I would like to share with you a sample program that will ask the user to give five subject grades and then the program will compute the average grade of the students using C++ as our 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.


Program Listing

// average_grade.cpp
// Author : Jake Rodriguez Pomperada,MAED-IT
// Date   : September 27, 2019    Friday
// Location : Bacolod City, Negros Occidental Philippines

#include <iostream>
#include <iomanip>

using namespace std;

int main() {
int science=0,math=0,english=0;
int pe=0, history=0;
float compute_grade =0.00;
cout <<"\n\n";
cout << "\tAverage Grade Solver in C++";
cout <<"\n\n";
cout << "\tEnter Grade for Science : ";
cin >> science;
cout << "\tEnter Grade for Math : ";
cin >> math;
cout << "\tEnter Grade for English : ";
cin >> english;
cout << "\tEnter Grade for Physical Education : ";
cin >> pe;
cout << "\tEnter Grade for History : ";
cin >> history;
compute_grade = (science+math+english+pe+history)/5;
cout <<"\n\n";
cout <<"\tThe Average Grade is " 
     << fixed << setprecision(2)<< compute_grade;
   
cout <<"\n\n";
cout << "\tEnd of the Program";
}


Average Grade Solver in C++

Product of Two Numbers Using Functions in C++

Thursday, September 26, 2019

String Upper Case in PHP

Here is a sample program that will ask the user to give a string and then it will convert it into upper case format 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.




Sample Program Output


Program Listing

index.php

<html>
<style>
 body {
font-size: 20;
font-family:sans-serif;
font-weight: bold;
 }
input {
font-size: 20px;
font-weight: bold;
}
 /* http://cssdemos.tupence.co.uk/button-styling.htm */ 
 input#shiny {
padding: 4px 20px;
/*give the background a gradient*/
background:#ffae00; /*fallback for browsers that don't support gradients*/
background: -webkit-linear-gradient(top, blue,blue);
background: -moz-linear-gradient(top, blue, blue);
background: -o-linear-gradient(top, blue, blue);
background: linear-gradient(top, blue, blue);
border:2px outset #dad9d8;
/*style the text*/
font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
font-size:1.1em;
letter-spacing:0.05em;
text-transform:uppercase;
color:#fff;
text-shadow: 0px 1px 10px #000;
/*add to small curve to the corners of the button*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*give the button a drop shadow*/
-webkit-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
-moz-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
}
/****NOW STYLE THE BUTTON'S HOVER STATE***/
input#shiny:hover, input#shiny:focus {
border:2px solid #dad9d8;
}
 </style>
<body>
 <?php
 error_reporting(0);
 $values = $_POST['inputText'];
 if(isset($_POST['ClearButton'])){
 $values = "";
 }
?>
 <br>
 <h4> String Uppercase in PHP</h4>
 <h5> Created By Jake Rodriguez Pomperada</h5>
 <form action="" method="post">
 Give a String
 <input type="text" name="inputText" size="30" maxlength="30"
 value="<?php echo $values; ?>" style="width:200px; height:30px;" required autofocus=""/>
 <br><br>
 <input id="shiny" type="submit" value="Ok" name="SubmitButton"/>
    
 <input id="shiny" type="submit" value="Clear" name="ClearButton"/>
</form>
<?php

function convert_uppercase($string) 
{

$original =$string;
$string = strtoupper($string);

echo "Original String : $original.";
echo "<br><br>";
echo "The new string  : $string.";
}


$values = $_POST['inputText'];
if(isset($_POST['SubmitButton'])){
$num_val = strtolower($values);
echo "<br>";
convert_uppercase($num_val);
}
?>
</body>
</html>


Remove Consonants in PHP

In this article, I would like to share with you a program that I wrote using PHP that will ask the user to give a string and then the program will display the original string and then display the string removing the consonants from a string.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.





Sample Program Output


Program Listing

index.php

<html>
<style>
 body {
font-size: 20;
font-family:sans-serif;
font-weight: bold;
 }
input {
font-size: 20px;
font-weight: bold;
}
 /* http://cssdemos.tupence.co.uk/button-styling.htm */ 
 input#shiny {
padding: 4px 20px;
/*give the background a gradient*/
background:#ffae00; /*fallback for browsers that don't support gradients*/
background: -webkit-linear-gradient(top, blue,blue);
background: -moz-linear-gradient(top, blue, blue);
background: -o-linear-gradient(top, blue, blue);
background: linear-gradient(top, blue, blue);
border:2px outset #dad9d8;
/*style the text*/
font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
font-size:1.1em;
letter-spacing:0.05em;
text-transform:uppercase;
color:#fff;
text-shadow: 0px 1px 10px #000;
/*add to small curve to the corners of the button*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*give the button a drop shadow*/
-webkit-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
-moz-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
}
/****NOW STYLE THE BUTTON'S HOVER STATE***/
input#shiny:hover, input#shiny:focus {
border:2px solid #dad9d8;
}
 </style>
<body>
 <?php
 error_reporting(0);
 $values = $_POST['inputText'];
 if(isset($_POST['ClearButton'])){
 $values = "";
 }
?>
 <br>
 <h4> Remove Consonants in PHP</h4>
 <h5> Created By Jake Rodriguez Pomperada</h5>
 <form action="" method="post">
 Give a String
 <input type="text" name="inputText" size="30" maxlength="30"
 value="<?php echo $values; ?>" style="width:200px; height:30px;" required autofocus=""/>
 <br><br>
 <input id="shiny" type="submit" value="Ok" name="SubmitButton"/>
    
 <input id="shiny" type="submit" value="Clear" name="ClearButton"/>
</form>
<?php

function remove_consonants($string) 
{
$vowels = array("b", "c", "d", "f", "g","h", "j", "k","l", "m","n", "p", "q", "r", "s", "t","w","v", "x", "y", "z");

$original =strtoupper($string);
$string = strtolower($string);
$string = str_replace($vowels, "", $string);
$string = strtoupper($string);

echo "Original String : $original.";
echo "<br><br>";
echo "The new string  : $string.";
}


$values = $_POST['inputText'];
if(isset($_POST['SubmitButton'])){
$num_val = strtolower($values);
echo "<br>";
remove_consonants($num_val);
}
?>
</body>
</html>




String Palindrome in PHP

A simple program that I wrote using PHP that will ask the user to give a string and then the program will check if the given string is a Palindrome or Not a Palindrome.

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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

index.php

<html>
<style>
 body {
font-size: 20;
font-family:sans-serif;
font-weight: bold;
 }
input {
font-size: 20px;
font-weight: bold;
}
 /* http://cssdemos.tupence.co.uk/button-styling.htm */ 
 input#shiny {
padding: 4px 20px;
/*give the background a gradient*/
background:#ffae00; /*fallback for browsers that don't support gradients*/
background: -webkit-linear-gradient(top, blue,blue);
background: -moz-linear-gradient(top, blue, blue);
background: -o-linear-gradient(top, blue, blue);
background: linear-gradient(top, blue, blue);
border:2px outset #dad9d8;
/*style the text*/
font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
font-size:1.1em;
letter-spacing:0.05em;
text-transform:uppercase;
color:#fff;
text-shadow: 0px 1px 10px #000;
/*add to small curve to the corners of the button*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*give the button a drop shadow*/
-webkit-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
-moz-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
}
/****NOW STYLE THE BUTTON'S HOVER STATE***/
input#shiny:hover, input#shiny:focus {
border:2px solid #dad9d8;
}
 </style>
<body>
 <?php
 error_reporting(0);
 $values = $_POST['inputText'];
 if(isset($_POST['ClearButton'])){
 $values = "";
 }
?>
 <br>
 <h4> String Palindrome in PHP</h4>
 <h5> Created By Jake Rodriguez Pomperada</h5>
 <form action="" method="post">
 Give a String
 <input type="text" name="inputText" size="30" maxlength="30"
 value="<?php echo $values; ?>" style="width:200px; height:30px;" required autofocus=""/>
 <br><br>
 <input id="shiny" type="submit" value="Ok" name="SubmitButton"/>
    
 <input id="shiny" type="submit" value="Clear" name="ClearButton"/>
</form>
<?php

function check_palindrome($string) 
{
  if ($string == strrev($string))
      echo "The given string $string is a PALINDROME.";
  else
  echo "The given string $string is NOT a PALINDROME.";
}


$values = $_POST['inputText'];
if(isset($_POST['SubmitButton'])){
$num_val = strtoupper($values);
echo "<br>";
check_palindrome($num_val);
}
?>
</body>
</html>




Odd and Even Number Checker in PHP

In this article, I would like to share with you guys a program that I wrote that will ask the user to give a number and then the program will check if the given number is odd or even number using PHP as our 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Sample Program Output


Program Listing

index.php

<html>
<style>
 body {
font-size: 20;
font-family:sans-serif;
font-weight: bold;
 }
input {
font-size: 20px;
font-weight: bold;
}
 /* http://cssdemos.tupence.co.uk/button-styling.htm */ 
 input#shiny {
padding: 4px 20px;
/*give the background a gradient*/
background:#ffae00; /*fallback for browsers that don't support gradients*/
background: -webkit-linear-gradient(top, blue,blue);
background: -moz-linear-gradient(top, blue, blue);
background: -o-linear-gradient(top, blue, blue);
background: linear-gradient(top, blue, blue);
border:2px outset #dad9d8;
/*style the text*/
font-family:Andika, Arial, sans-serif; /*Andkia is available at http://www.google.com/webfonts/specimen/Andika*/
font-size:1.1em;
letter-spacing:0.05em;
text-transform:uppercase;
color:#fff;
text-shadow: 0px 1px 10px #000;
/*add to small curve to the corners of the button*/
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
/*give the button a drop shadow*/
-webkit-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
-moz-box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
box-shadow: rgba(0, 0, 0, .55) 0 1px 6px;
}
/****NOW STYLE THE BUTTON'S HOVER STATE***/
input#shiny:hover, input#shiny:focus {
border:2px solid #dad9d8;
}
 </style>
<body>
 <?php
 error_reporting(0);
 $values = $_POST['inputText'];
 if(isset($_POST['ClearButton'])){
 $values = "";
 }
?>
 <br>
 <h4> Odd and Even Number Checker in PHP</h4>
 <h5> Created By Jake Rodriguez Pomperada</h5>
 <form action="" method="post">
 Give a Number
 <input type="text" name="inputText" size="5" maxlength="5"
 value="<?php echo $values; ?>" style="width:100px; height:30px;" required autofocus=""/>
 <br><br>
 <input id="shiny" type="submit" value="Ok" name="SubmitButton"/>
    
 <input id="shiny" type="submit" value="Clear" name="ClearButton"/>
</form>
<?php

function check_num($number){ 
    if($number % 2 == 0){ 
        echo "The given number $number is an EVEN number.";  
    } 
    else{ 
        echo "The given number $number is an ODD number.";  
    } 


$values = $_POST['inputText'];
if(isset($_POST['SubmitButton'])){
$num_val = (int)$values;
echo "<br>";
check_num($num_val);
}
?>
</body>
</html>



Odd and Even Number in C++ Checker

In this article I would like to share with you guys a simple program that will ask the user to give a number and then the program will check if the given number is an odd or even number 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.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


My personal website is http://www.jakerpomperada.com.



Program Listing


#include <iostream>

using namespace std;


int main() {
int num_val=0;
cout << "\n\n";
cout << "\tOdd and Even Number Checker in C++";
cout << "\n\n";
cout << "\tGive a Number : ";
cin >> num_val;
if (num_val % 2 == 0) {
cout << "\n";
cout << "\tThe given number " << num_val 
<< " is an EVEN number.";
} else
  {
    cout << "\n";
  cout << "\tThe given number " << num_val 
<< " is an ODD number.";
  }
  cout << "\n\n";
  cout << "\tEnd of the Program";
}