Categories
C

Print tables from 2 to 10 by using nested for loop in C

Print tables from 2 to 10 by using nested for loop in C programming language were written by my close friend and fellow software engineer Sir Ernel. Thank you sir Ernel  for sharing your work with us.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

#include<stdio.h>
int main()
{
int num,i;
for(num=2;num<=10;num++)
{
printf("\nTable of %d\n",num);
for(i=1;i<=10;i++)
{
printf("\n%d * %d =%d",num,i,num*i);
}
printf("\n");
}
return 0;
}
Categories
C

Math Operations Using Switch in C

Math operations using the switch in C programming language was written by my close friend and fellow software engineer Sir Ernel. Thank you sir Ernel  for sharing your work with us.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

#include<stdio.h>

int main()
{
int num1,num2,choice;
printf("\nEnter the two numbers\n");
scanf("%d %d",&num1,&num2);
printf("\n1 Addition");
printf("\n2 Subtraction");
printf("\n3 Multiplication");
printf("\n4 Division");
printf("\n5 Modulus");
printf("\nEnter the choice:");
scanf("%d",&choice);
switch(choice)
{
case 1:printf("\nThe Addition of two numbers is %d",num1+num2);
break;
case 2:printf("\nThe Subtraction of two numbers is %d",num1-num2);
break;
case 3:printf("\nThe Multiplication of two numbers is %d",num1*num2);
break;
case 4:printf("\nThe Division of two numbers is %d",num1/num2);
break;
case 5:printf("\nThe Modulus of two numbers is %d",num1%num2);
break;
default:printf("\nThis operation is not possible");
}
return 0;
}
Categories
Perl

Addition of Three Numbers Using Subroutine in Perl

I wrote this program to ask the user to give three numbers and then the program will compute the sum of three numbers using subroutine using the Perl programming language.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

# pass_value_subroutine.pl
# Author   : Jake R. Pomperada,MAED-IT,MIT
# Date     : April 7, 2020   Tuesday  11:34 AM
# Location : Bacolod City, Negros Occidental
# Email    : jakerpomperada@gmail.com
# Website  : http://www.jakerpomperada.com
print("\n");

# Subroutine to add the two values given 
# by the user.

sub Sum_All {
   $sum = 0;

   foreach $item (@_) {
      $sum += $item;
   }
   printf("\n");
   printf("\tThe sum of %d, %d and %d is %d.",$num1,$num2,$num3,$sum);
   print("\n\n");
   print("\t\tEnd of Program");
   print("\n");
}

sub Addition { 
    print("\tAddition of Three Numbers Using Subroutine in Perl");
    print("\n\n");
    print("\tEnter First Value  : ");
    chomp($num1=<STDIN>);
    print("\tEnter Second Value : ");
    chomp($num2=<STDIN>);
    print("\tEnter Third Value  : ");
    chomp($num3=<STDIN>);
    
    $sum = Sum_All($num1,$num2,$num3);
 } 

# Calling the Subroutine 
Addition();  
Categories
JQuery

Interest Loan Calculator in jQuery

In this article I share with you a simple interest loan calculator that I wrote using jQuery. I hope this can help you in your study of jQuery library.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<html>
<head>
<title>Interest Calculator in JQuery</title>
<script src="jquery-3.2.1.min.js"></script>
<style>
body {
 background-color:white;
 font-family: arial;
 font-size:15px;
 font-weight:bold;
 }

 .input_bold {
    font-weight: bold;
 font-size:15px;
 color: red;
}

.left {
    width: 15%;
    float: left;
    text-align: right;
}
.right {
    width: 50%;
    margin-left: 10px;
    float:left;
}
</style> 
<script>
$(document).ready(function(){

 $("#solve").click(function(){
   
  var amt = $("#amt").val();
  var interest = $("#interest").val();
  var years = $("#years").val();
  
   remarks = (amt*interest*years/100)
 $("#results").val('PHP ' + remarks.toFixed(2));
 
 });

   $("#clear").click(function(){
   $("#amt").val('');
   $("#interest").val('');
   $("#years").val('');
   $("#results").val('');
   $("#amt").focus();
   });
 });
  
 </script>
</head>
<body>
<form>
<br>
<h3>Interest Calculator in jQuery</h3>
<div class="left">
 Amount Loaned
</div>
<div class="right">
 <input type="text" id="amt" size="10" autofocus/><br>
</div>
<br><br>
<div class="left">
 Interest Rate 
</div>
<div class="right">
 <input type="text" id="interest" size="10" /><br>
</div>
<br><br>
<div class="left">
 How many years
</div> 
<div class="right">
 <input type="text" id="years" size="10" />
</div> 
<br><br>
<div class="left">
 The interest is 
</div>
<div class="right">
 <input type="text" id="results" class="input_bold" size="10" readonly/><br>
</div>
 <br><br><br>
 <div class="left">
<button type= "button" id ="solve">Check </button>    
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div class="right">
<button type= "button" id ="clear">Clear </button> 
</div>
</form>
</body>
</html>
Categories
JQuery

Greet a Person Using jQuery

Greet a Person Using jQuery Video Tutorial
Categories
JQuery

Greet a Person Using jQuery

A simple program that I wrote that will ask the user to give his or her name and then the program will greet the person’s name using jQuery.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
 background-color:white;
 font-family: arial;
 font-size:15px;
 font-weight:bold;
 }	
