1234567891011121314151617181920212223242526272829303132333435
#include <iostream> #include <string> # define scores 8 using namespace std; int main() { string n,s; float g; float assignment[scores]{}; cout <<"Please enter your name:"; cin>>n; cin>>s; cout<<endl; cout <<"Please enter the scores you got in the 8 assignments"<<endl; for(int i=0;i<8;i++) { cin>>assignment [i]; } if(assignment[scores]==g) { } else { cout<<"The value entered is invaild for computations."<<endl; } return 0; }