Friday, December 13, 2019

Average Grade Solver in C Language

Write a program that will ask the student to give the prelim, midterm and final grade and then the program will compute the average grade of student and display the result on the screen.

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

If you like my video tutorials kindly click the like button and subscribe for more video tutorials on my channel.


Thank you very much for your help and support.


Sample Program Output



Program Listing

average_grade.c

/* grade.c
   Author   : Jake Rodriguez Pomperada,BSCS,MAED-IT
   Date     : November 13, 2018  Tuesday 9:44 PM
   Location : Bacolod City, Negros Occidental
   Tool     : Dev C++ Version 5.11
   Website  : http://www.jakerpomperada.com
   Email    : jakerpomperada@jakerpomperada.com
*/

#include <stdio.h>

int main() 
 {
  float solve_average=0.00;
  float prelim=0.00,midterm=0.00,final=0.00;
  
  system("COLOR F0");
  printf("\n\n");
  printf("\tAverage Grade Solver");
  printf("\n\n");
  printf("\tGive Prelim Grade   : ");
  scanf("%f",&prelim);
  printf("\tGive Midterm Grade  : ");
  scanf("%f",&midterm);
  printf("\tGive Final Grade    : ");
  scanf("%f",&final);

  solve_average =(prelim+midterm+final)/3;

  printf("\n\n");
  printf("\t===== DISPLAY RESULTS =====");
  printf("\n\n");
  printf("\tThe student average grade is %.2f.",solve_average);
  printf("\n\n");
  printf("\tEND OF PROGRAM");
  printf("\n\n");
}


No comments:

Post a Comment