Wednesday, June 24, 2020

String Copy in C

An example of a string copy program that I wrote using C 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.comMy 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 () {
   char str1[10] = "Jake";
   char str2[10] = "Pomperada";
   char str3[10];
   int  len ;
   // copy str1 into str3
   strcpy( str3, str1);
   printf("\n\n");
   printf("\tstrcpy(str3, str1) : %s ",str3);
   printf("\n");
   // concatenates str1 and str2
   strcat( str1, str2);
   printf("\tstrcat( str1, str2): %s  ",str1);
      // total lenghth of str1 after concatenation
   len = strlen(str1);
   printf("\n");
   printf("\tstrlen(str1) :  %d ",len);
   printf("\n\n");
   printf("\t\tEnd of Program");
   printf("\n\n");
}

Continue Statement in C

A program that I wrote to show how to use continue statement using C 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.comMy 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 a = 1;
printf("\n\n");
printf("\tContinue Statement Demonstration");
do {
if (a==5) {
a+=1;
continue;
}
printf("\n\n");
printf("\tThe value of a: %d.",a);
a+=1;
} while (a <=10);
printf("\n\n");
    printf("\tThank you for Using This Software.");
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}

Break Statement in C

A program that I wrote to show how to use break statement in C 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.comMy 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

/*break.c
 Author    : Mr. Jake R. Pomperada,BSCS,MAED-IT
 Date      : November 23, 2018  Tuesday 11:48 AM
 Location  : Bacolod City, Negros Occidental
 Website   : http://www.jakerpomperada.com
 Emails    : jakerpomperada@jakerpomperada.com
             jakerpomperada@gmail.com
             jakerpomperada@yahoo.com
             jakerpomperada@aol.com
*/
#include <stdio.h>
int main()
{
int a=0;
printf("\n\n");
printf("\tBreak Statement in C");
printf("\n\n");
for (a=1; a<=10; a++)
{
if (a==6) {
break;
}
printf("\t%4d",a);
}
    printf("\n\n");
    printf("\tThank you for Using This Software.");
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}

Logical Operators in C

A program that demonstrates how to use logical operators using C programming languages.


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

/* logical.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 19, 2018  Monday 2:18 PM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Emails   : jakerpomperada@jakerpomperada.com
              jakerpomperada@gmail.com
              jakerpomperada@yahoo.com
              jakerpomperada@aol.com
*/

#include <stdio.h>

int main()
{
    int a=10, b=4, c=10, d=20;
    // logical AND example
    printf("\n\n");
    printf("\tLogical Operators Demonstration");
    printf("\n\n");
     if (a>b && c==d) {
      printf("\n");
      printf("\tA is greater than B AND C is equal to D.\n");
    }
    else {
    printf("\n");
    printf("\tAND condition not satisfied.\n");
   }
     // logical OR example
    if (a>b || c==d) {
    printf("\n");
    printf("\tA is greater than B OR C is equal to D.\n");
       }
    else 
    {
     printf("\n");
     printf("\tNeither A is greater than B nor C is equal to D.\n");
    }
    // logical NOT example
    if (!a) {
    printf("\n");
        printf("\tA is zero.\n");
    }
    else {
    printf("\n");
    printf("\tA is not zero.");
 }
printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}


Monday, June 22, 2020

Product of Two Numbers in VB.NET

Product of Two Numbers in VB.NET

Product of Two Numbers in VB.NET

A simple program that I wrote using Visual Basic NET to ask the user to give two numbers and then the program will compute the product of two numbers and display the results on the screen.


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

Program Listing

Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim a, b, product As Integer

        If TextBox1.Text = "" Then
            MsgBox("Cannot Be Empty. Try Again")
            TextBox1.Focus()
            TextBox3.Text = ""
        ElseIf TextBox2.Text = "" Then
            MsgBox("Cannot Be Empty. Try Again")
            TextBox2.Focus()
            TextBox3.Text = ""
        Else
            a = Val(TextBox1.Text)
            b = Val(TextBox2.Text)

            product = (a * b)

            TextBox3.Text = product
        End If
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        TextBox1.Text = ""
        TextBox2.Text = ""
        TextBox3.Text = ""
        TextBox1.Focus()
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        End
    End Sub
End Class





Interest Rate Solver in PHP

Interest Rate Solver in PHP

I wrote this interest rate solver using PHP 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.comMy 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

Program Listing

index.php


