Your way of calculating percentages is wrong. If T is the total of marks and N is a number of marks, then the percentage is
P = N / T * 100
Note that you can't assign a string to a char, you should use type string for that. This worked for me, I use C++Builder.
Code:
#include <iostream>
using namespace std;
int main()
{
char cReply;
string Studentname;
int MT1, PMT1, ISAS, PISAS, MT2, PMT2, PROJECT, PPROJECT;
int TotalMarks;
do
{
cout << "Enter Student Name ";
cin >> Studentname;
cout << "Enter MT1 Marks ";
cin >> MT1;
cout << "Enter ISAS Marks ";
cin >> ISAS;
cout << "Enter MT2 Marks ";
cin >> MT2;
cout << "Enter PROJECT Marks ";
cin >> PROJECT;
TotalMarks = MT1 + ISAS + MT2 + PROJECT;
PMT1 = float (MT1) / float (TotalMarks) * 100;
cout << "The Percentage of MT1 is " << PMT1 << endl;
PISAS = float (ISAS) / float (TotalMarks) * 100;
cout << "The Percentage of ISAS is "<< PISAS << endl;
PMT2 = float (MT2) / float (TotalMarks) * 100;
cout << "The Percentage of MT2 is "<< PMT2 << endl;
PPROJECT = float (PROJECT) / float (TotalMarks) * 100;
cout << "The Percentage of Project is " << PPROJECT << endl;
cout << "Do you want to input another Student(y/n) ";
cin >> cReply;
}
while (cReply != 'n' && cReply != 'N');
return 0;
}