C++| Computing Average

Sunday, 6 January 2013

Average is basically the sum of all numbers within a list divided by the size of the list. In my world as a student, average means the overall total of my grades. Professors usually give grades after every end of the exams and as a student you really need to supervise your grades to prevent from failing. One thing to do that is to get your average grade.

Computing average is a little confusing especially if your calculator is not around. So, I made a program that will compute for your average to make computing more easier and it is user-friendly. The program is structured with the basic commands in C++ language. Check out the code below.



 1:    #include <iostream>
   2:        
   3:     #include <conio.h>
   4:        
   5:      using namespace std;
   6:       
   7:        
   8:       
   9:           int main()
  10:     
  11:          {
  12:       
  13:             float num1 = 0.0f;
  14:       
  15:               float num2 = 0.0f;
  16:      
  17:                float num3 = 0.0f;
Related Posts Plugin for WordPress, Blogger...