<!doctype html>
<html>
<head>
<title>Interest Rate Solver in PHP</title>
</head>
<style type="text/css"> 
  body {
font-family : arial;
};
</style>
<body>
<form method="POST" action="">
<h2>Interest Rate Solver in PHP</h2>
<?php
$amount=$interest_rate=$period=NULL;
$total_interest=$total_payable=$monthly_payable=0;
if(isset($_POST['compute'])){
$amount=$_POST['amount'];
$interest_rate=$_POST['interest_rate'];
$period=$_POST['period'];
$total_interest=$amount*($interest_rate/100)*$period;
$total_payable=$total_interest+$amount;
$monthly_payable=$total_payable/$period;
}
?>
<p>Amount Needed: <input type="text" name="amount" size="8" value="<?=$amount;?>"/></p>
<p>Interest Rate: <input type="text" name="interest_rate" size="8" value="<?=$interest_rate;?>"/></p>
<p>Payment Period: <input type="text" name="period" size="8" value="<?=$period;?>"/></p>
<p><input type="submit" name="compute" value="Compute"/></p>
<p>
Loan Amount: <?=number_format($amount, 2);?><br/>
Total Interest: <?=number_format($total_interest, 2);?><br/>
Total Payable: <?=number_format($total_payable, 2);?><br/>
Monthly Payable: <?=number_format($monthly_payable, 2);?>
</p>
</form>
</body>
</html>




Celsius To Fahrenheit in VB.NET

A simple program that I wrote using Visual Basic .NET to ask the user to give temperature value in Celsius and then our program will convert the given Celsius temperature into Fahrenheit equivalent.

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



Public Class Form1

    Dim celsius As Integer
    Dim fahrenheit As Double
    Dim solve_fahrenhiet As Double

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
        MsgBox("This program written By Jake Rodriguez Pomperada", vbInformation, "About This Program")
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        End
    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click

        TxtCelsius.Text = ""
        TxtFahrenheit.Text = ""
        TxtCelsius.Focus()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        celsius = Val(TxtCelsius.Text)
        fahrenheit = Val(TxtFahrenheit.Text)
        solve_fahrenhiet = (9 / 5) * (celsius + 32)

        TxtFahrenheit.Text = solve_fahrenhiet
    End Sub

End Class

Calculator Program in PHP

Calculator Program in PHP

I wrote this calculator program using PHP.

 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.comMy 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>
<title>Calculator Program in PHP</title>
</head>
<style type="text/css"> 
  body {
font-family : arial;
};
</style>
<body>
<form method="POST" action="">
<h2>Calculator Program in PHP</h2>
<?php
$n1=$n2=$res=0;
if(isset($_POST['operation'])){
$n1=$_POST['n1'];
$n2=$_POST['n2'];
$operation=$_POST['operation'];
if($operation=="Add"){
$res=$n1+$n2;
}else if($operation=="Subtract"){
$res=$n1-$n2;
}else if($operation=="Multiply"){
$res=$n1*$n2;
}else{
$res=$n1/$n2;
}
}
?>
<p>Value No. 1 <input type="text" name="n1" value="<?=$n1;?>" size="5"/></p>
<p>Value No. 2 <input type="text" name="n2" value="<?=$n2;?>" size="5"/></p>
<p>
<input type="submit" name="operation" value="Add"/>
<input type="submit" name="operation" value="Subtract"/>
<input type="submit" name="operation" value="Multiply"/>
<input type="submit" name="operation" value="Divide"/>
</p>
<p>Result: <input type="text" name="res" value="<?=$res;?>" size="5"/></p>
</form>
</body>
</html>

Friday, June 19, 2020

Fahrenheit To Celsius in PHP



A program that will convert Fahrenheit temperature into Celsius temperature equivalent using PHP 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.comMy 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

<?php
$cel=$fah=0;
if(isset($_POST['convert'])){
$fah=$_POST['fah'];
$cel=($fah-32)*5/9;
}
?>
<!doctype html>
<html>
<head>
<title>Fahrenheit To Celsius in PHP</title>
</head>
<body>
<form method="POST" action="">
<h2>Fahrenheit To Celsius in PHP</h2>
Fahrenheit: <input type="text" name="fah" value="<?=$fah;?>" size="5"/> =
<input type="text" name="cel" value="<?=$cel;?>" size="5"/> Celsius
<br/><br/>
<input type="submit" name="convert" value="Convert"/>
</form>
</body>
</html>

Celsius To Fahrenheit in PHP


A Celsius To Fahrenheit temperature converter program written in PHP 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.comMy 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

<?php
$cel=$fah=0;
if(isset($_POST['convert'])){
$cel=$_POST['cel'];
$fah=$cel*9/5+32;
}
?>
<!doctype html>
<html>
<head>
<title>Celsius To Fahrenheit in PHP</title>
</head>
<body>
<form method="POST" action="">
<h2>Celsius To Fahrenheit in PHP</h2>
Celsius: <input type="text" name="cel" value="<?=$cel;?>" size="5"/> =
<input type="text" name="fah" value="<?=$fah;?>" size="5"/> Fahrenheit
<br/><br/>
<input type="submit" name="convert" value="Convert"/>
</form>
</body>
</html>

