Thursday, October 10, 2019

Daily Time Records System in Visual Basic 6 and Microsoft Access

About this code, I called it Daily Time Record Recording System written in Visual Basic 6 and Microsoft Access. It is a system the monitors the attendance of an employee in the company it also computes the salary of the employees based on the attendance renders.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Sample Program Output





Tic Tac Toe Program in C Language

Hello, everyone, this is my first time to submit a game code in C/C++ it is a simple Tic Tac Toe program. The code is quite complex for a beginner in C/C++ programming because it has many conditions it is a good experience if you are planning to learn artificial intelligence programming using C/C++ as your 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 in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Sample Program Output


Program Listing

/* tic.c  */
/* Tic Tac Toe Program in C Language */
/* Author : Mr. Jake Rodriguez Pomperada */
/* Tool   : Turbo C 2.0 */
/* Date   : February 6, 2009 1:51 PM Friday */
/* Email  : jakerpomperada@yahoo.com  */


#include<stdio.h>
#include<conio.h>

void Board();
void PlayerX();
void PlayerO();
void Player_win();
void check();
int win=0,wrong_X=0,wrong_O=0,chk=0;

char name_X[30];
char name_O[30];
int pos_for_X[3][3];
int pos_for_O[3][3];
int pos_marked[3][3];

void main()
{
int i,ch,j;
char ans;
do
{
clrscr();
printf("\n\t\t\t\tTIC TAC TOE VERSION 1.0");
printf("\n\t\t\t\t");
for(i=1;i<=23;i++)
{
delay(10000);
printf("*");
}
printf("\n1.Start The Game");
printf("\n2.Quit The Game");
printf("\nEnter your choice(1-2) : ");
scanf("%d",&ch);
switch(ch)
{
case 1:
chk=0;
win=0;
for(i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
{
pos_for_X[i][j]=0;
pos_for_O[i][j]=0;
pos_marked[i][j]=0;
}
}
printf("\n\n");
clrscr();
printf("\nEnter the name of the player playing for \'X\': ");
fflush(stdin);
gets(name_X);
printf("\nEnter the name of the player playing for \'O\': ");
fflush(stdin);
gets(name_O);
Board();
for(;;)
{
if(win==1)
break;
check();
if(chk==9)
{
printf("\n\t\t\tMATCH DRAWS!!");
printf("\nPress any key....");
break;
}
else
chk=0;
printf("\nTURN FOR %s:",name_X);
PlayerX();
do
{
if(wrong_X!=1)
break;
wrong_X=0;
printf("\nTURN FOR %s:",name_X);
PlayerX();
}while(wrong_X==1);
check();
if(chk==9)
{
printf("\n\t\t\tMATCH DRAWS");
printf("\nPress any key....");
break;
}
else
chk=0;
printf("\nTURN FOR %s:",name_O);
PlayerO();
do
{
if(wrong_O!=1)
break;
wrong_O=0;
printf("\nTURN FOR %s:",name_O);
PlayerO();
}while(wrong_O==1);

}
Board();
if(win!=1)
{
printf("\n\t\t\tMATCH DRAWS!!");
printf("\nPress any key.......");
}
getch();
break;
case 2:
printf("\n\n\n\t\t\tThank You For Playing The Game.");
printf("\n");
printf("\n\t\tCreated By: Mr. Jake Rodriguez Pomperada, MAED-IT");
getch();
exit(1);
break;
}
printf("\nWant To Play(Y/N) ? ");
fflush(stdin);
scanf("%c",&ans);
}while(ans=='y' || ans=='Y');
}


void Board()
{
int i,j;
clrscr();
printf("\n\t\t\t\tTIC TAC TOE BOARD");
printf("\n\t\t\t\t*****************");
printf("\n\n\n");
printf("\n\t\t\t    1\t      2\t        3");
for(i=1;i<=3;i++)
{
printf("\n \t\t\t _____________________________");
printf("\n \t\t\tº\t  º\t   º\t     º");
printf("\n\t\t%d\t",i);
for(j=1;j<=3;j++)
{

if(pos_for_X[i][j]==1)
{
printf("    X");
printf("     ");
}
else if(pos_for_O[i][j]==1)
{
printf("    O");
printf("     ");
}
else
{
printf("          ");
continue;
}
}
printf("\n\t\t\tº\t  º\t   º\t     º");
}
printf("\n\t\t\t------------------------------");
Player_win();
}


