Hello ma'am/sir
any help for the codes of input to be align.heres my code:
#include<iostream>
using namespace std;
int main()
{
float pre, mid, semi, final, total;
cout << "Prelim: "<<setw(20)<< "Midterm: "<<setw(20)<< "Semifinal: "<<setw(20)<< "Final: "<<setw(20)<< "Final grade: \n";
cin>>pre>>mid>>semi>>final>>total;
total = (pre+mid+semi+final)/4;
system("pause");
return 0;
}
expected execution:
Prelim: Midterm: Semifinal: Final: Final grade:
1.3 1.2 1.5 1.2 1.3
any help, or just hints. Thanks.