Important alert: (current site time 7/16/2013 8:08:03 AM EDT)
 

VB icon

Average Marks of the Student

Email
Submitted on: 3/22/2013 7:45:44 AM
By: Jake Rodriguez Pomperada  
Level: Beginner
User Rating: Unrated
Compatibility: C
Views: 603
author picture
(About the author)
 
     An demonstration of using an array in C language to calculate average marks of 30 students. If you like my work please send me an email at jakerpomperada@yahoo.com and jakerpomperada@gmail.com. Here in the Philippines people can reach me through my mobile numbers 09993969756 and 09154628025. My telephone number at home is +63 (034) 4335081. I am also working as a freelance developer if you like to acquire my programming services kindly contact me in my email address above and mobile phone numbers. T Thank you very much and Happy Programming. Regards, Mr. Jake Rodriguez Pomperada, MAED-IT Teacher, Software Developer, Web Developer and Electronics and Computer Technician Share My Code Freely Without Any Cost. Product of the Philippines.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
//**************************************
// Name: Average Marks of the Student
// Description:An demonstration of using an array in C language to calculate average marks of 30 students.
If you like my work please send me an email at jakerpomperada@yahoo.com 
and jakerpomperada@gmail.com. Here in the Philippines people can reach 
me through my mobile numbers 09993969756 and 09154628025. 
My telephone number at home is +63 (034) 4335081. 
I am also working as a freelance developer if you like to acquire 
my programming services kindly contact me in my email address above
and mobile phone numbers. T
 Thank you very much and Happy Programming. 
 Regards, 
 
 Mr. Jake Rodriguez Pomperada, MAED-IT 
 
 Teacher, Software Developer, Web Developer and Electronics and Computer Technician Share My Code Freely Without Any Cost. Product of the Philippines. 
// By: Jake Rodriguez Pomperada
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=14037&lngWId=3//for details.//**************************************

/* Use of array */
/* Program to calculate average marks of 30 students */
#include <stdio.h>
main( )
{
	int avg, sum = 0 ;
	int i ;
	int marks[30] ; /* array declaration */
	for ( i = 0 ; i <= 29 ; i++ )
	{
		printf ( "\nEnter marks " ) ;
		scanf ( "%d", &marks[i] ) ; /* store data in array */ 
	}
	for ( i = 0 ; i <= 29 ; i++ )
		sum = sum + marks[i] ; /* read data from an array*/
	avg = sum / 30 ;
	printf ( "\nAverage marks = %d", avg ) ;
}


Other 232 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.