Friday, April 23, 2021

Odd and Even Number Checker in JavaScript

 A simple program that I wrote to ask the user to give a number and then the program will check if the given number is odd or even number using JavaScript programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com







Program Listing

<!DOCTYPE html>
<html> 
<head>
<meta charset=utf-8 />
<title>Odd and Even Number Checker in JavaScript </title>
<style type="text/css">
html {
    box-sizingborder-box;
    margin0;
    padding0;
}

body {
    background#fff;
    color#000;
    height100%;
    min-height100vh;
    overflow-yauto;
    padding100px 0;
    text-aligncenter;
    font-familysans-serif;
}

h1:nth-of-type(1) {
    font-size35px;
    line-height35px;
    margin0 0 15px;
}

h2:nth-of-type(1) {
    margin0 0 35px;
}

h2:nth-of-type(2) {
    margin30px 0 20px;
    text-transformuppercase;
    letter-spacing1px;
    font-size30px;
}

a,
input[type="submit"] {
    margin0 0 35px;
    color#fff;
    text-decorationnone;
    padding15px 20px;
    border-radius10px;
    min-width150px;
    background#3CBB9E;
    displayinline-block;
    text-transformuppercase;
    bordernone;
    outlinenone;
    font-size15px;
}

a:hover,
input[type="submit"]:hover {
    opacity0.8;
    color#fff;
    cursorpointer;
}

a:nth-of-type(1) {
    margin-right8px;
}

a:nth-of-type(2) {
    margin-left8px;
}

table {
    margin0 auto;
    border-collapsecollapse;
    border1px solid #000;
}

thead td {
    text-transformuppercase;
    font-weight700;
    background#00334B;
    color#f2f2f2;
}

tbody tr {
    background#fff;
    border-bottom1px solid #00334B;
    color#666666;
}

td {
    padding20px;
}

table a,
table a:hover {
    border-radius5px;
    min-width80px !important;
    padding10px !important;
    margin0 !important;
}

