Categories
C

Addition of Three Numbers in C

A simple program to ask the user to give three numbers and then the program will add the sum of three numbers and display the results on the screen 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.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/

Sample Program Output
#include <stdio.h>

int main() 
 {
	
  int a=0,b=0,c=0;
  int sum=0;
   
   system("COLOR F0");
   printf("\n\n");
   printf("\tAddition of Three Numbers");
   printf("\n\n");
   printf("\tGive Three Numbers : ");
   scanf("%d%d%d",&a,&b,&c);
 
   sum = (a+b+c);
  
   printf("\n");
   printf("\tThe total sum of %d, %d and %d is %d.",a,b,c,sum);
   printf("\n\n");
   printf("\tEnd of Program");
   printf("\n\n");
  
}
Categories
C

Average Grade Solver in C

Write a program that will ask the student to give the prelim, midterm and final grade and then the program will compute the average grade of student and display the result on the screen 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.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/

Sample Program Output
/* grade.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 13, 2018  Tuesday 9:44 PM
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com
*/

#include <stdio.h>

int main() 
 {
  float solve_average=0.00;
  float prelim=0.00,midterm=0.00,final=0.00;
  
  system("COLOR F0");
  printf("\n\n");
  printf("\tAverage Grade Solver");
  printf("\n\n");
  printf("\tGive Prelim Grade   : ");
  scanf("%f",&prelim);
  printf("\tGive Midterm Grade  : ");
  scanf("%f",&midterm);
  printf("\tGive Final Grade    : ");
  scanf("%f",&final);

  solve_average =(prelim+midterm+final)/3;

  printf("\n\n");
  printf("\t===== DISPLAY RESULTS =====");
  printf("\n\n");
  printf("\tThe student average grade is %.2f.",solve_average);
  printf("\n\n");
  printf("\tEND OF PROGRAM");
  printf("\n\n");
}


Categories
C

Hello World in C

I wrote this simple program using C as my programming language to display hello world message on the screen.

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

Program Listing


/* hello.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 15, 2018  Thursday  6:49 AM
   Location : Bacolod City, Negros Occidental
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com
*/

#include <stdio.h>

int main()
{
   	printf("\n\n");
    printf("\tHello World !!!");
	printf("\n\n");
	printf("\tWelcome To C Programming");
    printf("\n\n");
    return 0;
  }



Categories
C

Grading System in C

A simple program that I wrote to show database development using Binary File in C programming language. I called this application Student Grading Database System in C which enables the user to add, edit, delete, view and quit student grade records it stores the record of the student in the binary file. I am using Dev C++ as my C compiler but the I code can also run in a typical Borland Turbo C or Turbo C++ compiler in DOS.

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.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

Main Menu
Add Record
Update Record
Delete Record
Search Record
View Record

Program Listing

