Our teacher made us make a program that computes midterm grade. I have made my code already. My problem now is that whenever i run my code, halfway through the end appears a debug error saying that i was using a variable(TotalCS) that isn't declared. but it is actually declared. So what should i do with this..
this is the part where i declared the variables:
double Quiz1, Quiz2, Quiz3; double NoOfLate, NoOfAbsences; double Project, TotalCS, MidtermExam;
its in this part where the debug error appears:
cout<<"Midterm Exam(40%):\n"; cin>>MidtermExam; cout<<"Midterm Grade:\n"; cout<<((TotalCS * 2) + MidtermExam)/3<<endl;
Edited 5 Years Ago by ayesha08: n/a