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;
1
Expert's answer
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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal