please help me

Write your question here.
please help me to write this program my teacher told us to write this program and no one write it , it is difficlut

You are required to help a teacher to manage his class by developing a C++ program as per the following requirements:

The program should read the grades of 10 students for 4 courses CS140, CS240,CS340, and CS440 from the keyboard (e.g. cin) and store them in a two dimension arrayFor each student, you are required to calculate three values from his grades , namely:
mean (i.e. average)
median
range
The above values for each student should be stored in different array.
Once the calculation step is done , you should print all grades plus all statistics for each student.


and thank you for your cooperate
Last edited on
closed account (1vD3vCM9)
It's your job to listen in the class.
We won't help you just for homework.
I was listening very well in the class but this program is new for us we didn’t write any similar program in the lab
don’t be aggressive
I did this cod and i don’t know how to complete it to calculate the median and range
#include<iostream>

using namespace std;



int main()
{

double meanst1 , meanst2 , meanst3 ,meanst4 , meanst5 , meanst6 , meanst7 , meanst8 , meanst9 , meanst10 ;
double median ;
double range;
float marks[10][4]={0};

cout<<"\n Enter the marks of the the students : "<<endl;

for(int count1=0;count1<=9;count1++)
{
cout<<"\n Enter the marks of the student "<<count1+1<<
" :"<<endl;
cout<<"cs140=";
cin>>marks[count1][0];

cout<<"cs240= ";
cin>>marks[count1][1];

cout<<"cs340= ";
cin>>marks[count1][2];

cout<<"cs440 = ";
cin>>marks[count1][3];
}
Last edited on
Topic archived. No new replies allowed.