Saturday, June 13, 2020

Student Grades Checker in C Language

A simple program that I wrote using C programming language to compute and check the students grades.

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

/*pass_fail.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : June 13, 2020  7:26 AM  Saturday
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com and jakerpomperada@gmail.com

*/
#include <stdio.h>

int grades[6],a=0;
int count_pass=0, count_fail=0;

void display_title(void);
void get_data(void);
void display_pass(void);
void display_fail(void);
void display_result(void);

void display_title(void)
{
     printf("\n\n");
printf("\t\tStudent Grades Checker");
     printf("\n\n\n");
}

void get_data(void)
{
  for (a=1; a<=5; a+=1) {
        printf("\tEnter Grade No. %d : ",a);
        scanf("%d",&a[grades]);
      }
}

void display_pass(void)
{
     printf("\n\n");
     printf("\tList of PASSED Grades ");
     printf("\n\n");
        for (a=1; a<=5; a+=1) {
          if (a[grades] >= 75) {
          printf("\t %d ",a[grades]);
               count_pass++;
              }
         }
  }

void display_fail(void)
{
      printf("\n\n");
      printf("\tList of FAILED Grades ");
      printf("\n\n");
       for (a=1; a<=5; a+=1) {

           if (a[grades] < 75) {
               printf("\t %d ",a[grades]);
              count_fail++;
              }
       }
}

void display_result(void)
{
printf("\n\n");
printf("\tNumber of Passed Grades => %d ",count_pass);
printf("\n\n");
printf("\tNumber of Failed Grades => %d ",count_fail);
printf("\n\n");
printf("\tEnd of Program");
printf("\n\n");
}
 int main() {
    display_title();
    get_data();
    display_pass();
    display_fail();
    display_result();
    }
 // End of Code



No comments:

Post a Comment