I've written programs for averaging lists of exam grades but throwing in the percent is throwing me for a loop. I don't know how to handle this information. Any help will be greatly appreciated.

//Write a program that asks the user to enter a student's midterm

//and final exam scores. The program should display the midterm and

//final exam scores and the student's final grade. Compute the final

//grade by taking the sum of 40% of the midterm exam score and 60% of

//the final exam score.

```
#include <iostream.h>
#include<iomanip.h>
//using namespace std;
int main()
{
int. midterm,midterm;
final;final;
double 40% mid;
60% final;
cout<< set precision()
<<setiosflags(.40);
<<setiosflags(.60);
//obtain input data
cout<<"\nEnter midterm";
cin>>midterm exam;
cout<<"\nEnter final";
cin>>;final exam;
//Do the calculations
final grade = double (midterm + final);
cout<<"\n;????
return 0;
}
```