Вы находитесь на странице: 1из 1

#include<iostream> using namespace std; void main() { float credit,cre1,cre2,cre3,cre4,cre5,gra,computer,program,data,discrete ,report,gp; cout<<"\n Enter the Total Credit Hour's

of Introduction to Computing = " ; cin>>cre1; cout<<"\n Enter the Obtained Grace of Introduction to Computing = "; cin>>gra; computer=cre1*gra; cout<<"\n Obtained Introduction to Computing Marks = "<<computer<<"\n"; cout<<"\n Enter the Total Credit Hour's of Introduction to Computing & P rogramming = "; cin>>cre2; cout<<"\n Enter the Obtained Grace of Introduction to Computing & Progra mming = "; cin>>gra; program=cre2*gra; cout<<"\n Obtained Introduction to Computing & Programming Marks = "<<pr ogram<<"\n"; cout<<"\n Enter the Total Credit Hour's of Database Management System = "; cin>>cre3; cout<<"\n Enter the Obtained Grace of Database Management System = "; cin>>gra; data=cre3*gra; cout<<"\n Obtained Database Management System Marks = "<<data<<"\n"; cout<<"\n Enter the Total Credit Hour's of Discrete Structure = "; cin>>cre4; cout<<"\n Enter the Obtained Grace of Discrete Structure = "; cin>>gra; discrete=cre4*gra; cout<<"\n Obtained Discrete Structure Marks = "<<discrete<<"\n"; cout<<"\n Enter the Total Credit Hour's of Report Writing Skills = "; cin>>cre5; cout<<"\n Enter the Obtained Grace of Report Writing Skills = "; cin>>gra; report=cre5*gra; cout<<"\n Obtained Report Writing Skills Marks = "<<report<<"\n"; credit=cre1+cre2+cre3+cre4+cre5; cout<<"\n Total Credit Hour's = "<<credit<<"\n"; gp=(computer+program+data+discrete+report)/credit; cout<<"\n Your GP is = "<<gp<<"\n"; getchar(); getchar(); }

Вам также может понравиться