Tuesday, December 3, 2019

Linear Search Using Pointers in C Programming Language

A  Linear Search Using Pointers in C Programming Language program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan. Thank you for sharing your code Sir Ernel.

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 City, Negros Occidental I also accepting computer repair, 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.




Thank you very much for your help and support.


Program Listing

//One Dimensional Array || Searching

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

char* arey[10];

void areyin()
{
int i;
printf("Enter 10 numbers:");
for(i=0;i<=9;i++)
{
printf("%d.",i+1);scanf("%s",&arey[i]);
}
}

void locate(char* a)
{
int i;
int found;
for(i=0;i<=9;i++)
{
if(strcmp(a,arey[i])==0)
{
found=1;
break;
}
else
found=0;
}
if(found==1)
printf("%s is inside the room. Seat number %d",a,i+1);
else
printf("Not found!");
}

void main()
{
char* num;
clrscr();
areyin();
printf("Enter number to locate:");scanf("%s",&num);
locate(num);
getch();
}

Circle Graphics in C

A  circle graphics program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan. Thank you for sharing your code Sir Ernel.

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 City, Negros Occidental I also accepting computer repair, 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.



Thank you very much for your help and support.


Program Listing

circle.c

#include <stdio.h>
#include <graphics.h>
#include <stdlib.h>
#include <conio.h>
#include <bios.h>
#include <math.h>

void DrawCircle(int x, int y, int r, int color)
{
static const double PI = 3.1415926535;
double i, angle, x1, y1;

for(i = 0; i < 360; i += 0.1)
{
angle = i;
x1 = r * cos(angle * PI / 180);
y1 = r * sin(angle * PI / 180);
putpixel(x + x1, y + y1, color);
}
}

void main()
{
int grd, grm, i;
int color, xmax, ymax;
detectgraph(&grd,&grm);
initgraph(&grd, &grm, "");

color = GREEN;
setbkcolor(BLUE);

xmax = getmaxx();
ymax = getmaxy();

setcolor(WHITE);
rectangle(0,0,xmax,ymax);

for(i = 0; i < 230; i += 10)
{
DrawCircle(320, 240, i, color++);
if(color > WHITE)
color = GREEN;
}
getch();
closegraph();

}

Blinking Word in C

A blinking word program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan. Thank you for sharing your code Sir Ernel.

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 City, Negros Occidental I also accepting computer repair, 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.




Thank you very much for your help and support.


Program Listing

blink.c

#include <dos.h>
#include <stdio.h>
#include <graphics.h>
#include <stdlib.h>
#include <conio.h>

void main()
{
int grd, grm;
int bgcolor, xmax, ymax,color,j;
char buf[] = "http://www.softwareandfinance.com";

detectgraph(&grd,&grm);
initgraph(&grd, &grm, "");

bgcolor = BLUE;
setbkcolor(bgcolor);

xmax = getmaxx();
ymax = getmaxy();

setcolor(WHITE);
rectangle(0,0,xmax,ymax);

settextstyle(DEFAULT_FONT, HORIZ_DIR, 2);
color = GREEN;

for(j = 0; j <= 10; j++)
{
if( (j % 2) == 0)
{
setcolor(color++);
outtextxy(20, 220, buf);
delay(1000);
if(color > WHITE)
color = GREEN;
}
else
{
setcolor(bgcolor);
outtextxy(20, 220, buf);
delay(500);
}

}

getch();
closegraph();
}

Login Program in C

A login program was written by my close friend and fellow software engineer Sir Ernel Fadriquilan. Thank you for sharing your code Sir Ernel.

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 City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

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.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

login.c

//PASSWORD
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<dos.h>

char pswd[3],c;
int numchar=1;

void texter(char *s)
{
int i;
for(i=0;i<=strlen(s);i++)
{
printf("%c",s[i]);
delay(500);
}
}

void main()
{
clrscr();
while (numchar<=3)
{
c=getch();printf("*");
pswd[numchar]=c;
numchar++;
}
printf("\n");
texter("ernel");
gotoxy(5,5);texter("finals");
getch();
}


Subscription Based Business Model

Software Piracy and Illegal Software

