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

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

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");
}
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 [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


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

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 [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, 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

US Dollar To Philippine Peso Converter in C

I wrote this simple program to ask the user to give US dollar values and then the program will convert the given us dollar values into Philippine peso equivalent.

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

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/

Sample Program Output

Program Listing

#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");
}