//Write a program that reads the marks (HWs, test1, test2, Final) and the percentage of each mark toward the total mark. Find the total mark and print it out as shown below.
Example:

#include <iostream>
using namespace std;
int main()
{​

int HWs, test1, test2, Final, total;
double HWspercentage, testonepercentage, testtwopercentage, testthreepercentage, Finalpercentage;

cin >> " inter your grades " >> HWs >> test1 >> test2 >> test3 >> Final;
total = HWs + test1 + test2 + test3 + Final;

HWspercentage = ( HWs / total ) * 100;
testonepercentage = ( test1 / total ) * 100;
testtwopercentage = ( test2 / total ) * 100;
testthreepercentage = ( test3 / total ) * 100;
Finalpercentage = ( Final / total ) * 100;

cout << "your total grade is" << total << endl;
cout << " your HWs percentage" << HWspercentage << endl;
cout << " your test1 percentage "<< testonepercentage << endl;
cout << " your test2 percentage "<< testtwopercentage << endl;
cout << " your test3 percentage "<< testthreepercentage << endl;
cout << " your Final percentage "<< Finalpercentage << endl;

​system("PAUSE");
 ​return 0;
}