/* grades.c
   Author   : Mr. Jake Rodriguez Pomperada,BSCS,MAED-IT
   Tool     : Dev C++ 5.11
   Date     : April 19, 2019  Friday  5:23 PM
   Website  : www.jakerpomperada.com
   Email    : jake_pomperada@tup.edu.ph and jakerpomperada@gmail.com
   Location : Bacolod City, Negros Occidental
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#include <ctype.h>
main( )
{
	FILE *fp, *ft ;
	char another, choice ;
	struct student
	{
		char stud_id_no[300];
		char name[300];
		char course[300];
		char subject[300];
		float prelim,midterm,endterm,final_grade;
	} ;
	struct student grade;
	char student_id[300];
	long int recsize;
int flag=0;
	fp = fopen ("GRADE_DB.DAT", "rb+" ) ;
	if ( fp == NULL )
	{
		fp = fopen ( "GRADE_DB.DAT", "wb+" ) ;
		if ( fp == NULL )
		{
			puts ( "Cannot open file" ) ;
			exit(0) ;
		}
	}
	recsize = sizeof ( grade ) ;
	while ( 1 )
	{
system("CLS");
printf("\n");
		printf("\n======================================");
		printf("\n");
		printf("\nSTUDENT GRADING DATABASE SYSTEM ");
		printf("\n");
		printf("\n======================================");
		printf("\n\n");
		printf ( "1. INSERT STUDENT RECORD" ) ;
		printf("\n");
		printf ( "2. BROWSE STUDENT RECORD" ) ;
		printf("\n");
		printf ( "3. EDIT STUDENT RECORDS" ) ;
		printf("\n");
		printf ( "4. FIND STUDENT RECORDS" ) ;
		printf("\n");
		printf ( "5. REMOVE STUDENT RECORDS" ) ;
		printf("\n");
		printf ( "6. QUIT PROGRAM" ) ;
		printf("\n\n");
		printf ("SELECT YOUR OPTION :=> " ) ;
		fflush (stdin) ;
		choice = getche() ;
		switch ( choice )
		{
			case '1' :
				fseek ( fp, 0 , SEEK_END ) ;
				another = 'Y' ;
				while ( another == 'Y' )
				{
					system("cls");
					printf("\n\n");
					printf("=== INSERT NEW STUDENT GRADE RECORD ===");
					printf("\n\n");
					printf("Enter Student ID Number : ");
					scanf("%s",&grade.stud_id_no);
					printf("Enter Student Name: ");
					fflush (stdin) ;
					gets(grade.name);
					printf("Enter Course : ");
					fflush (stdin) ;
					gets(grade.course);
					printf("Enter Subject : ");
					fflush (stdin) ;
					gets(grade.subject);
					printf("Enter Prelim Grade: ");
					scanf("%f",&grade.prelim);
					printf("Enter Midtem Grade: ");
					scanf("%f",&grade.midterm);
					printf("Enter Endterm Grade: ");
					scanf("%f",&grade.endterm);
					grade.final_grade = (grade.prelim * 0.30) + (grade.midterm * 0.30) + (grade.endterm * 0.40);
					printf("\n");
					printf("\n Student Final Grade : %2.0f",grade.final_grade);
					fwrite (&grade, recsize, 1, fp ) ;
					printf("\n\n");
					printf ( "\nAdd New Student Record (Y/N) : " ) ;
					fflush (stdin) ;
					another = toupper(getche()) ;
				}
				break ;
			case '2' :
	system("cls");
				rewind ( fp );
				printf("\n\n");
printf("=== VIEW STUDENT GRADE RECORD ===");
printf("\n\n");
		while ( fread ( &grade, recsize, 1, fp ) == 1 )
{
printf("\n");
printf("\n ID Number : %s",grade.stud_id_no);
printf("\n Name: %s",grade.name);
printf("\n Course : %s",grade.course);
printf("\n Subject : %s",grade.subject);
printf("\n Prelim Grade: %2.0f",grade.prelim);
printf("\n Midterm Grade: %2.0f",grade.midterm);
printf("\n Endterm Grade: %2.0f",grade.endterm);
printf("\n");
grade.final_grade = (grade.prelim * 0.30) + (grade.midterm * 0.30) + (grade.endterm * 0.40);
printf("\n Student Final Grade : %2.0f",grade.final_grade);
		 }
printf("\n\n");
system("pause");
				break ;
			case '3' :
			another = 'Y' ;
				while ( another == 'Y' )
				{
				system("cls");
		printf("=== EDIT STUDENT GRADE RECORD ===");
		printf("\n\n");
					printf("Enter Student ID Number : ");
scanf("%s",&student_id);
					rewind ( fp ) ;
					printf("\n");
					while ( fread ( &grade, recsize, 1, fp ) == 1 )
					{
						if ( strcmp ( grade.stud_id_no, student_id) == 0 )
						{
							printf("Enter Student ID Number : ");
fflush (stdin) ;
gets(grade.stud_id_no);
							printf("Enter Student Name : ");
							fflush ( stdin ) ;
							gets(grade.name);
					printf("Enter Course: ");
							fflush ( stdin ) ;
							gets(grade.course);
							printf("Enter Subject : ");
							fflush ( stdin ) ;
							gets(grade.subject);
							printf("Enter Prelim Grade : ");
							scanf("%f",&grade.prelim);
							printf("Enter Midtem Grade : ");
							scanf("%f",&grade.midterm);
							printf("Enter Endterm Grade: ");
							scanf("%f",&grade.endterm);
							printf("\n");
							grade.final_grade = (grade.prelim * 0.20) + (grade.midterm * 0.30) + (grade.endterm * 0.50);
							printf("\n Student Final Grade : %2.0f",grade.final_grade);
							fseek ( fp, - recsize, SEEK_CUR ) ;
							fwrite ( &grade, recsize, 1, fp ) ;
							break ;
						}
					}
			 if (strcmp(grade.stud_id_no,student_id) != 0 )
{
printf("\n\n");
printf("No Student Record in the Database.");
printf("\n");
system("pause");
break;
}
printf("\n\n");
					printf ( "\nEdit Another Student Record (Y/N) : " ) ;
					fflush ( stdin ) ;
					another = toupper(getche());
				}
				break ;
	case '4' :
	rewind ( fp ) ;
	another = 'Y' ;
				while ( another == 'Y' )
				{
				system("cls");
		printf("=== Find Student Records ===");
		printf("\n\n");
					printf("Enter Student ID Number : ");
scanf("%s",&student_id);
					printf("\n");
					rewind ( fp ) ;
					while ( fread ( &grade, recsize, 1, fp ) == 1 )
					{
						if ( strcmp (grade.stud_id_no,student_id) == 0 )
						{
printf("\n");
					printf("\n ID Number: %s",grade.stud_id_no);
					printf("\n Name: %s",grade.name);
					printf("\n Course : %s",grade.course);
		printf("\n Subject : %s",grade.subject);
printf("\n Prelim Grade: %2.0f",grade.prelim);
printf("\n Midterm Grade: %2.0f",grade.midterm);
printf("\n Endterm Grade: %2.0f",grade.endterm);
printf("\n");
grade.final_grade = (grade.prelim * 0.30) + (grade.midterm * 0.30) + (grade.endterm * 0.40);
printf("\n Student Final Grade : %2.0f",grade.final_grade);
printf("\n\n");
system("pause");
 break;
						}
}
if (strcmp(grade.stud_id_no,student_id) != 0 )
{
printf("\n\n");
printf("No Student Record found in the Database.");
printf("\n");
system("pause");
break;
}
printf("\n\n");
					printf ( "\n Find Another Student Record (Y/N) : " ) ;
					fflush ( stdin ) ;
					another = toupper(getche());
				}
				break ;
			case '5' :
				another = 'Y' ;
				while ( another == 'Y' )
				{
					system("cls");
					printf("=== REMOVE STUDENT GRADE RECORD ===");
					printf("\n\n");
					printf("Enter Student ID Number : ");
					scanf("%s",&student_id);
					printf("\n");
					ft = fopen ( "TEMP.DAT", "wb" ) ;
					rewind ( fp ) ;
					while ( fread ( &grade, recsize, 1, fp ) == 1 )
					{
						if ( strcmp (grade.stud_id_no, student_id) != 0 )
							fwrite ( &grade, recsize, 1, ft ) ;
							else
							flag=1;
					}
					fclose ( fp ) ;
					fclose ( ft ) ;
					remove ( "GRADE_DB.DAT" ) ;
					rename ( "TEMP.DAT", "GRADE_DB.DAT" ) ;
				fp = fopen ( "GRADE_DB.DAT", "rb+" ) ;
 if(flag==1) {
printf("\n\n");
printf("Record Successfully Deleted From the Database.");
 printf("\n");
system("pause");
}
					else if (flag!=1) {
printf("\n\n");
printf("Record Not Found in the Database.");
printf("\n");
system("pause");
}
printf("\n\n");
					printf( "Remove Another Student Record (Y/N) : " ) ;
					fflush (stdin) ;
					another = toupper(getche());
				}
				break ;
			case '6' :
				fclose ( fp ) ;
				printf("\n\n");
				printf("END OF PROGRAM");
				printf("\n\n");
				system("PAUSE");
				exit(0);
		}
	}
}
Categories
C

Perfect Square Checker in C Language

A simple program that I wrote to ask the user to give a number and then the program will check if the given number by the user is a perfect square or not.

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

https://www.unlimitedbooksph.com/

Sample Program Output
Sample Program Output
/* perfect_square.c
   Jake R. Pomperada
   December 25, 2019 
   Wednesday   */

