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

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

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

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

Leap Year Checker Using Structure in C

A simple program that I wrote to check the given year if it is a leap year or not a leap year using structure in 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.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/

Program Listing

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

struct leap_year {
    int year;
};

int main()
{
struct leap_year years;
printf("\n\n");
printf("\tLeap Year Checker Using Structure in C");
printf("\n\n");
printf("\tGive a Year : ");
scanf("%d",&years.year);
printf("\n\n");

if(years.year%4==0)
{
if(years.year%100==0)
{
if(years.year%400==0)
printf("\tThe Given Year %d is a Leap Year. ",years.year);
else
printf("\tThe Given Year %d is Not a Leap Year. ",years.year);
}
else
printf("\tThe Given Year %d is a Leap Year. ",years.year);
}
else {
printf("\tThe Given Year %d is Not a Leap Year. ",years.year);
}
printf("\n\n");
printf("\tThank you for Using This Software.");
printf("\n\n");
system("PAUSE");
}




Categories
C

Paper-Rock and Scissor Game in C

A game called Paper-Rock and Scissors written and given to us by my friend and fellow software engineer Sir Ernel. Thank you so much Sir Ernel.
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/


Program Listing

/* Paper-Rock and Scissor Game in C */
#include <stdio.h>
int main ()
{
char p1, p2;
printf("\n       Welcome to Rock-Paper-Scissor Game\n");
printf("\nInstructions: \n Enter [r]rock [p]paper [s]scissor \n");
printf ("\n Enter Player 1: ");
do{
scanf("%c",&p1);
if(p1!='p' && p1!='P' && p1!='s' && p1!='S' && p1!='r' && p1!='R')
{
if(p1!='\n')
printf("\a\nInvalid character %c \nPlease enter valid character r,p,s only\n",p1);
}
}
while(p1!='p' && p1!='P' && p1!='s' && p1!='S' && p1!='r' && p1!='R');
printf ("\n Enter Player 2: ");
do {
scanf("%c",&p2);
if(p2!='p' && p2!='P' && p2!='s' && p2!='S' && p2!='r' && p2!='R') {
if(p2!='\n')
printf("\a\nInvalid character %c \nPlease enter valid character r,p,s only\n",p2);
}
}
while(p2!='p' && p2!='P' && p2!='s' && p2!='S' && p2!='r' && p2!='R');
if (((p1=='p')||(p1=='P')) && ((p2=='R') || (p2=='r'))) {
printf ("\n Player 1 Wins !");
printf ("\n Paper Covers Rock");
}
else 
if (((p2=='p') || (p2=='P')) && ((p1=='r') || (p1=='R'))) {
printf ("\n Player 2 Wins !");
printf ("\n Paper Covers Rock");
}
else 
if (((p1=='r') || (p1=='R')) && ((p2=='s') || (p2=='S'))) {
printf ("\n Player 1 Wins !");
printf ("\n Rock Breaks Scissors");
}	
else 
if (((p2=='r') || (p2=='R')) && ((p1=='s') || (p1=='S'))) {	
printf ("\n Player 2 Wins !");
printf ("\n Rock Breaks Scissors");
}	
else 
if (((p1=='s') || (p1=='S')) && ((p2=='p') || (p2=='P'))) {
printf ("\n Player 1 Wins !");
printf ("\n Scissors Cut Paper");
}	
else 
if (((p2=='s') || (p2=='S')) && ((p1=='p') || (p1=='P'))) {
printf ("Player 2 Wins !");
printf ("Scissors Cut Paper");
}	
else 
if (p1==p2) {
printf ("\n Nobody Wins !");
printf ("\n Both Of You Entered The Same Letters");
}	
return 0;
}
Categories
C

Math Operations Using Switch in C

Math operations using the switch in C programming language was written by my close friend and fellow software engineer Sir Ernel. Thank you sir Ernel  for sharing your work with 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


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/

Program Listing

#include<stdio.h>

