Categories
C

Philippine Peso to Other Currencies in C

Machine Problem in C

 In this tutorial I wrote this program to ask the user  to give Philippine Peso value and convert it to other

 currencies like  hongkong dollar, uae derham, us dollar,  and japanese yen.

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 at 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 [email protected], [email protected], and [email protected]

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing


/* php_peso.c

 Machine Problem in C
   
 In this tutorial I wrote this program to ask the user
 to give Philippine Peso value and convert it to other
 currencies like  hongkong dollar, uae derham, us dollar, 
 and japanese yen.
 
 Mr. Jake R. Pomperada,MAED-IT, MIT
 www.jakerpomperada.com
 www.jakerpomperada.blogspot.com
 [email protected]
 Bacolod City, Negros Occidental Philippines.
 */
 
 
 #include <stdio.h>
 
 int main()
 {
 	float php_peso = 0.00;
 	float hk_dollar = 0.00, uae_dirham = 0.00;
 	float us_dollar = 0.00, jpn_yen = 0.00;
 	
 	printf("\n\n");
 	printf("\tPhilippine Peso to Other Currencies in C");
 	printf("\n\n");
 	printf("\tGive Philippine Peso Value : ");
 	scanf("%f", &php_peso);
 	printf("\n\n");
 	
 	hk_dollar = (php_peso * 0.16137);
    uae_dirham = (php_peso * 0.07646);
    us_dollar = (php_peso * 0.02081);
    jpn_yen =   (php_peso* 2.1612);

 	printf("\tHong Kong Dollar : %5.2f\n ",hk_dollar);
 	printf("\tUAE Dirham       : %5.2f\n ",uae_dirham); 
 	printf("\tUS Dollar        : %5.2f\n ",us_dollar);
 	printf("\tJapanese Yen     : %5.2f\n ",jpn_yen); 
 	printf("\n\n");
 	printf("\tEnd of Program");
 }
 
Categories
C

Selection Sort in C

  Machine Problem in C

Write a program to ask the user to give a series of numbers and then the program will sort the given numbers using selection sort algorithms.

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 at 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 [email protected], [email protected], and [email protected]

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

/* selection_sort.c
       
    Machine Problem in C
    
	Write a program to ask the user to give a series of
	numbers and then the program will sort the given 
	numbers using selection sort algorithms.
	    
    Jake R. Pomperada, MAED-IT, MIT
    www.jakerpomperada.com
    www.jakerpomperada.blogspot.com
    [email protected]
    Bacolod City, Negros Occidental, Philippines

*/ 

#include <stdio.h>

void selection_sort();

int i=0,a[100], num=0;

int main()
{
    
    printf("\n\n");
    printf("\tSelection Sort in C");
    printf("\n\n");
    printf("\tHow many items in the array? : ");
    scanf("%d", &num);
    printf("\n\n");
      for(i=0; i<num; i++) {
     	   printf("\tGive value in item no. %d : ",i+1);
		   scanf("%d", &a[i]);
        }
    printf("\n\tBefore sorting:\n");
    printf("\n");
	printf("\t");
    for(i=0; i<num; i++)
        printf(" %d ", a[i]);
    selection_sort();
    printf("\n");
    printf("\n\tAfter sorting:\n");
    printf("\n");
    printf("\t");  
	for(i=0; i<num; i++)
        printf(" %d ", a[i]);
    getch();
}

void selection_sort()
{
    int i, j, min, temp;
    for (i=0; i<num; i++)
    {
        min = i;
        for (j=i+1; j<num; j++)
        {
            if (a[j] < a[min])
                min = j;
        }
        temp = a[i];
        a[i] = a[min];
        a[min] = temp;
    }
}
Categories
C

Square Root in C

 Machine Problem in C

   Write a program that will ask the user to give a number and the program will convert the given number into its square root equivalent.

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 at 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 [email protected], [email protected], and [email protected]

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

/* square_root.c

   Machine Problem in C
   
   Write a program that will ask the user to give a number
   and the program will convert the given number into 
   its square root equivalent.
   
   Mr. Jake R. Pomperada,MAED-IT, MIT
   www.jakerpomperada.com
   www.jakerpomperada.blogspot.com
   [email protected]
   Bacolod City, Negros Occidental, Philippines
*/
 
#include <math.h>
#include <stdio.h>

int main() {
	
   double val_num=0.00;
   double squareRoot=0.00;

   printf("\n");
   printf("\n\tSquare Root in C");
   printf("\n\n");
   printf("\tGive a Number : ");
   scanf("%lf", &val_num);

   /* Coversion To Square Root */
   
   squareRoot = sqrt(val_num);
   
   printf("\n\n");
   printf("\tThe Square Root of %.2lf =  %.2lf",val_num, squareRoot);
   printf("\n\n");
   printf("\tEnd of Program");
   
}
Categories
C

Cube a Number in C

 Machine Problem in C

   Write a program that will ask the user to give a number and then the program will compute it cube number equivalent.

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 at 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 [email protected], [email protected], and [email protected]

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

