Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
project
#include <iostream> #include <string> #include <string.h> using namespace std; void stgrade ( double arg [] , int a , arc[][i] ){ int c; cout<<"how many coruses do want to enter grades in ?"; cin>>c; for (int t=0;t<c;t++) { cout<<"Course #"<<j+1<<":"; for(int f=0;f<i;f++){ cout<<"enter your grade for student "<<f+1<<":"endl; cin>>arc[t][f];} cout<<endl;} /* for(int i=0;i<a;i++){ int p=0; arc[p][i]=arg[i];}*/ void grAv (int arc [][i] , int b ) { int c; double sum=0.0,avg=0.0; cout<<"choose course to print grade and get average:"; cin>>c; cout<<"grades for this course is : "<<endl; for (int t=0 ; t<c ; t++ ){ for(int j=0;j<i;j++){ cout<<arg[j] ; sum+=arg[j];} avg=sum/i; cout<<"The average for this course is : "<<avg; } int main (){ char x; int i,j; cout<<" >>>>> Student System <<<<< "<<endl<<endl; cout<<"Enter number of students : "; cin>>i; cout<<"Enter number of courses : "; cin>>j; string arn[i]; int arc[j][i]; double arg [i] ; do { cout<<">>>>> Please choose a service : "<<endl; cout<<">>>>> A- Add a student’s grade in a course."<<endl; cout<<">>>>> B- Print grades for a certain course and the average of students’ grades in this course. "<<endl; cout<<">>>>> C- Print the grade letter for all courses of a certain student."<<endl; cout<<">>>>> D- Update the grade of a student in a certain grade."<<endl; cout<<">>>>> E- Delete a certain mark for certain student."<<endl; cout<<">>>>> F- Exit."<<endl; cin>>x; switch (x){ case 'A' : case 'a' : stgrade (arg , j, arc ,i); cout<<endl<<endl<<endl; break; case 'B' : case 'b' : grAv ( arc , j); cout<<endl<<endl<<endl; break; case 'C' : case 'c' : cout<<"cccccccccccccccccccccccc"<<endl<<endl<<endl; break; case 'D' : case 'd' : cout<<"ddddddddddddddddd"<<endl<<endl<<endl; break; case'E': case 'e': cout<<"eeeeeeeeeeeeeeeee"<<endl<<endl<<endl; case 'F': case 'f': cout<<"fffffffffffffffffff"<<endl<<endl<<endl; } } while (x!='f' && x!='F'); }
run
|
edit
|
history
|
help
0
Wygner aprendizado
zeroout
Zahra_matrix
c++
TempQuickDoubly
derivative
Projekt misker
Cley
lab17feb22x4B.cpp
MergeDoubLinArr