int main()
{
int num1,num2,choice;
printf("\nEnter the two numbers\n");
scanf("%d %d",&num1,&num2);
printf("\n1 Addition");
printf("\n2 Subtraction");
printf("\n3 Multiplication");
printf("\n4 Division");
printf("\n5 Modulus");
printf("\nEnter the choice:");
scanf("%d",&choice);
switch(choice)
{
case 1:printf("\nThe Addition of two numbers is %d",num1+num2);
break;
case 2:printf("\nThe Subtraction of two numbers is %d",num1-num2);
break;
case 3:printf("\nThe Multiplication of two numbers is %d",num1*num2);
break;
case 4:printf("\nThe Division of two numbers is %d",num1/num2);
break;
case 5:printf("\nThe Modulus of two numbers is %d",num1%num2);
break;
default:printf("\nThis operation is not possible");
}
return 0;
}
Categories
C

ATM Machine Program in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, 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

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/

Program Listing

#include<stdio.h>
int main()
{
 int i,choice;
 float cash=0;
 char c;
 do{
  printf("Enter\n1-Withdraw\n2-Deposit\n3-Check Balance\n");
 scanf("%d",&amp;choice);
 switch(choice)
 {
  case 1:
  {
   int withdraw;
   printf("Enter Amount to withdraw\n");
   scanf("%d",&amp;withdraw);
   if(withdraw%100==0)
   {
    if(cash>=withdraw)
        {
        cash-=withdraw;
        printf("Amount After withdrawl of cash is %f\n",cash);
       }
       else
    {
    printf("You don't have enough Amount to Withdraw.Please Deposit Amount\n");
        }
   }
   else
   {
    printf("Enter Withdrawl Amount in 100's\n");
   }
   break;
  }
  case 2:
  {
   int deposit;
   printf("Enter Amount to deposit\n");
   scanf("%d",&amp;deposit);
   if(deposit%100==0)
   {
       cash=cash+deposit;
       printf("Balance After Depositing Amount is %f\n",cash);
   }
   else
   {
    printf("Please Enter Amount in 100's\n");
   }
   break;
  }
  case 3:
  {
   printf("Balance in the Account is %.2f\n",cash);
   break;
  }
  default :
  {
   printf("Enter Valid Choice\n");
   break;
  }
 }
 printf("To Continue Press 'Y' else any letter\n");
 fflush(stdin);
 scanf("%c",&amp;c);
   }while(c=='y' || c=='Y');
   printf("Thanks for using our ATM\n");
}
Categories
C

Date in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, 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

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/

Program Listing

#include<stdio.h>
int main()
{
printf("%s",__DATE__);
return 0;
}
Categories
C

Minimum and Maximum Number in an Array in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, 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

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/

Program Listing

#include <stdio.h>

int main(){
int i,n,val,min,max=0;
printf("Enter how many numbers you want to enter:");
scanf("%d",&amp;n);
printf("Enter the %d numbers:\n",n);
scanf("%d",&amp;val);
min=val;
if(val>=max)
max=val;
for(i=1;i<n;i++)
{
scanf("%d",&amp;val);
if(val>max)
max=val;
if(val<min)
min=val;
}
printf("\nThe maximum of given %d numbers is: %d",n,max);
printf("\n");
printf("\nThe minimum of given %d numbers is: %d",n,min);
return 0;
}
Categories
C

Fibonacci Numbers in C

This program is being written by my good friend and fellow software engineer Sir Ernel G. Fadriquilan thank you very much, Sir, 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

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/

Program Listing

#include <stdio.h>
int main()
{
int count, n, t1=0, t2=1, display=0;
printf("Enter number of terms: ");
scanf("%d",&amp;n);
printf("Fibonacci Series: %d+%d+", t1, t2); 
count=2; 
while (count<n) 
{
display=t1+t2;
t1=t2;
t2=display;
++count;
printf("%d+",display);
}
return 0;
}