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

Percentage in C

  Machine Problem in C

Write a program that will ask the user to give a score and total mark and compute the percentage, and display the results.

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

/* percentage.c

   Machine Problem in C
   
   Write a program that will ask the user to give score and
   total mark and compute the percentage, and display the
   results.
   
   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 percentage = 0.00;
  int total_marks = 0;
  int scored = 0;

  printf("\n\n");
  printf("\tPercentage in C");
  printf("\n\n");
  printf("\tEnter Score       : ");
  scanf("%d", &scored);
  printf("\tEnter Total Marks : ");
  scanf("%d", &total_marks);
  
  percentage = (float)scored / total_marks * 100.0;

  printf("\n\n");
  printf("\tThe Percentage is %5.2f%%.", percentage);
  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

Two Digits Number Checker in C

  Machine Problem in C

 Write a program in C accept a number then display  whether the number is less than two digits or more than two digits.

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

/* two_digits.c
   
   Machine Problem in C
   
   Write a program in C accept a number then display 
   whether the number is less than two digits or more than two digits.
   
   Author   : Jake Rodriguez Pomperada, MAED-IT, MIT
   Date     : January 11, 2020
   Website  : www.jakerpomperada.com
   Email    : [email protected]
   Place    : Bacolod City, Negros Occidental, Philippines
*/	
							
#include <stdio.h>

int main()
{
	int num=0;
	
	printf("\n\n");
	printf("\tTwo Digits Number Checker in C");
	printf("\n\n");
	printf("\tEnter a Number : ");
	scanf("%d",&num);
	printf("\n\n");
	
	if(num >= 0 && num <= 9 )
	{
		printf("\t%d is less than two digits.",num);
	}
	else if (num >=10   && num <= 99 ) 
	{
		printf("\t%d has two digits.",num);
	} 
	else 
	{
		printf("\t%d is more than two digits.",num);	
	}
	printf("\n\n");
	printf("\tEnd of Program");
	printf("\n\n");
	return 0;
}
					    
Categories
C

Addition of Two Numbers Using C in Ubuntu Linux

 A simple program to ask the user to give two numbers and then it will solve the sum of two numbers using C programming language in Ubuntu Linux.

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

#include <stdio.h>

int main()
{
  int x=0, y=0, sum=0;


  printf("\n");
  printf("Addition of Two Numbers Using C in Ubuntu Linux");
  printf("\n\n");
  printf("\tGive Two Numbers : ");
  scanf("%d%d", &x, &y);

  sum = x + y;

  printf("\n");
  printf("\tSum of %d and %d is %d.",x,y,sum);
  printf("\n\n");
  return 0;
}



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

Simple Loan 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 simple 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 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

Program Listing

/* simple_interest.c

Machine Problem in C

Write a C program to input principal amount, time and rate 
(P, T, R) from user and find simple 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>

int main()
{
    double principal_amount=0.00, time=0.00, rate=0.00;
    double simple_interest = 0.00;
    
    printf("\n\n");
    printf("\tSimple Loan 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 simple interest */
    simple_interest = (principal_amount * time * rate) / 100;

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






Categories
C

One Dimensional Array in C

 A simple program to demonstrate how to declare and display the list of values in one dimensional array using 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 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.

Program Listing

#include <stdio.h>


int main(){
  
  int a[5] = {10,20,30,40,50};
  
  int b=0;
  
  printf("\n\n");
  printf("\tOne Dimensional Array in C");
  printf("\n\n");
  printf("\t");
  for (b=0; b<5; b++) {
  	
  	printf("%4d",b[a]);
  }
  printf("\n\n\n");
  printf("\tEnd of Program");	
  printf("\n");
}