Wap avgerage score-assignment- standard deviation of student, C/C++ Programming

finds the average for all assignments for an individual student float getAverageForStudent(float scores[20][10], int student, int numAssignments) {  } 

// finds the average for all students for an individual assignment float getAverageForAssignment(float scores[20][10], int numStudents, int assignment) {  } 

// finds the standard deviation for all students for an individual assignment float getStandardDeviationForAssignment (float scores[20][10], int numStudents, int assignment) {  } 

// prints the table with all scores for all students for all assignments, including the

// averages and standard deviations void printScores(char students[20][50], float scores[20][10], int numStudents, int numAssignments) {  }


You may have more functions if you like, but you must have at least the four functions above and your main function.  Below is a sample execution of the program (user input is bolded):
 
How many students are there (between 1 and 20)? 4

How many assignments are there (between 1 and 10)? 3


Student name: Jeff  

Assignment 1: 100

Assignment 2: 100

Assignment 3: 100 

Student name: Mike

Assignment 1: 50

Assignment 2: 45

Assignment 3: 90


Student name: John

Assignment 1: 100

Assignment 2: 20
Assignment 3: 30  


Student name: Paul

Assignment 1: 20

Assignment 2: 20

Assignment 3: 0

Name  Assn1  Assn2  Assn3  Average

Jeff    100    100    100   100.00

Mike     50     45     90    61.67

John    100     20     30    50.00

Paul     20     20      0    13.33 

Avg   67.50  46.25  55.00    56.25

StdD  39.48  37.72  47.96    35.70  
 
Grading Criteria

0.5% prompting the user the correct number of times based on number of students and assignment.

0.5% printing the output formatted as shown 1.0% computing the average for each student correctly.

1.0% computing the average for each assignment correctly.

1.0% computing the standard deviation correctly.

1.0% for using at least 5 functions .

 

Posted Date: 2/14/2013 6:19:30 AM | Location : United States





Program of Declaring a function, I am looking for a program in C/C++. It would be great if anyone help me learn function in C++ language.

Well, I think that should not be too difficult. You can use this code.

Thanks for suggesting me this code, appreciate your effort.

Posted by | Posted Date: 2/14/2013 6:22:22 AM


Related Discussions:- Wap avgerage score-assignment- standard deviation of student, Assignment Help, Ask Question on Wap avgerage score-assignment- standard deviation of student, Get Answer, Expert's Help, Wap avgerage score-assignment- standard deviation of student Discussions

Write discussion on Wap avgerage score-assignment- standard deviation of student
Your posts are moderated
Related Questions
Of course it is C[i] = A[i] + B[i].It was a typing mistake,never mind. You just understand the concept. 27-1 b. for grain-size=1 n=A.length grain-size=1 r=n for

Define Multi File Program? While writing large programs we must divide programs up into modules. These would be separate source files and the main() function would be in one fi

ABC Car Dealership needs your help to update the ordering system. This car dealer is selling four types of vehicles: Sedan, Truck, SUV, and mini Van. And each type of vehicle can h

The ability to verify at run time the type of an object by using the typed operator or the dynamic_cast operator.

Explain  U s e r - D e f i n e d D a t a T y p es? C has Union and Structure as user-defined data types.  C++ has class which looks like structure with a


Op e r a t o r P r e c e d e n c e a n d A s s o c i a t i v e l y : T h e op e r a t o r p r e c e d e n c e a n d i

The code contains two built-in pitfalls. First one, if it executes in a member function for an static, extern or automatic object, the program will possibly crash as soon as the de

Step 1 Define the program headers and the variables      #include   #include   #include   #include void main()   {       char prompt;     float a,b,c,d,e;     floa

C program for bubble sort: void main() { int i,j,k,a[10],n; clrscr(); printf("How many values you want to enter\n"); scanf("%d",&n);  for(i=0;i  {  pri