create a program that will compute the prelim grade of a student :
formula : CS : quiz avr.+ recitation avr. + project/assignment/avr.
____________________________________
3
PG : cs x 2 + PER
_____________
3
TARGET OUTPUT :
Please enter student name :_________
Please enter the Quiz average :_______
Please enter the Recitation Average:_______
Please enter the project/assignment :__________
Please enter prelim exam rating:__________
The prelim grade of the student is:___________
PASAGOT NAMAN PO . PLEASE NEED LANG :[[[[ ASAP ^^ teinks po :))
1
Expert's answer
2012-10-10T09:10:18-0400
#include<iostream> using namespace std;
char name[99]; int project, quiz, recitation, PER; float CS;
void main(){ cout<<"Please enter student name: "; cin>>name; cout<<"Please enter the Quiz average: "; cin>>quiz; cout<<"Please enter the Recitation Average: "; cin>>recitation; cout<<"Please enter the project/assignment: "; cin>>project; cout<<"Please enter prelim exam rating: "; cin>>PER; CS = (quiz + recitation + project)/3; cout<<"\nThe prelim grade of a student is: "<<(2*CS+PER)/3<<"\n"; system("PAUSE"); }
Comments
Dear Jennifer P Logo, You're welcome. We are glad to be helpful. If you liked our service please press like-button beside answer field. Thank you!
very good....
Leave a comment