Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by ftmhmn ( 15 years ago )
#include<iostream.h>
int getGrades ( char, char, char, char& );
int calculatePoints ( int, int, int, int );
float calculateCGPA  ();
float displayCGPA(); 
void main()

{
 char name[100],subject;
 float code;
 
 cout << "Enter ypur name : " ;
 cin >> name;
 
 cout << "Enter subject 1 code : " ;
 cin >> code;
 
 cout << "Enter subject 2 code : ";
 cin >> code;
 
 cout << " nEnter subject 3 code : ";
 cin >> code;
 
 cout << " nEnter subject 4 code : ";
 cin >> code;
 
 cout << " nEnter grade for subject 1 : ";
 cin >> subject;
 
 cout << " nEnter grade for subject 2 : ";
 cin >> subject;
 
 cout << " nEnter grade for subject 3 : ";
 cin >> subject;
 
 cout << " nEnter grade for subject 4 : ";
 cin >> subject;
 
}

int getGrades ( char, char, char, char& )

{

 

Revise this Paste

Children: 37869
Your Name: Code Language: