Header file error

Deleted for privacy reasons.
Last edited on
closed account (1vRz3TCk)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <iostream>
using namespace std;

struct Student
{
	int creditHours; 
	double gradePointAverage; 
};

int main ()
{
    Student  oneSophomore;
    const int HOURS_REQUIRED_TO_GRADUATE = 120;
    int hoursRemaining = HOURS_REQUIRED_TO_GRADUATE;
    
    cout<< "Please enter a student's credit hours: ";
    cin >> oneSophomore.creditHours;
    
    cout<< "please enter the student's grade point average: ";
    cin >> oneSophomore.gradePointAverage;
    
    cout<< "The number of credit hours is " << oneSophomore.creditHours << endl;
    cout<< "The grade point average is " << oneSophomore.gradePointAverage << endl;
    hoursRemaining = HOURS_REQUIRED_TO_GRADUATE - oneSophomore.creditHours;
    cout<< "This student needs  "  << hoursRemaining  << " more credit hours to graduate " << endl;
    return 0;
}
Last edited on
i feel stupid.. thankyou so much.
closed account (1vRz3TCk)
No need to feel stupid, making mistakes is part of learning.
Topic archived. No new replies allowed.