Major : TMD
NIM : 49012081
Hello teacher below is my video and code program to say about Create Code Program about Average Student.
/*Average of Student
Name : Om Chanlyta
NIM : 49012081
======================*/
#include<iostream>
using namespace std;
double Total;
double Db,C,CC,Arc,Net,TotalAverage;
int FunctionAverage(double TotalAverage)
{
cout<<"Please input point of C++ program"<<endl;
cin>>CC;
cout<<endl;
cout<<"Please input point of Database"<<endl;
cin>>Db;
cout<<endl;
cout<<"Please input point of C progarm" <<endl;
cin>>C;
cout <<endl;
cout<<"Please input point of Architicture" <<endl;
cin>>Arc;
cout <<endl;
cout<<"Please input point of Network" <<endl;
cin>>Net;
cout <<endl;
TotalAverage = (CC+Db+C+Arc+Net)/5;
cout<<"Average point of student are epual"<<TotalAverage<<endl;
return TotalAverage;
}
int main()
{
int Amount,i,NIM;
char Name[20];
cout<<"Please Input Amount of Student \n";
cin>>Amount;
do{
cout<<"===============================================\n\n";
for(i=1; i<=Amount; i++){
cout<<"Name : ";
cin>>Name;
cout<<endl;
cout<<"NIM : ";
cin>>NIM;
cout<<endl;
Total = FunctionAverage(Total);
if(Total<=100 && Total>=50)
{
cout<<"\n You are Pass" <<endl<<endl;
}
else if(Total<50 && Total>=0)
{
cout<<"\n You are False" <<endl<<endl;
}
else{
cout<<"Poing that you input is wrong" <<endl;
cout<<"Please input again" <<endl<<endl;
}
cout<<"============================================\n\n";
}
}while(Total>100);
system("pause");
return 0;
}
Below is my link to this video in youtube :
http://www.youtube.com/watch?v=ktYpbmyiqJE&feature=youtu.be
No comments:
Post a Comment