68 385
Assignments Done
98,5%
Successfully Done
In November 2018

Answer to Question #54230 in C++ for kie

Question #54230
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;
Expert's answer
#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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions