Saturday, October 28, 2017

College Year Level Checker Using Visual Basic NET

In this article I would like to share with you a simple program that I wrote using Visual Basic NET to ask the user to give the year level of the students using if else statement in Visual Basic NET. I hope you will find my work useful.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.








Sample Program Output


Program Listing


Public Class Form1

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

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

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim year_level As String
        Dim value_level As Integer

        year_level = TextBox1.Text
        value_level = Int32.Parse(year_level)

        If value_level = 1 Then
            MessageBox.Show("You care belong to Freshmen.")
        ElseIf value_level = 2 Then
            MessageBox.Show("You are belong to Sophomore.")
        ElseIf value_level = 3 Then
            MessageBox.Show("You are belong to Juniors.")
        ElseIf value_level = 4 Then
            MessageBox.Show("You are belong to Seniors.")
        Else
            MessageBox.Show("Invalid Year Level Please Try Again.")
        End If
    End Sub
End Class




Thursday, October 26, 2017

Area of the Triangle Solver in C++

A very simple program that I wrote using C++ to compute the area of the triangle based on the given base and height value of our user. The code is very easy to understand and use. I hope you will like it.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.





Sample Program Output


Program Listing

area.cpp


// Area of the Triangle Solver in C++
// Author   : Mr. Jake R. Pomperada, MAED-IT
// Date     : October 26, 2017
// Language : C++
// Place    : Bacolod City, Negros Occidental Philippines
// Tools    : CodeBlocks


#include <iostream>
#include <iomanip>

using namespace std;

int main()
{

    int height=0,base=0;
    float area;

    cout << "===================================";
    cout << "\n";
    cout << "Area of the Triangle Solver in C++";
    cout << "\n";
    cout << "===================================";
    cout << "\n\n";
    cout << "Give the height : ";
    cin >> height;
    cout << "Give the base   : ";
    cin >> base;
    area = (height * base) /2;
    cout << "\n\n";
    cout << fixed << showpoint;
    cout << setprecision(2);
    cout << " The area of the triangle is  " << area << ".";
    cout << "\n\n";
    cout << "===== End of the Program =====";
    cout << "\n\n";
}



Saturday, October 21, 2017

Product Discount System in Visual Basic NET

I this article I would like to share with you a sample program that I wrote using Visual Basic NET to compute the discount of the product. The code is very easy to understand and learn.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.






Sample Program Output


Program Listing

Public Class Form1

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

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim solve, final_solve, orig_price, discount As Double

        orig_price = Convert.ToDecimal(TextBox2.Text)

        discount = Convert.ToDecimal(TextBox3.Text) / 100

        solve = orig_price * discount

        final_solve = (orig_price - solve)

        TextBox4.Text = "Php " & Format(final_solve, "0.00")
    End Sub
End Class




Hong Kong Style Noodles and Dimsum Inventory System

A very simple inventory system that I wrote for Hong Kong Style Noodles and Dimsum a local business here in Bacolod City to monitor the daily business transaction of products in the company. I am using Turbo Pascal For Windows in this program.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.





Sample Program Output


Program Listing

inventory.pas

{ Written By Mr. Jake R. Pomperada, MAED-IT }
{ Date : October 21, 2017                   }
{ Eroreco Subdivision, Bacolod City, Negros Occidental Philippines }

Program Inventory;
Uses WinCrt;
Var

Product,Date : String;
In_day, End_Day, Balance : Integer;

Begin
   Write('Hong Kong Style Noodles and Dimsum Inventory System');
   Writeln;
   Writeln;
   Write('Date       : ');
   Readln(date);
   Write('Product    :  ');
   Readln(product);
   Write('In of Day  :  ');
   Readln(In_day);
   Write('End of Day :  ');
   Readln(End_Day);

   writeln;
   writeln('Daily Report ');
   writeln;
   write('Product    : ' ,product);
   writeln;
   write('Date       : ' ,date);
   writeln;
   writeln;
   balance := (In_day-End_Day);
   Write('Balance    :  ', balance);
   Readln;
End.
   






Friday, October 20, 2017

Linear Search in C#

Here is a sample program that I wrote using C# to demonstrate linear or sequential search. What does the program will do is to ask the user to give a number which represents an element and then our program will search the given number or element from a list of values stored in our one dimensional array if the given number is there or not.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.




Sample  Program Output


Program Listing

linear.cs

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

