#include <iostream>
using namespace std;
int main()
{
int c_hrs1 , c_hrs2 , c_hrs3 , c_hrs4;
float gpa_1 , gpa_2 , gpa_3 , gpa_4;
int total_c_hrs= c_hrs1+c_hrs2+c_hrs3+c_hrs4;
float cgpa= ((c_hrs1*gpa_1)+(c_hrs2*gpa_2)+(c_hrs3*gpa_3)+(c_hrs4*gpa_4))/total_c_hrs;
cout<<"**********************************************************************"<<endl;
cout<<"\t Welcome to GPA Calculator for Dummies"<<endl;
cout<<"Please enter you GPA in course 1: ";
cin>>gpa_1;
cout<<"Please enter the credit hours for course 1:";
cin>>c_hrs1;
cout<<"Please enter you GPA in course 2: ";
cin>>gpa_2;
cout<<"Please enter the credit hours for course 2:";
cin>>c_hrs2;
cout<<"Please enter you GPA in course 3: ";
cin>>gpa_3;
cout<<"Please enter the credit hours for course 3:";
cin>>c_hrs3;
cout<<"Please enter you GPA in course 4: ";
cin>>gpa_4;
cout<<"Please enter the credit hours for course 4:";
cin>>c_hrs1;
cout<<"**********************************************************************"<<endl;
[B] cout<<"Your GPA for this semester is:"<<cgpa;
cin.get();[/B]
return 0;
}
It doesnt even display the last cout>>