Introduction To Python

Monday, December 2, 2019

C Tutorial E-Book in Android Using Jquery Mobile and PhoneGap

Here is a sample mobile application that I wrote for our school requirements that use JQuery Mobile and PhoneGap I called this application C Tutorial E-Book in Android Using Jquery Mobile and PhoneGap.

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 City, Negros Occidental I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

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.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.














Sample Program Output








Business Programs in C

A menu-driven business programs written 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 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, networking and Arduino Project development at a very affordable price.

My Facebook address is https://www.facebook.com/profile.php?...

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.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Thank you very much for your help and support.


Program Listing

business.c

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

#define EMPLOYEE_PERCENTAGE 12.5f
#define EMPLOYER_PERCENTAGE 12.0f
#define TAXRATE 0.20

int main(){

float chosen = 0;
float balance = 0;
float tax;

int sales;
float comm;

int back;
float basicPay;
float employeeFund, employerFund;
do {
printf("\n\n");
printf("\n\n");
printf("BUSINESS PROGRAMS");
printf("\n\n");
printf("\t\t\n PLEASE SELECT A PROGRAM");
printf("\n");
printf("\t 1- Provident fund");  
printf("\n");
printf("\t 2- Gross salary");  
printf("\n");
printf("\t 3- Taxrate");  
printf("\n");
printf("\t 4- Minimum cost");  
printf("\n");
printf("\t 5- Commission");
printf("\n\n");
printf("pick a number:");
scanf("%f",&chosen); /* give a value for the if staterment to proceed  */
if (chosen == 1 ) {
printf("\n\n");
  printf("Enter basic pay:");
scanf("%f", &basicPay);
employeeFund=(basicPay/100)*EMPLOYEE_PERCENTAGE;
employerFund=(basicPay/100)*EMPLOYER_PERCENTAGE;
printf("Basic Pay: %f\n", basicPay);
printf("Employee contribution: %f\n", employeeFund);
printf("Employer contribution: %f\n", employerFund);
printf("\n\n");
printf("1 ::: quit: ");
printf("0 ::: return :::");
scanf("%d",&back);
printf("okay bye", back );
}else if ( chosen == 2 ){

    printf("\n\n");
    int gs,bs,da,ta;
printf("enter basic salary: ");
scanf("%d",&bs);
da=(10*bs)/100;
ta=(12*bs)/100;
gs=bs+da+ta;
printf("gross salary=%d",gs);
printf("\n\n");
    printf("1 ::: quit: ");
    printf("0 ::: return :::");
scanf("%d",&back);
printf("okay bye", back );
    
 
}

else if (chosen == 3){
printf("\n\n");
printf("Enter Balance ammount");
printf("\n\n");
scanf("%f",&balance);
tax = balance *TAXRATE;
printf("The tax on %.2f is %.2f\n",balance,tax);
printf("\n\n");
printf("1 ::: quit: ");
    printf("0 ::: return :::");
scanf("%d",&back);
printf("okay bye", back );
}

else if (chosen == 4){
printf("\n\n");
float p, cost, p1, cost1;
for(p=0; p<=10; p=p+0.1)
{
cost=40-8*p+p*p;
if(p==0)
{
cost1=cost;
continue;
}
if(cost>=cost1)
break;
cost1=cost;
p1=p;
}
p=(p+p1)/2.0;
cost=40-8;
printf("MINIMUM COST=%.2f AT p=%.1f", cost, p);
printf("\n\n");
printf("1 ::: quit: ");
printf("0 ::: return :::");
scanf("%d",&back);
printf("okay bye", back );
}
else if (chosen == 5){
        printf("Enter Total Sales: ");
scanf("%d", &sales);
if(sales<100)
printf("\nSorry no Commission, Please do more sales!");
else if (sales>=100 && sales<=500)
printf("\nCommission: %f", (sales*0.1));
else
{
comm = (sales>=100 && sales<=500);
printf("\nCommission:%f", (comm+100));
}
printf("\n\n");
printf("0 ::: return :::");
printf("1 ::: quit: ");
scanf("%d",&back);
printf("okay bye", back );
}while (back < 1);
return 0;
}