namespace ConsoleApplication1
{
    class Linear_Search
    {
        static void Main(string[] args)
        {

            int flag = 0;

            int[] arr = { 5,6,7,8,9,10,11,12,13,14,15}; 

            int num=0;

            Console.WriteLine("\tLinear Search in C# ");
            Console.WriteLine("\n");
            Console.WriteLine("Created By Mr. Jake R. Pomperada");
            Console.WriteLine("\n\n");
            Console.Write("Enter element to be search : ");
            num = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("\n\n");

          

            for (int i = 0; i < 11; i++)
            {

                if (arr[i] == num)
                {

                    Console.WriteLine(num + " element is found in the list");
                    Console.WriteLine("\n\n");

                    flag = 1;

                }

                else
                {

                    Console.WriteLine("Searching element form the list.");
                    Console.WriteLine("\n\n");

                }

                if (flag == 1) break;

            }

            if (flag == 0)
            {

                Console.WriteLine("\n\n");
                Console.WriteLine(num + " Not Found in the list.");

            }

            Console.Write("\n\n");
            Console.Write("\t Thank You For Using This Software.");
            Console.ReadKey();
        }
        
    }
}




Array Demonstration in C#

A very simple program that I wrote using C# to demonstration array as our data structure.  The code is very short and easy to understand.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.



Sample Program Output


Program Listing


array_demo.cs


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace array_demo
{
    class array_demo
    {
        static void Main(string[] args)
        {
            int[] values = new int[12]; /* values is an array of 5 integers */
            int a = 0, b = 0;

            /* initialize elements of array values*/
            for (a = 0; a < 12; a++)
            {
                values[a] = a + 100;
            }

            Console.Write("\n\n");
            Console.Write("\t      Array Demonstration Program ");
            Console.Write("\n\n");
            /* output each array element's value */
            for (b = 0; b < 12; b++)
            {
                Console.WriteLine("\t\t Element[{0}] = {1}", b, values[b]);
            }
            Console.Write("\n\n");
            Console.Write("\t Thank You For Using This Software.");
            Console.ReadKey();
        }
    }

}

Two Dimensional Arrays in C#

A very simple program that I wrote using C# as my programming language to show and demonstrate the concepts of two dimensional array.


I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.




Sample Program Output


Program Listing

two_dimensional.cs


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace two_dimensional
{
    class two_dimensional
    {
        static void Main(string[] args)
        {
            int[,] values = 
            { 
                {10, 20, 30, 40}, // row 0 values 
                {50, 60, 70, 80}, // row 1 values 
                {90, 100, 110, 120}, // row 2 values 
            };
            Console.Write("\n\n");
            Console.Write("\t  Two Dimensional Array Demonstration Program ");
            Console.Write("\n\n\n");
            for (int row = 0; row < values.GetLength(0); row++)
            {
                for (int col = 0; col < values.GetLength(1); col++)
                {
                    Console.Write("  {0}  " ,values[row, col]);
                }
            }
            Console.Write("\n\n\n");
            Console.Write("\t    Thank You For Using This Software.");
            Console.ReadKey();
        }
    }

}

Calculator in C#

In this article I would like to share with you a simple program that uses methods in C# I called this program calculator in C# what does the program will do is to ask the user to give two values and then it will compute the sum, product, difference and quotient of the given two numbers from our user.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.



Program Listing

calculator.cs


class calculator
    {
        double  sum(double n1, double  n2)
        {
            return n1 + n2;
        }
        double  subtract(double n1, double  n2)
        {
            return n1 - n2;
        }
        double multiply(double  n1, double n2)
        {
            return n1 * n2;
        }
        double division(double  n1, double n2)
        {
            return n1 / n2;
        }
        static void Main(string[] args)
        {
            calculator c = new calculator();
            double input1, input2;
    
       Console.WriteLine("Calculator in C#");
Console.Write("\n\n");
            Console.WriteLine("Give first value : ");
            input1 = Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("Give second value : ");
            input2 = Convert.ToDouble(Console.ReadLine());
            double x = c.sum(input1, input2);
            double y = c.multiply(input1, input2);
            double z = c.division(input1, input2);
            double w = c.subtract(input1, input2);

               Console.WriteLine("subtraction {0}",w);
               Console.WriteLine("sum {0}", x);
               Console.WriteLine("multiply {0}", y);
               Console.WriteLine("division {0}", z);
   
Console.Write("\n\n");
               Console.Write("Thank You For Using This Software.");
               Console.Write("\n\n");
        }   
    }
}


Reverse a Number in C#

Here is a very simple program that I wrote before as a simple programming activity in my upcoming book on C# programming. I will ask the user to give a number and then our program will reverse the arrangement of the given number by our user.

I am currently accepting programming work kindly contact me in the following email address for further details. Thank you.

My email address are the following jakerpomperada@gmail.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 is (034) 4335675.



Program Listing

reverse.cs


using System;

namespace ReverseNo
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Enter a No. to reverse");
            int Number = int.Parse(Console.ReadLine());
            int Reverse = 0;
            while(Number>0)
            {
                int remainder = Number % 10;
                Reverse = (Reverse * 10) + remainder;
                Number = Number / 10;
            }
            Console.WriteLine("Reverse No. is {0}",Reverse);
            Console.ReadLine();
        }
    }
}