/* cube_a_number.c

   Machine Problem in C
   
   Write a program that will ask the user to give a number 
   and then the program will compute it cube number equivalent.
   
   Mr. Jake R. Pomperada,MAED-IT, MIT
   www.jakerpomperada.com
   www.jakerpomperada.blogspot.com
   [email protected]
   Bacolod City, Negros Occidental, Philippines
*/
 
#include<stdio.h>
 
int main()
{
  int number=0, cube_number=0;
 
  printf("\n\n");
  printf("\tCube a Number in C");
  printf("\n\n");
  printf("\tEnter an Integer Number : ");
  scanf("%d", &number);
  
  cube_number = (number * number * number);
  
  printf("\n\n");
  printf("\tThe Cube of a given number %d is %d.",number, cube_number);
  printf("\n\n");
  printf("\tEnd of Program");
 }
Categories
C

Compound Interest in C

 Machine Problem in C

Write a C program to input principal amount, time and rate  (P, T, R) from user and find compound interest of a loan.

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 at 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 [email protected], [email protected], and [email protected] 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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.comIf you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.Your support on my channel is highly appreciated.Thank you very much.

Program Listing

/* compound_interest.c

Machine Problem in C

Write a C program to input principal amount, time and rate 
(P, T, R) from user and find compound interest of a loan.

Mr. Jake Rodriguez Pomperada, MAED-IT, MIT
www.jakerpomperada.com
www.jakerpomperada.blogspot.com
[email protected]
Bacolod City, Negros Occidental Philippies
*/

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

int main()
{
    double principal_amount=0.00, time=0.00, rate=0.00,amount=0.00;
    double compound_interest=0.00;
    
    printf("\n\n");
    printf("\tCompound Interest in C");
    printf("\n\n");
    printf("\tGive Principal Amount     : ");
    scanf("%lf", &principal_amount);
    
    printf("\n");
    printf("\tGive Time Duration        : ");
    scanf("%lf", &time);
    printf("\n");
    printf("\tGive Annual Interest Rate : ");
    scanf("%lf", &rate);

    /* Calculate compound  interest */
     amount=principal_amount*pow((1 +rate/100),time);
 
     compound_interest=amount-principal_amount;

    printf("\n");
    printf("\tThe Compound Interest is $ %2.2lf",compound_interest);
    printf("\n\n");
    system("pause");
    
}


Categories
C

Addition of Two Numbers in C (Tagalog Version)

 In this video I will teach how to write a C program to add two numbers in tagalog version.

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 at 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 [email protected], [email protected], and [email protected]

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 I also accepting computer repair, networking, and Arduino Project development at a very affordable price. My website is www.jakerpomperada.blogspot.com and www.jakerpomperada.com

If you like this video please click the LIKE button, SHARE, and SUBSCRIBE to my channel.

Your support on my channel is highly appreciated.

Thank you very much.

Program Listing

/* addition.c
   Jake Rodriguez Pomperada, MAED-IT, MIT
   jakerpomperada.blogspot.com
   jakerpomperada.com
   [email protected]
   Bacolod City, Negros Occidental Philippines
 */
 
 #include <stdio.h>
 
 int main() {
 	
 	int sum=0,a=0,b=0;
 	
 	printf("\n\n");
 	printf("\tAddition of Two Numbers in C ");
 	printf("\n\n");
 	printf("\tEnter First  Value : ");
 	scanf("%d",&a);
 	printf("\tEnter Second Value : ");
 	scanf("%d",&b);
 	
 	sum = a + b;
 	
 	printf("\n\n");
 	printf("\tThe sum of %d and %d is %d."
	     ,a,b,sum);
	printf("\n\n");
	printf("\tEnd of Program");     
	printf("\n\n");
 }
   
Categories
C

Leap Year Checker in C

A program that I wrote to ask the user to give a year and then the program will determine whether the given year is a leap year or not a leap year.

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 [email protected][email protected], and [email protected].

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

/* leap_year.c
 * Author  : Mr. Jake Rodriguez Pomperada,MAED-IT,MIT
 * Date    : October 8, 2020   Thursday
 * Website : www.jakerpomperada.com / www.jakerpomperada.blogspot.com
 * Email   : [email protected]
 * Place   : Bacolod City, Negros Occidental Philippines
 */

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

int main(void)
{
    int year=0;
      
    printf("\n\n");
    printf("\tLeap Year Checker in C");
	printf("\n\n");
	printf("\tGive a year :");
    scanf("%d", &year);
    printf("\n\n");
    if ((year % 400) == 0)
        printf("\tThe given year %d is a leap year. \n", year);
    else if ((year % 100) == 0)
        printf("\tThe given year %d is a not leap year. \n", year);
    else if ((year % 4) == 0)
        printf("\tThe given year %d is a leap year. \n", year);
    else
        printf("\tThe given year %d is not a leap year. \n", year);
    
    printf("\n\n");
    printf("\tEnd of Program");
    printf("\n\n");
	system("pause");
}
        
        
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 [email protected], [email protected], and [email protected] 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 [email protected], [email protected], and [email protected] 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 [email protected], [email protected], and [email protected] 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");
}