</style>
<script src="jquery-3.2.1.min.js"></script>
<script>
$(document).ready(function(){
$("form").submit(function(){
var names= document.getElementById("fname").value;
var display = names.toUpperCase();
alert("Hello " + display + " How are you?");
	});
});
</script>
</head>
<body><br><br>
<form>
What is your name? 
&nbsp;&nbsp;
<input type="text" id="fname" size="20">
<br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
Categories
C++

Convert Vowels into Upper Case in C++

Here is a program is given to us by my friend Tom. This program asks the user to give a string and then the program will convert all the vowels into upper case format in the given string.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Sample Program Output

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <cctype>

using namespace std;

bool is_vowel(char ch)
{
   const string vowels("aeiouAEIOU");

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

string& vowels_to_upper(string& s)
{
   for (char &ch : s)
     if (is_vowel(ch) && islower(ch))
       ch = toupper(ch);

   return s;
}

int main()
{
   string input;

   cout <<"\n\n";
   cout << "\tConvert Vowels into Upper Case in C++";
   cout <<"\n\n";
   while (true)
   {
     cout << "\tEnter a string (or quit): ";
     getline(cin, input);
     if (input == "quit")
       break;
     cout <<"\t" <<vowels_to_upper(input) << '\n';
    cout <<"\n";
   }
   cout <<"\n";
   cout <<"\tEnd of Program";
   cout <<"\n";
}
Categories
Java

Addition of Two Numbers Using OOP in Java

 I wrote this simple program in Java to ask the user to give two numbers and then the program will compute the total sum of two numbers.
I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

package oop_java;

import java.util.Scanner;
/**
 * NetBeans IDE 8.2
 * @author Mr. Jake R. Pomperada
 * March 22, 2018  Thursday
 * Bacolod City, Negros Occidental
 */
class  Addition {

    public int val_a;
    public int val_b;
    public int sum;
    
public void getdata() {
  Scanner input = new Scanner(System.in);

  System.out.print("Addition of Two Numbers Using OOP ");
  System.out.println("\n");
  System.out.print("Give First Value  : ");
  val_a = input.nextInt();
  System.out.print("Give Second Value :  ");
  val_b = input.nextInt();
 
 }
 
  public void calculate(){
     sum =(val_a + val_b);
  }
          
 
 public void display() {
  System.out.println("\n");
  System.out.println("The sum of " + val_a + " and "
          + val_b + " is " + sum + ".");
  System.out.println("\n");
  System.out.println("End of Program");
 }
 public static void main(String args[]) {
  Addition add = new Addition();
  add.getdata();
  add.calculate();
  add.display();
 }
}
Categories
Java

Leap Year Checker Using OOP in Java

I wrote this program to accept the user input a year and then the program will check if the given year is a leap year or not using object-oriented programming in Java.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com
My programming website is http://www.jakerpomperada.blogspot.com

I am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

package oop_java;

import java.util.Scanner;
/**
 * NetBeans IDE 8.2
 * @author Mr. Jake R. Pomperada
 * March 22, 2018  Thursday
 * Bacolod City, Negros Occidental
 */

public class LeapYear {
  public int year;
  public boolean leap = false;
  public String result;

 public void getdata() {
  Scanner input = new Scanner(System.in);
  System.out.println();
  System.out.println(" Leap Year Checker Using OOP");
  System.out.println();
  System.out.print("Enter Year :  ");
  year = input.nextInt();
  
 }
 public void checkyear() {
    if(year % 4 == 0)
        {
            if( year % 100 == 0)
            {
                // year is divisible by 400, hence the year is a leap year
                if ( year % 400 == 0)
                    leap = true;
                else
                    leap = false;
            }
            else
                leap = true;
        }
        else
            leap = false;

        if(leap)
            result =  year  + " is a leap year.";
        else
             result =  year + " is not a leap year.";
    }
     
  
 public void display() {
  System.out.println();
  System.out.println("===== DISPLAY RESULT =====");
  System.out.println();
  System.out.println(result);
  System.out.println();
 }
 public static void main(String args[]) {
   LeapYear year = new LeapYear();
  year.getdata();
  year.checkyear();
  year.display();
 }
}
Categories
JQuery

Word Count in a Sentence in jQuery

I wrote this program using jQuery to count the number of words in a given sentence.


I am currently accepting programming work inventory system, enrollment system, accounting system, payroll system, information system, website design and development using WordPress, 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 City, Negros Occidental I also accepting computer repair, web development using WordPress, Computer Networking, and Arduino Project development at a very affordable price. My personal website is http://www.jakerpomperada.com


My programming website is http://www.jakerpomperada.blogspot.comI am also a book author you can purchase my books on computer programming and information technology in the following links below.https://www.unlimitedbooksph.com/

Program Listing

<html>
<head>
<title>Word Count in a Sentence in jQuery</title>
</head>
<script type="text/javascript" src="jquery-3.2.1.min.js">
</script>
<body>
<script type="text/javascript">
   function WordCount(str) {
  	return str.split(" ").length;
  }

$(document).ready(function() { 
var sentence = "jQuery programming is fun.";	
document.write("<h2>Word Count in a Sentence in jQuery</h2>");
document.write("<h3>Sentence : " ,sentence,"</h3>");
count_words = WordCount(sentence);
document.write("<h3>Total Number of Words  : " ,count_words,"</h3>");
});
</script>
</body>
</html>