Answer to Question #54230 in C++ for kie
compute a prelim grade?is this correct
cout<<"PRELIM";
cout<<"/n/n";
cout<<"Laboratory:";
cin>>dbllab;
cout<<"Exam:";
cin>>dblex;
cout<<"Project:";
cin>>dblpro;
dblpg=(dbllab * .6) + (dblex * .2) + (dblpro * .2);
cout<<"Prelim Grade:"<<dblpre<<endl;
1
2015-08-28T02:07:54-0400
#include <iostream>
using namespace std;
int main(){
double dbllab,dblex,dblpro,dblpg;
cout<<"PRELIM Laboratory:";
cin>>dbllab;
cout<<"Exam:";
cin>>dblex;
cout<<"Project:";
cin>>dblpro;
dblpg=(dbllab * .6) + (dblex * .2) + (dblpro * .2);
cout<<"Prelim Grade:"<<dblpg;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment