Monday, July 1, 2019

Count Capital and Small Letters in JavaScript

In this sample program, we will show you how to count the capital and small letters in a given sentence using JavaScript. 

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

<html>
  <head>
        <title>Count Capital and Small Letters in JavaScript</title>
         <style>
        body{
font-family:arial;
font-size:15px;
font-weight:bold;
}  
</style>
        <script language="javascript">
function count_all()
                {
                         if (document.getElementById("str").value == '') {
alert("Textbox is Empty !!! Please provide some string.");
document.getElementById("str").value = "";
document.getElementById("upper_str").value = "";
document.getElementById("lower_str").value = "";
document.getElementById("str").focus();
                        }
else {
var str1 = document.getElementById("str").value;
    var numUpper = str1.length - str1.replace(/[A-Z]/g, '').length;  
var numLower = str1.length - str1.replace(/[a-z]/g, '').length;  
                        var result = document.getElementById("upper_str");
var result2 = document.getElementById("lower_str");
                        result.value = numUpper;
result2.value = numLower;
}
                }
function clear_all()
{
document.getElementById("str").value = "";
document.getElementById("upper_str").value = "";
document.getElementById("lower_str").value = "";
document.getElementById("str").focus();
}
        </script>
  </head>
  <body>
      <br><br>
      <h3>Count Capital and Small Letters in JavaScript</h3>
   <br>
        Enter a String <input type="text" id="str" name="str" value="" size="30" autofocus/>
        <br><br>
        <input type="button" name="Submit" value="Count" onclick="javascript:count_all()"
title="Click here to count the capital and small letters."/>
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" name="Submit" value="Clear" onclick="javascript:clear_all()"
title="Click here to clear the text box."/>
<br><br><br><br>
        Number of Capital Letter(s) is  <input type="text" id="upper_str" name="upper_str" size="3"/>
<br><br>
Number of Small Letter(s) is  <input type="text" id="lower_str" name="lower_str" size="3"/>
  </body>
</html>

Sum of Two Numbers in JavaScript

In this article, I would like to share with you a sample program using HTML forms and JavaScript that allows the user to find the sum of the two numbers.

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

<html>
  <head>
        <title>Addition of Two Numbers in JavaScript</title>
        <script language="javascript">
                function addNumbers()
                {
                        var val1 = parseInt(document.getElementById("value1").value);
                        var val2 = parseInt(document.getElementById("value2").value);
                        var ansD = document.getElementById("answer");
                        ansD.value = val1 + val2;
                }
        </script>
  </head>
  <body>
        value1 = <input type="text" id="value1" name="value1" value="1"/>
        value2 = <input type="text" id="value2" name="value2" value="2"/>
        <input type="button" name="Sumbit" value="Click here" onclick="javascript:addNumbers()"/>
        Answer = <input type="text" id="answer" name="answer" value=""/>
  </body>
</html>

Sunday, June 30, 2019

Fibonacci Series Using For Loop Statement in Python

Write a program will ask the user to give a number  and then the  program to print fibonacci series using for loop statement.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

print()
print("\tFibonacci Series Using For Loop Statement")
print()
num = int(input("\tGive a number of digits you want in series (minimum 2): "))
first = 0
second = 1
print()
print("\tfibonacci series is:")
print()
print("\t",first,",", second, end=", ")
for i in range(2, num):
    next = first + second
    print(next, end=", ")
    first = second
    second = next
print("\n\n")
print("\tEND OF PROGRAM");

Factorial Solver Using For Loop Statement Using Python


Write a program to ask the user to give a number and then the program will compute and display the factorial value of the given number using for loop statement using Python programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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


print()
print("\tFactorial Solver Using For Loop Statement")
print()
factorial = 1
num = int(input("\tGive a Number : "))
for i in range(1, num + 1):
    factorial = (factorial* i)
print()
print("\tThe factorial value of ", num, " is ", factorial,'.')
print()
print("\tEND OF PROGRAM");

Continue Statement Demonstration in Python

Write a program to demonstrate the use of continue statement using Python programming language.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# continue_example.py
# Rollyn M. Moises and Jake R. Pomperada
# February 26, 2019    Tuesday
# Bacolod City, Negros Occidental

number = 1

print();
print("\tContinue Statement Demonstration");
print();
#declaring a tuple
num = (1,2,3,4,5,6,7,8,9,10)
count = 10
while (count>0):
  count = count-1
  if count == 5:
     continue
  print ("\tList of values %d." % num[count])
print();
print("\tEND OF PROGRAM");

Break Statement Demonstration in Python

Write a program that will demonstrate the use of break statement in Python.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

# break_example.py
# Rollyn M. Moises and Jake R. Pomperada
# February 26, 2019    Tuesday
# Bacolod City, Negros Occidental

number = 1

print();
print("\tBreak Statement Demonstration");
print();
for number in range(10):
     number = number + 1
     print("\tThe Number is %d." % number);
     if number == 6:
        break
print();
print('\tOut of the loop')
print();
print("\tEND OF PROGRAM");

Find Sum Of Elements In A List in Python

Here is the sample program to find the sum of elements in a list in Python.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

ListSum=[]


num=int(input("How many numbers: "));
for n in range(num):
    numbers=int(input("Enter numbers: "));
    ListSum.append(numbers)
print("Sum of numbers in list: ",sum(ListSum))

Positive or Negative Number Checker in JQuery

A simple program that I wrote using JQuery to check for Positive or Negative Number.

