Categories
HTML/CSS JavaScript

Calculator in HTML,CSS and JavaScript

A calculator program was written by my close friend and fellow software engineer Sir Ernel. Thank you sir 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.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

<!DOCTYPE html>
<html>
<head>
<script>

function insert(num){
document.form.textview.value=document.form.textview.value+num;
}
function equal(){
var exp=document.form.textview.value;
if(exp){
document.form.textview.value=eval(exp);
}
}
function clear(){

  document.form.textview.value="";
}
function back(){
    var exp=document.form.textview.value;
document.form.textview.value=exp.substring(0,exp.length-1);
}

</script>
<style>
.button:hover{
background:linear-gradient(#C6F8FF,#71C2FF,#2681E6,#00BDFF,#6ED0FF);
}
#c:hover{
background:linear-gradient(#C6F8FF,#71C2FF,#2681E6,#00BDFF,#6ED0FF);}
#F:hover{
background:linear-gradient(#C6F8FF,#71C2FF,#2681E6,#00BDFF,#6ED0FF)
;}
#F{
background:black;
color:white;
transition-duration:1s;
}
#c{
background:linear-gradient(#EDEDED,red,#FFB6B9);
color:white;
transition-duration:1s;
}
.button{
padding:0;
border-radius:5px;
width:50px;
height:50px;
font-size:30px;
font-weight:500px;
box-shadow:2px 1px 5px black;
background:linear-gradient(#DDDDDD,#848484,#333333,#595959,#767676);
transition-duration:1s;
color:white;
}
.end:hover{
background:linear-gradient(#C6F8FF,#71C2FF,#2681E6,#00BDFF,#6ED0FF);
}
.end{
width:50px;
height:50px; 
margin-left:60px;
width:160px;
font-size:30px;
border-radius:5px;
box-shadow:2px 1px 5px black;
background:linear-gradient(#00FFF3,#00CEFF,#0083FF,#002CFF);
color:white;
transition-duration:1s;
}
.textview{
width:210px;
margin-left:5px;
margin-top:5px;
border-radius:5px;
padding-top:0;
background:#C2E3E3;
font-size:25px;
}
table{
margin-left:4px;
}
#zero{
height:105px;
position:absolute;
left:15px;
top:225px;
font-size:30px;
}
.main{
border:2px inset black;
background:linear-gradient(#616266,#808080);
box-shadow:2px 1px 5px;
width:225px;
height:345px;
border-radius:10px;
}
.calc{
font-family:serif;
text-align:center;
background:radial-gradient(#FF7900,#F2FF00);
border-radius:50px;
border:solid 1px; 
}
</style>
</head>
<body>
<div class="main">

<form name="form">
<input class="textview" name="textview">
</form>
<table>

<tr>
<td><input type="submit" value="7" class="button" onclick="insert(7)"></td>
<td><input type="submit" value="8"   class="button" onclick="insert(8)"></td>
<td><input type="submit" value="9" class="button" onclick="insert(9)"></td>
<td> <input type="submit" value="C" class="button" onclick="back();" id="c"></td>
</tr>
<tr>
<td><input type="submit" value="4" class="button" onclick="insert(4)"></td>
<td><input type="submit" value="5" class="button" onclick="insert(5)"></td>
<td><input type="submit" value="6" class="button" onclick="insert(6)"></td>
<td><input type="submit" value="/" class="button" onclick="insert('/')" id="F"></td>
</tr>
<tr>
<td><input type="submit" value="1" class="button" onclick="insert(1)"></td>
<td><input type="submit" value="2" onclick="insert(2)" class="button"></td>
<td><input type="submit" value="3" class="button" onclick="insert(3)"></td>
<td><input type="submit" value="" class="button" onclick="insert('')" id="F"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="0" class="button" onclick="insert(0)" ></td>
<td><input type="submit" value="-"  class="button" onclick="insert('-')" id="F"></td>
<td><input type="submit" value="+" class="button" onclick="insert('+') "id="F"></td>
</tr>
</table>

<input type="submit" value="=" class="end" onclick="equal()">
<input type="submit" value="." 
class="button" onclick="insert('.')" id="zero">
<p class="calc">Calculater</p> 
</div>
</body>
</html>

Categories
C++

Generics in C++

A sample program was written by my friend Tom to demonstrate generics concepts in C++. Thank you for sharing your code Tom.

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 <iostream>
#include <iomanip>
#include <vector>

using namespace std;

template<class ReturnType, class Iter>
ReturnType average(Iter first, Iter last)
{
   ReturnType sum = ReturnType();
   size_t count = 0;

   while (first != last)
   {
     ++count;
     sum += *first;
     ++first;
   }
   return sum / count;
}

int main()
{
   vector<int> numbers = { 3, 5, 2, 4, 7, 2, 2 };
   float avg1 = average<float>(numbers.begin(), numbers.end());
   cout << setprecision(10) << "Avg<float> = " << avg1 << '\n';

   double avg2 = average<double>(numbers.begin(), numbers.end());
   cout << setprecision(10) << "Avg2<double> = " << avg2 << '\n';

   long double avg3 = average<long double>(numbers.begin(), numbers.end());
   cout << setprecision(10) << "Avg3<long double> = " << avg3 << '\n';
}
Categories
VB.NET

Number Palindrome in VB.NET

I wrote this program to ask the user to give a number and then the program will check if the number is a palindrome or not using vb.net.
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

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim strText As String = TextBox1.Text
        Dim str As String

        str = StrReverse(strText)

        If str.Equals(strText) Then
            MsgBox("The given number " & strText & " is a Palindrome.", vbInformation, "Result")
            TextBox1.Focus()
        Else
            MsgBox("The given number " & strText & " is a Not Palindrome.", vbInformation, "Result")
            TextBox1.Focus()
        End If
    End Sub

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

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
        If MsgBox("Are you sure you want to quit?", vbYesNo + vbQuestion, "Quit Program") = vbYes Then
            Me.Close()
        Else
            Me.Show()
            TextBox1.Text = ""
            TextBox1.Focus()
        End If
    End Sub

    
    
End Class
My video tutorials in VB.NET
Categories
C

Passing a String in a Function in C

I wrote this program to demonstrate how to pass a string in a function 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

#include <stdio.h>
void displayString(char str[]);
int main()
{
    char str[50];
    printf("\n\n");
	printf("\tGive me your name? ");
    gets(str);             
    displayString(str);     // Passing string to a function.    
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
}
void displayString(char str[])
{
    printf("\n\n");
	printf("\tYour name is ");
    puts(str);
}
Categories
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
Sample Program Output

<!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>
Categories
PHP

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>
Categories
PHP

Calculator in PHP

A calculator 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

<!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>
Categories
C

Average Grade Solver Using C Language

I wrote this program to ask the user to give a series of grades of the students and then the program will compute the average grade of the student and also display if the student pass or fail 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/

 /* average.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : June 13, 2020  7:39 AM  Saturday
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com
*/
 #include <stdio.h>
 
 int main() {
     int numbers[5];
     int a=0,solve=0,sum=0;
     printf("\n\n");
     printf("\tAverage Grade Solver Using C Language");
     printf("\n\n");
     for (a=0; a<=4; a+=1) {
         printf("\tEnter Grade No. %d : ",a+1);
         scanf("%d",&a[numbers]);    
     }
    printf("\n\n");
     for (a=0; a<=4; a+=1) {
         sum = sum + a[numbers];
         solve =( sum / 5);
     }
    printf("\tThe average grades is %d. ",solve);
    printf("\n\n");
      if (solve >=75) {
      	  printf("\n");
          printf("\tYou Passed the subject");
      }
      else {
      	  printf("\n");
          printf("\tYou Failed the subject");
      }
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
 }

Categories
C

Odd and Even Numbers Checker in C Language

I wrote this program to ask the user to give a number and then the program will check and determine whether the given number is an odd or even numbers 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

/*odd_even.c
 Author   : Jake Rodriguez Pomperada
 Work     : Freelance Software Engineer and Software Engineering Consultant
 Address  : #45-31 Victoria Malaga St. Eroreco Subd. Bry. Mandalanga, Bacolod City
            Negros Occidental, Philippines
 Email    : jakerpomperada@gmail.com
 Website  : www.jakerpomperada.com and www.jakerpomperada.blogspot.com
 Tool     : Dev C++ Version 5.11
 Date     : June 13, 2020   7:06 AM   Saturday
*/
#include <stdio.h>
int a=0,r=0,data=0,b=0;
int values[10];
void get_data();
void display_even();
void display_odd();

void get_data(void)
{
    printf("\n\n");
    printf("\tODD and Even Numbers Checker");
	printf("\n\n"); 
    printf("\tHow Many Items To Be Process? :  ");
    scanf("%d",&data);
    printf("\n"); 
       for (b=1; b <= data; b++)
            {
            printf("\tEnter Item No. %d : ",b);
            scanf("%d",&b[values]);
            }
}

void display_even(void)
{
    printf("\n\n");
    printf("\tList of Even Numbers : ");
    printf("\n\n");
        for (a=1; a<=data; a++) {
            r = a[values] % 2;
            if (r ==0) {
            	printf("\t %d ",a[values]);
         }
     }
}

void display_odd(void)
 {
    printf("\n\n");
    printf("\tList of Odd Numbers : ");
    printf("\n\n");
     for (a=1; a<=data; a++) {
         r = a[values] % 2;
         if (r!=0) {
          printf("\t %d ",a[values]);
         }
     }
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
 }
 
int main() {
     get_data();
     display_even();
     display_odd();
 }

Categories
C#

Sally Grocery Ordering System in C#

I wrote this program to demonstrate how to create and implement an ordering system using C# programming language. I called this program Sally Grocery Ordering System.

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

// Author  : Jake Rodriguez Pomperada
// Date    : June 13, 2020   6:21 AM Saturday
// Website : www.jakerpomperada.com
// Email   : jakerpomperada@gmail.com

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

namespace Grocery_Ordering_System
{
    class Program
    {
        static void Main(string[] args)
        {

            int p0 = 0,p1 = 0,p2 = 0,p3 = 0,p4 = 0,p5 = 0,payment=0;

            double sum = 0.00,total_cost = 0.00;
           
            char decision;

            double total_price = 0.00;

            int[] final_qty = new int[100];

            int[] product_number = { 0, 1, 2, 3, 4, 5 };

            string[] product_title = { "Product Number", "Product Name", "Item Price" };

            string[] product_title2 = { "Product Name", "Quantity", "Item Price", "Total Cost" };

            string[] product_name = {"555 Tuna","Nido Milk", "Magic Flakes",
                                     "Milo Mix","LuckyMe Noodles","Century Tuna"};

            double[] item_price = {21.71,25.43,37.28,43.17,12.43,26.81};

            do
            {
                Console.WriteLine("\n");
                Console.WriteLine("\t\t===== Sally Grocery Ordering System in C# =====");
                Console.WriteLine();
                Console.WriteLine("\t" + product_title[0] + "\t" + product_title[1] + "\t   " + product_title[2]);
                Console.WriteLine();
                for (int a = 0; a < product_name.Length; a++)
                {
                    Console.WriteLine("\t\t" + product_number[a] + "\t" + product_name[a] + "\t    " + item_price[a].ToString("00.00"));
                }

                Console.WriteLine();
                Console.Write("\tSelect the Product Number to choose the Product :  ");
                int choose = Convert.ToInt32(Console.ReadLine());

                Console.Write("\tHow many pieces?  ");
                int quantity = Convert.ToInt32(Console.ReadLine());



                switch (choose)
                {
                    case 0:
                        p0 += quantity;
                        final_qty[0] = p0;
                        break;

                    case 1:
                        p1 += quantity;
                        final_qty[1] = p1;
                        break;

                    case 2:
                        p2 += quantity;
                        final_qty[2] = p2;
                        break;

                    case 3:
                        p3 += quantity;
                        final_qty[3] = p3;
                        break;

                    case 4:
                        p4 += quantity;
                        final_qty[4] = p4;
                        break;


                    case 5:
                        p5 += quantity;
                        final_qty[5] = p5;
                        break;

                  
                }

                Console.WriteLine();
                Console.Write("\tWould you like to order again? Y/N : ");
                decision = char.ToUpper(Console.ReadKey().KeyChar);
                Console.WriteLine();

            } while (decision != 'N');
         
            Console.WriteLine("\n");
          Console.WriteLine("\t===== FINAL PURCHASE =====");
         Console.WriteLine("\t\t" + product_title2[0] + "\t\t" + product_title2[1]
                    + "\t" + product_title2[2] + "\t" + product_title2[3]);
    
		for(int i=0; i < final_qty.Length; i++)
		{
			if(final_qty[i] != 0)
			{
                
                double compute_two = final_qty[i] * item_price[i];
                Console.WriteLine("\t\t" + product_name[i] + "\t\t  "
                               + final_qty[i] + "\t\t " + item_price[i].ToString("#####.00")
                               + "\t\t PHP " + compute_two.ToString("#####.00"));
            
				sum = sum + final_qty[i]*item_price[i];
			}
		}
        Console.WriteLine();
        Console.WriteLine("\tTotal Number of Purchased items: " + (p0 + p1 + p2 + p3 + p4 + p5));
        Console.WriteLine();
        Console.WriteLine("\tTotal Purchase PHP : " + sum.ToString("#####.00")); 
		
		do
		{
        Console.WriteLine();
		Console.Write("\tEnter Your Payment  PHP : ");
        payment = Convert.ToInt32(Console.ReadLine());
		
	 	}while(sum > payment);
        double compute_all = (payment - sum);
        Console.WriteLine();
		Console.WriteLine("\tYour Change is PHP : "+ compute_all.ToString("#####.00"));
        Console.WriteLine();
        Console.WriteLine("\t\tThank you for buying at Sally's Grocery.");
        Console.WriteLine();
        Console.Write("\t\tEND OF PROGRAM");
        Console.ReadKey();
        }

 }
       
}  // End of Code