Here is a sample program to solve the average grade of the student using pointers in C.
I am currently accepting programming work, it projects, school
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.
I am currently accepting programming work, it projects, school
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.
My personal website is http://www.jakerpomperada.com
My personal website is http://www.jakerpomperada.com
Sample Program Output
Program Listing
/* average_grade.c
Author : Jake Rodriguez Pomperada,BSCS,MAED-IT
Date : November 26, 2018 Monday 9:07 AM
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 main()
{
float solve_average=0.00;
float prelim=0.00,midterm=0.00,final=0.00;
float *prelim_p, *midterm_p, *final_p;
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);
prelim_p = &prelim;
midterm_p = &midterm;
final_p = &final;
solve_average =(*prelim_p+*midterm_p+*final_p)/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