Categories
C

Descending Numbers Using For Loop Statement in C

A simple C program to display a series of numbers in descending order from 1000 to 100.

I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, 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

Program Listing


/* for_loop.c
   Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
   Date     : September 9, 2020
   Email    : jakerpomperada@gmail.com
   Location : Bacolod City, Negros Occidental Philippines. */
   
#include <stdio.h>

int main()
{
	int a=0;
	
	printf("\n\n");
	printf("\tDescending Numbers Using For Loop Statement in C");
	printf("\n\n");
	printf("\t");
	for (a=1000; a>=100; a-=100)
	{
		printf("%4d",a);
	}
}

Categories
C

Prime Numbers From 1 To 350 in C

A simple program to display a series of numbers from 1 to 350 using a C programming language.

I am currently accepting programming work inventory system, enrollment system, accounting system, point of sale, school programming assignments and projects, 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

Program Listing

/* prime.c 
   Author   : Jake Rodriguez Pomperada,MAED-IT,MIT
   Date     : September 8, 2020
   Email    : jakerpomperada@gmail.com
   Location : Bacolod City,Negros Occidental Philippines */
#include <stdio.h>

int main()
{
	int i=0,flag=0,low=1, high=350;
	
	printf("\n\n");
	printf("\tList of Prime Numbers form 1 To 350");
	printf("\n\n");
	
   while (low < high) {
      flag = 0;

      if (low <= 1) {
         low++;
         continue;
      }

      for (i = 2; i <= low / 2; ++i) {

         if (low % i == 0) {
            flag = 1;
            break;
         }
      }
      if (flag == 0)
         printf("%d ", low);
    low++;
   }
	
}
Categories
C

Volume of a Sphere Converter in C

 A simple program that I wrote that will ask the user to give value in radius and then the program will compute the volume of a sphere 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

#include <stdio.h>

#define PI  3.14