#include<stdio.h>

int main()
{
    printf("\n\n");
	printf("\tPerfect Square Checker in C Language");
    printf("\n\n");
      int i=0, number=0;
    printf("\tGive a Number : ");
    scanf("%d", &number);

   
    for(i = 0; i <= number; i++)
    {
        if(number == i*i)
        {
            printf("\n");
            printf("\tThe given number %d is a Perfect Square Number.",number);
            return 0;  
        }
    }
     printf("\n");
     printf("\tThe given number %d is Not Perfect Square Number.",number);
     printf("\n");
     printf("\tEnd of Program");
     printf("\n");
}
Categories
C

Money Denominator in C

I wrote this program in C language to demonstrate the money denominator. I am using Dev C++ as my text editor and compiler in writing this program.

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

https://www.unlimitedbooksph.com/

Sample Program Output
Sample Program Output
/* money.c
   Jake R. Pomperada,MAED-IT
   November 17, 2019
   Bacolod City, Negros Occidental
*/

#include <stdio.h>

int main()
{
    int amount=0;
    
    int note1000=0,note500=0, note100=0, note50=0, note20=0, note10=0, note5=0, note2=0, note1=0;
    

    note1000=note500 = note100 = note50 = note20 = note10 = note5 = note2 = note1 = 0;

    printf("\n\n");
    printf("\tMoney Denominator in C");
    printf("\n\n");
    printf("\tGive an Amount PHP : ");
    scanf("%d", &amount);


    if(amount >= 1000)
    {
        note1000 = amount/1000;
        amount -= note1000 * 1000;
    }

    if(amount >= 500)
    {
        note500 = amount/500;
        amount -= note500 * 500;
    }
    if(amount >= 100)
    {
        note100 = amount/100;
        amount -= note100 * 100;
    }
    if(amount >= 50)
    {
        note50 = amount/50;
        amount -= note50 * 50;
    }
    if(amount >= 20)
    {
        note20 = amount/20;
        amount -= note20 * 20;
    }
    if(amount >= 10)
    {
        note10 = amount/10;
        amount -= note10 * 10;
    }
    if(amount >= 5)
    {
        note5 = amount/5;
        amount -= note5 * 5;
    }
    if(amount >= 2)
    {
        note2 = amount /2;
        amount -= note2 * 2;
    }
    if(amount >= 1)
    {
        note1 = amount;
    }

    printf("\n\n");
    printf("\tTotal number of notes = \n");
    printf("\n");
     printf("\t1000 = %d\n", note1000);
    printf("\t500 = %d\n", note500);
    printf("\t100 = %d\n", note100);
    printf("\t50 = %d\n", note50);
    printf("\t20 = %d\n", note20);
    printf("\t10 = %d\n", note10);
    printf("\t5 = %d\n", note5);
    printf("\t2 = %d\n", note2);
    printf("\t1 = %d\n", note1);
    printf("\n\n");
    printf("\tEnd of Program");
}

