## Program to calculate students marks, C/C++ Programming

Assignment Help:

#include
using namespace std;
void print(int marks_arr[],int cnt)
{
int ind[cnt];
int i=0;
int j=0;
int k=0;
int s=0;
for(k=0;k {
ind[k]=0;
}
int cnt1=0;
for(i=0;i {
ind[cnt1]=1;
for(j=i+1;j {
//cout< if((marks_arr[i]==marks_arr[j])&&(marks_arr[i]!=-1))
{
ind[cnt1]=ind[cnt1]+1;
marks_arr[j]=-1;
//if(marks_arr[j]==-1)
//{
//break;
//}

}
}
cnt1++;
}
for(s=0;s {
if(marks_arr[s]!=-1)
{
cout<<"\n"< }

}

}
{
int mark;
cout<<"Enter the mark:";
cin>> mark;
return mark;
}
float avg(int mark[],int c)
{
int i,sum=0;
float average;
for(i=0;i {
sum= sum+mark[i];
}
average=sum/c;
return average;
}

int marks_arr;
int main()
{
static int count=0;
//int marks_arr,
int choice,i,ch,searchelement,totalcount,total;
float val;

do
{
cout<<"\n 2. Display student marks";
cout<<"\n 3. Find average of all marks";
cout<<"\n 4. Calculate the standard deviation";
cout<<"\n 5. Delete a student mark";
cout<<"\n 6. Search all marks ";
cout<<"\n 7. Print all marks";
cout<<"\nEnter choice : ";
cin>>choice;
switch(choice)
{
case 1:
{
count++;
break;
}
case 2:
{
for(i=0;i {
cout< }
break;
}

case 3:
{
val= avg(marks_arr,count);
cout<< "The avg of total marks is: "< break;
}
case 4:

case 5:

case 6:
{
cout<<"\n Enter the mark to search:";
cin>>searchelement;
totalcount=0;
for(i=0;i {
if(marks_arr[i]==searchelement)
{
totalcount=totalcount+1;
}
}
cout<<"No of times the element is present : "< break;
}
case 7:
{
print(marks_arr,count);
}
}
cout<<"\nContinue [0-yes / 1-no] :";
cin>>ch;
}while(ch!=1);
}

#### Develop a motion sensor in altera control, Develop a Motion sensor in Alter...

Develop a Motion sensor in Altera control Project Description: I want a project written in c using Altera eclipse development tool, that controls a motion sensor ( SRF05 ) fr

#### Html, world wide web commands

world wide web commands

#### Define reference?, A: This is a name that acts as an alias, or alternative ...

A: This is a name that acts as an alias, or alternative name, for a beforehand defined variable or an object. prepending variable along with "&" symbol makes it as reference. fo

#### C starup code , how c program starts executing?

how c program starts executing?

#### Array, array itself is a pinter.explain

array itself is a pinter.explain

#### C, algo of stack using two queue

algo of stack using two queue

#### It/218.., Write a program that does the following: Calculates the Velocity ...

Write a program that does the following: Calculates the Velocity and Momentum of an object. The formula for the velocity is V=d/t and the formula Momentum is m=mass*velocity. Your

#### If statement, Write a program to input two integers. If they are equal disp...

Write a program to input two integers. If they are equal display "The numbers are equal". Otherwise display a message if the first is a multiple of the second or if it is not a mul

#### Working with files in cpp, Operation Files 2.1. Your program should open an...

Operation Files 2.1. Your program should open and read the file specified by the first command line argument of the program. 2.2. The first line of the file contains an integer

#### C program to maintain database of employees, Aim: To implement a program t...

Aim: To implement a program to maintain information of employees in an educational institute using inheritance. Code:                       class staff {  