Calculator Program in PHP

A calculator program is written in PHP 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.comMy 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>
<title>Calculator in PHP</title>
</head>
<body>
<form method="POST" action="">
<h2>Calculator in PHP</h2>
<?php
$n1=$n2=$res=0;
if(isset($_POST['operation'])){
$n1=$_POST['n1'];
$n2=$_POST['n2'];
$operation=$_POST['operation'];
if($operation=="Add"){
$res=$n1+$n2;
}elseif($operation=="Subtract"){
$res=$n1-$n2;
}elseif($operation=="Multiply"){
$res=$n1*$n2;
}else{
$res=$n1/$n2;
}
}
?>
<p>Num1: <input type="text" name="n1" value="<?=$n1;?>" size="5"/></p>
<p>Num2: <input type="text" name="n2" value="<?=$n2;?>" size="5"/></p>
<p>
<input type="submit" name="operation" value="Add"/>
<input type="submit" name="operation" value="Subtract"/>
<input type="submit" name="operation" value="Multiply"/>
<input type="submit" name="operation" value="Divide"/>
</p>
<p>Result: <input type="text" name="res" value="<?=$res;?>" size="5"/></p>
</form>
</body>
</html>

Thursday, June 18, 2020

Login Using Text File in C#

A program was written by my friend by Tom the shows how to create a login system using text file in C#.

 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.comMy 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/


Majority Elements in C#

A program was written by my friend by Tom he called these program majority elements in C#.

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

using System;
using System.Collections.Generic;
using System.Linq;

   public class ArrayAlgorithms
   {
     public static bool HasMajorityElement<T>(IEnumerable<T> elements,
ref T res)
       where T: IComparable
     {
       T candidate = default(T);
       int count = 0;
       int num_elems = 0;

       foreach(var elem in elements)
       {
         ++num_elems;
         if (count == 0)
         {
           candidate = elem;
         }
         else if (candidate.Equals(elem))
         {
           ++count;
         }
         else
         {
           --count;
         }
       }
       var elem_count = elements.LongCount<T>((elem) =>
candidate.Equals(elem));
       if (elem_count > num_elems / 2)
       {
         res = candidate;
         return true;
       }
       return false;
     }
   }
   class Program
   {
     static void Main(string[] args)
     {
       string[] names = {"Anna", "Lisa", "Anna"};
       string name = string.Empty;

       Console.WriteLine("Testing string[] names.");
       if (ArrayAlgorithms.HasMajorityElement<string>(names, ref name))
       {
         Console.WriteLine("Found majority element: {0}", name);
       }

       Console.WriteLine("Testing int[] numbers.");
       int[] numbers = {1,2,3,4,5,6};
       int res = 0;
       if (ArrayAlgorithms.HasMajorityElement<int>(numbers, ref res))
       {
         Console.WriteLine("Found majority element: {0}", res);
       }
       else
       {
         Console.WriteLine("Counldn't find majority element");
       }
       Console.ReadKey();
     }
   }

Monday, June 15, 2020

RGB Color Mixer in HTML and CSS

A simple program was written by my good friend and fellow software engineer Sir Ernel to show how to use for loop statement using a javascript programming language.

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

<h1>JavaScript For Loops</h1>
<h2 id="forloop"></h2>
<script>
var text="";
var i;
for (i = 0; i < 11; i++) {
    text += i + "<br>";
}
document.getElementById("forloop").innerHTML = text;
</script>

Time Date and Day Using JavaScript

A simple program was written by my good friend and fellow software engineer Sir Ernel to generate RGB color mixer in HTML and CSS.

 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.comMy 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>
<title>Document</title>
<style>
form > input{
display: flex;
form > .bcm{
width: 100%;
height: 200px;
border: 1px solid grey;
background-color: rgb(0,0,0);
}
</style>
</head>
<body>

<form oninput="sett()">
<input type="range" id="x" max="255" value="0">
<input type="range" id="y" max="255" value="0">
<input type="range" id="z" max="255" value="0">
<div class="bcm"></div>
<code id="code">rgb(0,0,0);</code>
</form>
<script>

function sett()
{
var x = document.getElementById("x").value;
var y = document.getElementById("y").value;
var z = document.getElementById("z").value;

var ok = document.getElementsByClassName("bcm");
ok[0].style.backgroundColor = "rgb("+x+","+y+","+z+")";
var ct = document.getElementById("code");
ct.innerHTML = "rgb("+x+","+y+","+z+")"+";";
</script>
</body>
</html>