int main()
{   
    float volume_sphere = 0.00;
    float radius = 0.00;
   	printf("\n\n");
	printf("\tVolume of a Sphere Converter");
	printf("\n\n");
	printf("\tEnter Radius Value : ");
    scanf("%f",&radius);

    /* Compute the volume of Sphere */
    
    volume_sphere = (4.0/3.0)*(PI*radius*radius*radius);
    
	printf("\n\n");
	printf("\tThe Volume of Sphere is %5.2f.",volume_sphere);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

Temperature Checker in C

 A temperature program that I wrote 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

#include <stdio.h>

int main()
{   

char *temp_value[] = {"ICE","WATER","STEAM"};
	                      
char  *display_temp; 

    int temperature = 0;
   	printf("\n\n");
	printf("\tTemperature Checker in C");
	printf("\n\n");
	printf("\tWhat is the Temperature? : ");
    scanf("%d",&temperature);
   
   if (temperature < 0) {
   	display_temp = temp_value[0];
   } else if (temperature > 100) {
   	 display_temp = temp_value[2]; 	
   }
     
    switch(temperature) {
     case 0 : case 1 : case 2 : case 3 : case 4 : case 5: 
     case 6 : case 7 : case 8 : case 9 : case 10: 
     case 11 : case 12 : case 13 : case 14 : case 15: 
     case 16 : case 17 : case 18 : case 19 : case 20: 
     case 21 : case 22 : case 23 : case 24 : case 25: 
     case 26 : case 27 : case 28 : case 29 : case 30: 
     case 31 : case 32 : case 33 : case 34 : case 35: 
     case 36 : case 37 : case 38 : case 39 : case 40: 
     case 41 : case 42 : case 43 : case 44 : case 45: 
     case 46 : case 47 : case 48 : case 49 : case 50: 
     case 51 : case 52 : case 53 : case 54 : case 55: 
     case 56 : case 57 : case 58 : case 59 : case 60: 
     case 61 : case 62 : case 63 : case 64 : case 65: 
     case 66 : case 67 : case 68 : case 69 : case 70: 
	 case 71 : case 72 : case 73 : case 74 : case 75: 
     case 76 : case 77 : case 78 : case 79 : case 80: 
     case 81 : case 82 : case 83 : case 84 : case 85: 
     case 86 : case 87 : case 88 : case 89 : case 90: 
     case 91 : case 92 : case 93 : case 94 : case 95: 
	 case 96 : case 97 : case 98 : case 99 : case 100: 
	 		 display_temp = temp_value[1];
    	     break;
    }
    
   	printf("\n\n");
	printf("\tThe Temperature is %s.", display_temp);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}

Categories
C

US Dollar To Philippine Peso Converter Using C Language

 A simple program to ask the user to give a value in US Dollar and then convert into Philippine Peso 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

#include <stdio.h>

#define PHIL_PESO  50.74

int main()
{   
    float convert = 0.00, us_dollar = 0.00;
   
   	printf("\n\n");
	printf("\tUS Dollar To Philippine Peso Converter");
	printf("\n\n");
	printf("\tEnter US Dollar Value : ");
	scanf("%f",&us_dollar);
	
	convert = (us_dollar *  PHIL_PESO);
	  
	printf("\n\n");
	printf("\tThe value of $%2.2f US Dollars in ",us_dollar);
	printf("Philippine Peso is PHP %2.2f.",convert);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}
Categories
C

Memory Allocation in C

 A program was written by my friend and fellow software engineer Thomas to demonstrate how to use memory allocation using a C programming language. Thank you Tom for sharing your code to 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

Program Listing

#define DEBUG

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

void* alloc_mem(size_t size, const char *file, unsigned line)
{
     assert(size > 0);
     assert(file != NULL);

     void* res = malloc(size);
     if (res == NULL)
         fprintf(stderr, "malloc failed at %s(%u)\n",file, line);
     else {
         fprintf(stderr, "alloc\t%u\t%u\t%s\t%u\n", (unsigned int)res,
size,file, line);
         memset(res, 0xCC, size);
     }

     return res;
}

void free_mem(void *p, const char *file, unsigned line)
{
     assert(p != NULL);
     fprintf(stderr, "free\t%u\t?\t%s\t%u\n", (unsigned int)p, file, line);
}

#ifdef DEBUG
#define malloc(size)    alloc_mem(size, __FILE__, __LINE__)
#define free(p)         free_mem(p, __FILE__, __LINE__);
#endif

int f()
{
     int *num = malloc(sizeof(int *));

     return *num;
}

int main()
{
     int *ip = malloc(sizeof(int *));
     if (ip != NULL)
     {
         *ip = 11;
         printf("*ip = %d\n", *ip);
     }
     printf("Num = %d\n", f());
     free(ip);
     //system("pause");
     return EXIT_SUCCESS;
Categories
C

Student Grading System in C

A simple program that I wrote using C programming language I called this program student grading 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/

#include <stdio.h>

#define PRELIM_PERCENTAGE   0.20
#define MIDTERM_PERCENTAGE  0.30
#define ENDTERM_PERCENTAGE  0.50

int main()
{   
    char student[200];
	char subject[100];
    float  solve_grade = 0.00;
    int prelim=0,midterm=0,endterm=0;
    float pre=0.00,mid=0.00,end=0.00;
    
   	printf("\n\n");
	printf("\tStudent Grading System in C");
	printf("\n\n");
	printf("\tStudent's Name  : ");
    gets(student);
    printf("\n");
	printf("\tSubject Taken   : ");
    gets(subject);
 	printf("\n");
	printf("\tPrelim Grade    : ");
    scanf("%d",&prelim);
   	printf("\tMidterm Grade   : ");
    scanf("%d",&midterm);
   	printf("\tEndterm Grade   : ");
    scanf("%d",&endterm);

    /* Compute the student's grade */
    
    pre = (prelim * PRELIM_PERCENTAGE);
    mid = (midterm * MIDTERM_PERCENTAGE);
    end = (endterm * ENDTERM_PERCENTAGE);
        
    solve_grade = (pre + mid + end);
    
	printf("\n\n");
	printf("\t===== DISPLAY RESULT =====");
	printf("\n\n");
	printf("\tStudent's' Name     : %s",student);
	printf("\n");
	printf("\tSubject    Taken    : %s",subject);
	printf("\n");
	printf("\tSubject    Grade    : %2.0f",solve_grade);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}


Categories
C

Payroll Program in C

A simple payroll program that I wrote 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.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/

#include <stdio.h>

#define RATE_PER_DAY 84.50

int main()
{   
    char emp_name[200];
	int days = 0;
    float  solve_salary = 0.00;
   	printf("\n\n");
	printf("\tPayroll Program in C");
	printf("\n\n");
	printf("\tEmployee's Name  : ");
    gets(emp_name);
	printf("\tNo. Day's Worked : ");
    scanf("%d",&days);

    /* Compute the employee's salary */
    
    solve_salary = (days *  RATE_PER_DAY); 
    
	printf("\n\n");
	printf("\t===== DISPLAY RESULT =====");
	printf("\n\n");
	printf("\tEmployee's' Name     : %s",emp_name);
	printf("\n");
	printf("\tEmployee's Salary    : PHP %5.2f.",solve_salary);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}

Categories
C

Sum and Product of Numbers in C

A simple program that I wrote using a C programming language to ask the user to give two numbers and then the program will sum and compute the product of the two given numbers and display the results 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.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/

#include <stdio.h>

int main()
{   
    int a=0,b=0,sum=0,product=0;
   	printf("\n\n");
	printf("\tSum and Product of Numbers in C");
	printf("\n\n");
	printf("\tGive Two Numbers : ");
    scanf("%d%d",&a,&b);

    /* Compute Sum and Product of Two Numbers */
    
    sum = (a + b);
	
	product = (a * b); 
    
	printf("\n\n");
	printf("\t===== DISPLAY RESULTS =====");
	printf("\n\n");
	printf("\tThe sum of %d and %d is %d.",a,b,sum);
	printf("\n");
	printf("\tThe product of %d and %d is %d.",a,b,product);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}

Categories
C

Volume of a Sphere Converter in C

A simple program that I wrote using C programming language to compute the volume of a sphere.

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/

Sample Program Output

Program Listing

#include <stdio.h>

#define PI  3.14

int main()
{   
    float volume_sphere = 0.00;
    float radius = 0.00;
   	printf("\n\n");
	printf("\tVolume of a Sphere Converter");
	printf("\n\n");
	printf("\tEnter Radius Value : ");
    scanf("%f",&radius);

    /* Compute the volume of Sphere */
    
    volume_sphere = (4.0/3.0)*(PI*radius*radius*radius);
    
	printf("\n\n");
	printf("\tThe Volume of Sphere is %5.2f.",volume_sphere);
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n");
}