void PlayerX()
{
int row,col;
if(win==1)
return;
printf("\nEnter the row no. : ");
fflush(stdin);
scanf("%d",&row);
printf("Enter the column no. : ");
fflush(stdin);
scanf("%d",&col);
if(pos_marked[row][col]==1 || row<1 || row>3 || col<1 || col>3)
{
printf("\nWRONG POSITION!! Press any key.....");
wrong_X=1;
getch();
Board();
}
else
{
pos_for_X[row][col]=1;
pos_marked[row][col]=1;
Board();
}
}
void PlayerO()
{
int row,col;
if(win==1)
return;
printf("\nEnter the row no. : ");
scanf("%d",&row);
printf("Enter the column no. : ");
scanf("%d",&col);
if(pos_marked[row][col]==1 || row<1 || row>3 || col<1 || col>3)
{
printf("\nWRONG POSITION!! Press any key....");
wrong_O=1;
getch();
Board();
}
else
{
pos_for_O[row][col]=1;
pos_marked[row][col]=1;
Board();
}
}
void Player_win()
{
int i;
for(i=1;i<=3;i++)
{
if(pos_for_X[i][1]==1 && pos_for_X[i][2]==1 && pos_for_X[i][3]==1)
{
win=1;
printf("\n\nRESULT: %s wins!!",name_X);
printf("\nPress any key............");
return;
}
}
for(i=1;i<=3;i++)
{
if(pos_for_X[1][i]==1 && pos_for_X[2][i]==1 && pos_for_X[3][i]==1)
{
win=1;
printf("\n\nRESULT: %s wins!!",name_X);
printf("\nPress any key............");
return;
}
}
if(pos_for_X[1][1]==1 && pos_for_X[2][2]==1 && pos_for_X[3][3]==1)
{
win=1;
printf("\n\nRESULTL: %s wins!!",name_X);
printf("\nPress any key......");
return;
}
else if(pos_for_X[1][3]==1 && pos_for_X[2][2]==1 && 
pos_for_X[3][1]==1)
{
        win=1;
printf("\n\nRESULT: %s wins!!",name_X);
                printf("\nPress any key.....");
return;
}

        for(i=1;i<=3;i++)
{
if(pos_for_O[i][1]==1 && pos_for_O[i][2]==1 && pos_for_O[i][3]==1)
{
win=1;
printf("\n\nRESULT: %s wins!!",name_O);
                        printf("\nPress any key.....");
return;
}
}
for(i=1;i<=3;i++)
{
if(pos_for_O[1][i]==1 && pos_for_O[2][i]==1 && pos_for_O[3][i]==1)
{
win=1;
printf("\n\nRESULT: %s wins!!",name_O);
                        printf("\nPress any key.....");
return;
}
}
if(pos_for_O[1][1]==1 && pos_for_O[2][2]==1 && pos_for_O[3][3]==1)
{
win=1;
printf("\n\nRESULT: %s wins!!",name_O);
printf("\nPress any key.....");
return;
}
else if(pos_for_O[1][3]==1 && pos_for_O[2][2]==1 && 
pos_for_O[3][1]==1)
{
        win=1;
printf("\n\nRESULT: %s wins!!",name_O);
                printf("\nPress any key.....");
return;
}
}
void check()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
{
if(pos_marked[i][j]==1)
chk++;
else
continue;
}
}
} /* End of Code */


Average Grade Solver Using One Dimensional Array in C++

A program that I wrote a very long time ago I called this program Average Grade Solver Using One Dimensional Array in C++.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

average.cpp

#include <iostream>

using namespace std;