Categories
C

Automatic Teller Machine Simulation in C

A simple program that I wrote using a C programming language to simulate the Automatic Teller Machine operation.

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

https://www.unlimitedbooksph.com/

Sample Program Output
#include <stdio.h>
#include <conio.h>

int main()

{
int bill500=0, bill200=0, bill100=0, total_balance=0;
int withdraw=0, money_left=0;
int reciv500=0, reciv200=0, reciv100=0;
char withdraw_again[2] = "N";

	     printf("\n\n");
         printf("\t Automatic Teller Machine Simulation in C");
		 printf("\n\n");
		 printf("\tHow many P500 bills: ");
		 scanf("%d", &bill500);
		 printf("\tHow many PHP 200 bills: ");
		 scanf("%d", &bill200);
		 printf("\tHow many PHP 100 bills: ");
		 scanf("%d", &bill100);
		 total_balance = 	(bill500 * 500) + (bill200 * 200) +  (bill100 * 100) ;

		 printf("\tTotal Balance: PHP %d", total_balance);

	 do

	 {
		 printf("\n");
		 printf("\n");

		 printf("\tEnter amount to withdraw: PHP ");
		 scanf("%d", &withdraw);
		 money_left = withdraw ;

		 if  (withdraw > total_balance)
				{
				printf("\tWithdraw amount greater than total balance.  ");
				printf("\n");
				}
		 if (withdraw < total_balance)
		 {
		 if  (money_left >= 500 )
				{
				 reciv500 = int(money_left / 500);
				 if (reciv500 > bill500 ) reciv500 = bill500;

				 money_left = money_left - (reciv500 * 500);
				 bill500 = bill500 - reciv500;
				}

		 if (money_left >= 200 )
			 {
				 reciv200 = int(money_left / 200);
				 if (reciv200 > bill200 ) reciv200 = bill200;
				 money_left = money_left - (reciv200 * 200);
				 bill200 = bill200 - reciv200;
			 }

		 if (money_left >= 100 )
			  {
				 reciv100 = int(money_left / 100);
				 if (reciv100 > bill100 ) reciv100 = bill100;
				 money_left = money_left - (reciv100 * 100);
				 bill100 = bill100 - reciv100;
				}

				printf("\n");
				printf("\n");
				printf("\tYou will receive:");
				printf("\n");
				printf("\t%d  PHP 500 bill", reciv500);
				printf("\n");
				printf("\t%d  PHP 200 bill", reciv200);
				printf("\n");
				printf("\t%d  PHP 100 bill", reciv100);
				printf("\n");


				total_balance = total_balance - withdraw;

				printf("\tYour current balance is: PHP %d", total_balance);

				printf("\n");
				printf("\n");
				printf("\tYou only have balance of:");
				printf("\n");
				printf("\t%d  PHP 500 bill", bill500);
				printf("\n");
				printf("\t%d  PHP 200 bill", bill200);
				printf("\n");
				printf("\t%d  PHP 100 bill", bill100);
				printf("\n");
 				printf("\n\n");
				printf("\tAnother Withdraw Again ? Y/N : ");
				scanf("%s", &withdraw_again);

		 }

	 }  while (withdraw_again == "Y" || withdraw_again == "y" );
     printf("\n\n");
     printf("\tEnd of Program");
     printf("\n\n");
}
Categories
C