table tr td:nth-child(4a {
    background#2b86c5 !important;
}

table tr td:nth-child(5a {
    background#784ba0 !important;
}

table tr td:nth-child(6a {
    background#ff3cac !important;
}

p,
label,
input[type="text"] {
    font-size15px;
    margin-bottom10px;
}

p {
    font-size20px;
}

label {
    width200px;
    displayinline-block;
    padding15px 0;
    background#3CBB9E;
    color#fff;
    border-top-left-radius30px;
    border-bottom-left-radius30px;
    text-transformuppercase;
    font-size15px;
}

input[type="number"] {
    border0;
    outlinenone;
    padding15px 20px;
    width250px;
    border-top-right-radius10px;
    border-bottom-right-radius10px;
    font-size15px;
    background#eaeaea;
}

form {
    displayblock;
    width350px;
    margin0 auto;
}

input[type="submit"] {
    width100%;
    font-size15px;
}

h1 {
    text-transformuppercase;
    letter-spacing1px;
    color#f5f5f5;
    background#009688;
    padding15px;
    border-radius10px;
    margin0;
    line-height30px;
    font-size35px;
}

</style> 
</head>
<body>
    <h1>Odd and Even Number Checker in JavaScript</h1>
    <script>
        function isEven() {

       //get the input value
             var num = document.getElementById('Val_Num').value;
    if (num%2 == 0)
        
        alert("The given number " + num +  " is even number");
    else
    alert("The given number " + num + " is odd number");
}

function Clear_Text() {

 document.getElementById('Val_Num').value ="";
 document.getElementById('Val_Num').focus();
 

}

    </script>
<form>
<label>Give a Number </label> <input type="number" id="Val_Num" name="Val_Num"/><br>
<br>
<input type="submit" onClick="isEven()" Value="Check" />
<input type="submit" onClick="Clear_Text()" Value="Clear" />
</form>
</p>
</body>
</html>

Thursday, April 22, 2021

Addition of Three Numbers in VB NET

Addition of Three Numbers Using VB.NET

 A simple program that I wrote using VB.NET to ask the user to give three numbers and then the program will allow the user to compute the sum of the three 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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com






Program Listing


Public Class Form1

    Private Sub Button1_Click(sender As Object, e As EventArgs)

        MessageBox.Show("Addition of two Numbers")

    End Sub


    Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click

        TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text)

    End Sub


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

        TextBox1.Text = ""

        TextBox2.Text = ""

        TextBox3.Text = ""

        TextBox4.Text = ""

        TextBox1.Focus()

    End Sub


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

        Me.Close()

    End Sub

End Class


Wednesday, April 21, 2021

CRUD with Go and MySQL

CRUD in Go and MySQL

 In this tutorial I share with you a CRUD program that I wrote using Go, HTML, CSS and MySQL I hope you will find my work useful.

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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com













DOWNLOAD THE COMPLETE AND FREE SOURCE HERE

Tuesday, April 20, 2021

Login System with Go and MySQL

Login System in Go and MySQL

 Here is a simple login system that I wrote using Go and MySQL I hope you will find my work useful.

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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com










Download the complete source code here


Saturday, April 17, 2021

Difference Between The Largest and Smallest Value in C#

Difference between the largest and smallest value in C#

 A simple program to ask the user to give a series of numbers and then the program will compute the difference between the largest and smallest number in C# programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com



Program Listing


// High_Low.cs

// Prof. Jake Rodriguez Pomperada,MAED-IT, MIT

// www.jakerpomperada.blogspot.com  / www.jakerpomperada.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines

using System;

namespace exercises

{

    class Program

    {

        static void Main(string[] args)

                    {

            Console.WriteLine("\n");

            Console.WriteLine("\tDifference between the largest and smallest value in C# ");

            int[] arr = new int[10];

            int small_num = 0, biggest_num = 0;

            int i;


            Console.WriteLine("\n");

          Console.Write("\tInput 10 elements in the array :\n");

            Console.WriteLine("\n");

            for (i = 0; i < 10; i++)

            {

                Console.Write("\tGive value in Item No. {0} : ", (i+1));

                arr[i] = Convert.ToInt32(Console.ReadLine());

            }

                                           


            if (arr.Length > 0) small_num = biggest_num = arr[0];


            for ( i = 1; i < arr.Length; i++)

            {

                small_num = Math.Min(small_num, arr[i]);

                biggest_num = Math.Max(biggest_num, arr[i]);

            }

            Console.WriteLine("\n");

            Console.Write("\tThe difference is {0}.  ", biggest_num- small_num);

            

        }

    }

}


Saturday, April 10, 2021

General Average Grade Solver With Remarks in C++

General Average Grade Solver With Remarks in C++

 A simple program to compute the average grade of the student with remarks that I wrote 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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com








Program Listing


// general_average.cpp

// Author  : Jake Rodriguez Pomperada,MAED-IT, MIT

// Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com

// Date   : April 10, 2021   Saturday  9:30 AM

// Email  : jakerpomperada@gmail.com


#include <iostream>

#include <string.h>


using namespace std;


// Prelim - 0.20, Midterm - 0.30, Finals = 0.50


int main() 

{

 int prelim=0, midterm=0,finals=0;

 int solve_grade;

 

 char subject[100];


    cout <<"\n\n";

 cout <<"\tGeneral Average Grade Solver With Remarks in C++";

 cout <<"\n\n";

 cout <<"\tSubject Name : ";

 gets(subject);

 

 cout <<"\tEnter Prelim Grade : ";

 cin >> prelim;

 cout <<"\tEnter Midterm Grade : ";

 cin >> midterm;

 cout <<"\tEnter Final Grade : ";

 cin >> finals;

 

 solve_grade = (prelim * 0.2) +

               (midterm * 0.3) +

      (finals * 0.5);   

 

 

 cout <<"\n\n";

 cout << "\tSubject : " << subject;

 cout <<"\n\n";

 cout <<"\tYou general average grade is "

     << solve_grade <<".";

cout << "\n\n\n";


if (solve_grade >= 75) {

cout << "\tYou Passed the Subject this semester.";

} else {

cout << "\tYou Failed the Subject this semester.";

}

 cout <<"\n\n";

 cout <<"\tEnd of the Program";

}



Simple Inventory System in PHP

Simple Inventory System in PHP

 Here is a simple inventory system in PHP that I wrote I hope you will like it.

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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com









DOWNLOAD THE FREE AND COMPLETE SOURCE CODE HERE

Thursday, April 8, 2021

Saving a Text in a Text File in C++

Saving a Text in a Text File in C++

 A simple program that I wrote in C++ to save a text file I hope you will find my work useful.

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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com



Program Listing

#include <iostream>

#include <fstream>



using namespace std;



main() {


    ofstream myfile("test.txt");

    myfile << "Saving a Text in a Text File in C++";

    myfile.close();

}



Wednesday, April 7, 2021

Quick Sort in C++

Quick Sort in C++

 A simple program quick sort in C++ program that I wrote while I am learning C++ programming.

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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com





Program Listing

// quick_sort.cpp

// Prof. Jake R. Pomperada, MAED-IT, MIT

// www.jakerpomperada.com / www.jakerpomperada.blogspot.com

// jakerpomperada@gmail.com

// Bacolod City, Negros Occidental Philippines


#include <iostream>

#include <cstdlib>

 

using namespace std;


void swap_numbers(int *a, int *b)

{

int temp; 

temp = *a;

*a = *b;

*b = temp;

}

 


int Partition(int a[], int low, int high)

{

int pivot, index, i;

index = low;

pivot = high;

 


for(i=low; i < high; i++)

{

if(a[i] < a[pivot])

{

swap_numbers(&a[i], &a[index]);

index++;

}

}


swap_numbers(&a[pivot], &a[index]);

 

return index;

}

 


int RandomPivotPartition(int a[], int low, int high)

{

int pvt, n, temp;

n = rand();


pvt = low + n%(high-low+1);

 


swap_numbers(&a[high], &a[pvt]);

 

return Partition(a, low, high);

}

 


int QuickSort(int a[], int low, int high)

{

int pindex;

if(low < high)

{


pindex = RandomPivotPartition(a, low, high);


QuickSort(a, low, pindex-1);

QuickSort(a, pindex+1, high);

}

return 0;

}

 

int main()

{

int n=0, i=0;

cout <<"\n";

cout <<"\t\tQuick Sort in C++";

cout <<"\n\n";

cout<<"\tHow many items to be sorted? ";

cin>>n;

 

int arr[n];

for(i = 0; i < n; i++)

{

cout<<"\tEnter item no. "<<i+1<<": ";

cin>>arr[i];

}

    cout <<"\n";

  cout<<"\tUnSorted Items\n ";

cout <<"\n";

cout <<"\t";

for (i =0; i < n; i++) {

cout<<" ,"<<arr[i];

}

    cout <<"\n";

QuickSort(arr, 0, n-1);

    cout <<"\n\n";

cout<<"\tSorted Item \n";

cout <<"\n";

cout <<"\t";

for (i = 0; i < n; i++) {

cout<<" ,"<<arr[i];

}

    cout <<"\n\n";

cout <<"\tEnd of Program";   

cout <<"\n";

}



Tuesday, April 6, 2021

Asterisk Triangle in Java

Asterisk Triangle in Java

 A simple program that will ask the user to give a number and then the program will generate the asterisk triangle using Java 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 at 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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com



Program Listing

/* Asterisk.java

 * Author : Jake Rodriguez Pomperada, MAED-IT, MIT

 * April 5, 2021   8:13 PM

 * www.jakerpomperada.blogspot.com

 * www.jakerpomperada.com

 * jakerpomperada@gmail.com

 * Bacolod City, Negros Occidental

 */ 


import java.util.Scanner;


public class Asterisks {

public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        

        System.out.println();

        System.out.print("\tAsterisk Triangle in Java");

        System.out.println("\n");

        System.out.print("\tEnter a number: ");

        int number = scan.nextInt();

        int res;

        System.out.println("\n");

        for (int a=1; a<=number; a++) {

        System.out.print("\t");

            res = number - a;

            for (int b=0; b<=res;b++) {

                System.out.print("*");

            }

            System.out.println("");

        }

    }

}


Money Denomination Checker in Perl

Money Denomination Checker in Perl