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

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 {
int cnt1=0;
for(i=0;i {
for(j=i+1;j {
//cout< if((marks_arr[i]==marks_arr[j])&&(marks_arr[i]!=-1))

for(s=0;s {
cout<<"\n"< }


int add()
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];
return average;

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

cout<<"\n 1. Add student marks";
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 : ";
case 1:
case 2:
for(i=0;i {
cout< }

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:";
for(i=0;i {
cout<<"No of times the element is present : "< break;
case 7:
cout<<"\nContinue [0-yes / 1-no] :";

Posted Date: 3/16/2013 1:31:39 AM | Location : United States

Related Discussions:- Program to calculate students marks, Assignment Help, Ask Question on Program to calculate students marks, Get Answer, Expert's Help, Program to calculate students marks Discussions

Write discussion on Program to calculate students marks
Your posts are moderated
Related Questions
#write a program that counts the number of occurances of the string in the n-th padovan string p(n)

Differentiate between a template class and class template in C++? Ans) Template class: A generic definition or a parameterized class not instantiated until the client gives the

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: ???• Each program must start with ''{'' and end with '

answer for tcs is working question

input marks of c and c++ if c grater than equal to 50 grater than 50 you are pass if c greater than equal to 50 c++ less than 50 than supplementry c++ if c less then 50 and c++ gra

Problem Description Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new techn

how do i write a c++ program that will input a number and output its factorial using the while loop

Explain zero based addressing. - Array subscripts always start at zero. - These subscript values are used to identify elements in the array. - As subscripts start at 0, a