For Loop Statement in C

I wrote this simple program to show how to declare and use for loop statement using the 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.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/

#include <stdio.h>
#include <stdlib.h>



int main() {
	
	int a=0;
	
	printf("\tFor Loop Statement in  C");
	printf("\n\n");
	
	for (a=1; a<=20; a++) {
		printf(" %d ",a);
	}
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

For Loop Statement in C

I wrote this simple program that I wrote using a C programming language to show how to declare and use the for loop 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 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.mindshaperspublishing.com/
https://www.unlimitedbooksph.com/

Sample Program Output
#include <stdio.h>
#include <stdlib.h>

int main() {
	
	int a=0;
	
	printf("\tFor Loop Statement in  C");
	printf("\n\n");
	
	for (a=1; a<=20; a++) {
		printf(" %d ",a);
	}
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

Decimal To Binary Number Converter

I wrote this program that will ask the user to give the decimal number and then the program will convert the given decimal number into binary number equivalent using the 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, 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.mindshaperspublishing.com/

https://www.unlimitedbooksph.com/

Sample Program Output

Program Listing

binary.c

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

int main()
{
long int d;
int i=0,a[25],j;
printf("\tDecimal To Binary Number Converter");
printf("\n\n");
printf("Enter the Decimal No.:");
scanf("%d",&d);
while(d>0)
{
a[i]=d%2;
d=d/2;
i++;
}
printf("Binary Number Equivalent : ");
for (j=i-1;j>=0;j--)
printf("%d",a[j]);
getch();
}