If you like my work please click the ads on my website to support my work. I will really appreciate your help. 

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

<html>
<head>
<title> Positive or Negative Number Checker in JQuery </title>
<script src="jquery.js"></script>
<style>
body {
 font-family: arial;
 font-size:15px;
 font-weight:bold;
 }
 .input_bold {
font-weight: bold;
 font-size:15px;
 color: red;
}
</style> 
<script>
$(document).ready(function(){
 $("#check_it").click(function(){
 var num = $("#num_value").val();
 if(jQuery.isNumeric(num) == false){
alert('Please enter numeric value');
 $('#num_value').val('');
 $("#results").val('');
$('#num_value').focus();
 }
 else if (num>= 0)
 {
remarks = num+ " is a Positive Number.";
$("#results").val(remarks);
 }
 else {
remarks = num+ " is a Negative Number.";
$("#results").val(remarks);
 }
 });
$("#clear").click(function(){
$("#num_value").val('');
$("#results").val('');
$("#num_value").focus();
 });
 
 
 });
 </script>
</head>
<body>
<form>
Give a Number
<input type="text" id="num_value" size="3"autofocus/><br><br>
The result
<input type="text" id="results" class="input_bold" size="30" readonly/><br>
<br><br>
<button type= "button" id ="check_it">Check </button>
     
<button type= "button" id ="clear">Clear </button>
</form>
</body>
</html>

Average and Percentage of Five Subjects Solver Using Golang

Write a program that will ask the student to give five grades on the following subjects English, Physics, Chemistry, Mathematics, and Computer.  The program will solve the total marks, average marks, and percentage of the five subject grades being given by 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.

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.go

package main
import "fmt"
      
func main(){
    var eng, phy, chem, math, comp float32
    var total, average, percentage float32
         
    fmt.Print("\n\n")
    fmt.Print("\tAverage and Percentage of Five Subjects Solver")
    fmt.Print("\n\n")
    fmt.Print("\tEnter Marks of Five Subjects : ")
    fmt.Scan(&eng,&phy,&chem,&math,&comp)
   
/* Calculate total, average and percentage */
    total = eng + phy + chem + math + comp;
    average = total / 5.0;
    percentage = (total / 500.0) * 100;

    fmt.Print("\n\n")
    
    fmt.Print("\tTotal Marks = ")
    fmt.Printf("\t%0.2f ",total)
    fmt.Print("\n")
    fmt.Print("\tAverage Marks = ")
    fmt.Printf("%0.2f ",average) 
    fmt.Print("\n\n")
    fmt.Print("\tPercentage = ")
    fmt.Printf("%0.2f",percentage) 
    fmt.Print("%") 
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
}

    

   


Simple Interest Rate Solver in Golang

A very simple program that I wrote using Golang programming language to compute the loan interest of the customer in a lending or financial institution.

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


package main

import "fmt"

func main() {
var principal, time, rate, SI float64

fmt.Print("\n")
fmt.Print("\tSimple Interest Rate Solver")
fmt.Print("\n\n")
fmt.Print("\tEnter Principal Amount : ")
fmt.Scanf("%f",&principal)
fmt.Print("\tEnter Time  : ")
fmt.Scanf("%f",&time);
fmt.Print("\tEnter Rate  : ")
fmt.Scanf("%f",&rate);
/* Calculate simple interest */
SI = (principal * time * rate) / 100;
fmt.Print("\n")
fmt.Println("\tThe sum of %.2f",SI)
fmt.Print("\n")
fmt.Print("\tEnd of Program")
fmt.Print("\n")
}


Divisible Number Determiner in Golang

Write a program to check whether a number is divisible by 5 and 11.


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

// divisible.go

package main
import "fmt"
func main(){
    var number_given int32
    fmt.Print("\n")
    fmt.Print("\tDivisible Number Determiner")
    fmt.Print("\n\n")
    fmt.Print("\tKindly give a number? ")
    fmt.Scanln(&number_given)
  if ((number_given % 5 == 0) && (number_given % 11 == 0)) {
       fmt.Print("\n")
       fmt.Print("\tThe given number ")
       fmt.Printf("%d",number_given)
       fmt.Print(" is divisible by 5 and 11.")
    } else {
       fmt.Print("\n")
       fmt.Print("\tThe given number ")
       fmt.Printf("%d",number_given)
       fmt.Print(" is not divisible by 5 and 11.")
    }
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")

Character Checker Program in Golang

Design a program to input a character from user and check whether the given character is alphabet or not.


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

// character.go

package main
import (
    "fmt"
    "bufio"
    "os"
)


func main() {
    scanner := bufio.NewScanner(os.Stdin)
    
    var ch string
    fmt.Print("\n")
    fmt.Print("\tCharacter Checker Program")
    fmt.Print("\n\n")
    fmt.Print("\tGive a Character : ")
    scanner.Scan()
    ch = scanner.Text()
     
    if ((ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z")) {
    fmt.Print("\n\n")
    fmt.Print("\tThe given character ");
        fmt.Printf("%s",ch) 
    fmt.Print(" is an Alphabet.")
      } else { 
        fmt.Print("\n\n")
    fmt.Print("\tThe given character ");
        fmt.Printf("%s",ch) 
    fmt.Print(" is Not an Alphabet.")
    }    
    fmt.Print("\n\n")
    fmt.Print("\tEnd of Program")
    fmt.Print("\n")
 }