main() {
    int grade[3],sum=0,solve_grade=0;
    string name;
    char subjects[3][500];
    int x=0;

    cout << "\t\t Average Grade Solver 1.0";
    cout << "\n\n";

    cout << "Enter Student Name :";

    getline(cin,name);
      for (x=0; x<3; x++) {
         cin.ignore();
          cout << "\nEnter Subject Name :";

           gets(subjects[x]);
          cout << "Enter Subject Grades  :";
          cin >> grade[x];
            sum+= grade[x];
            solve_grade=(sum/3);
      }
      cout << "\n=============================";
      cout << "\n     Generated Report        ";
      cout << "\n=============================";
      cout << "\n";
      cout << "\n Student Name : " << name;
        cout << "\n";
        for ( x=0; x<3; x++) {

            cout <<"\n Subject : " << subjects[x];
            cout <<"\n Grade   : " << grade[x];
       }

        cout << "\n\n";
        cout << "Average Grade in 3 Subjects is  "
             << solve_grade <<".";
        cout << "\n\n";
        system("pause");
}

Square and Cube Root of a Number in C++

A simple program that I wrote using C++ that will ask the user to give a number and then the program will compute the square and cube root equivalent of the number.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

#include <iostream>
#include <iomanip>

using namespace std;

int square_cube(int x_value)
{
    cout <<"\n\n";

    cout <<setw(3)<< "\n Number" << setw(12)
            << "SQUARE" << setw(14)
            << "CUBE ROOT";
            cout << "\n";
    for (int y=1; y<= x_value; y+=1)
    {
        cout <<"\n"<<setw(5) << y << setw(12)
             << y * y << setw(12)
             << y * y * y;
    }
    cout << "\n\n";
    system("pause");
}



main() {
    int value=0;
    cout << "\n\n";
    cout << "\t SQUARE AND CUBE ROOT VERSION 1.0";
    cout << "\n\n";
    cout << "Enter a Number :=> ";
    cin >> value;
    square_cube(value);
}


Nested If-Else Statement in C

A simple program that I wrote using C language to demonstrate nested if-else statement.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

#include <stdio.h>

main( )
{
int   i ;

printf ( "Enter either 1 or 2 " ) ;
scanf ( "%d", &i ) ;

if ( i == 1 )
printf ( "You would go to heaven !" ) ;
else
{
if ( i == 2 )
printf ( "Hell was created with you in mind" ) ;
else
printf ( "How about mother earth !" ) ;
}
}

HTML and CSS Layout

A simple HTML and CSS Layout of a web page demonstration code for beginners.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.



Sample Program Output


Program Listing

index.htm

<html>
<head>
<title>HTML and CSS Layouts</title>
</head>
<link rel="stylesheet" type="text/css" href="css/layout.css">
<body>
<div id="wrapper">
<div id="header"></div>
<div id="leftpanel"></div>
<div id="rightpanel"></div>
</div>
</body>
</html>


layout.css

/* CSS Document */
body
{
background-color:#666666;
text-align:center;
}
#wrapper
{
width:750px;
height:900px;
background-color:#FFFFFF;
left:50%;
margin-left:-375px;
position:absolute;
}
#header
{
background-color:#00FF66;
width:750px;
height:100px;
}
#leftpanel
{
background-color:#660066;
width:250px;
height:800px;
float:left;
}
#rightpanel
{
background-color:#FF0000;
width:500px;
height:800px;
float:right;
}




Payroll Program in C++ Using Classes

A simple payroll program that I wrote a very long time ago the uses classes.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.

My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.


Program Listing

payroll.cpp

#include <iostream>
#include <iomanip>

using namespace std;


class payroll {

    private:

    string name;
    int days_work;
    float rate;
    float solve;

    public :

      int get_info();
      void display_info();
};

 int payroll :: get_info()
 {

     cout << "\n\n";
     cout << "Enter Employees Name     : ";
     getline(cin,name);
     cout << "Enter No. of Days Worked : ";
     cin >> days_work;
     cout << "Enter Daily Rate         : ";
     cin >> rate;
     cout << fixed << setprecision(2);
     solve = (days_work * rate);
 }

 void payroll ::display_info()
    {

     cout << "\n\n";
     cout << "==== DETAILED REPORT =====";
     cout << "\n\n";
     cout << "\nEmployees Name     : " << name;
     cout << "\nEmployees Salay is : $" << solve;
     cout << "\n\n";
     //system("pause");
    }


    main() {
        payroll emp;
        emp.get_info();
        emp.display_info();

    }