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 sequence of instructions that transfers data from memory to an external I/O device by using channel 3 of the 8237 DMA controller. Transfer from 20000H-20FFFH.

C program to print L diagonal triangle: void main() {                 int i=0,j=0;                 int arr[rows][cols];                 for (i=0; i

Hi, Can i get a quote for my Programming assignment

Define the Volatile Keyword Qualifiers in C Language? The volatile keyword proceed as a data type qualifier and a volatile variable is for dynamic use. E.G. for data that is to

For this program, you are going to modify your previous program (program 3) so that it will now have a menu to see if the user wants to read the input from a file or interactively.

in a multilist organisation

Default Arguments A default argument is a value that is automatically assigned to a formal variable, if the actual argument from the function call is omitted. e.g. void

Compound Assignment Operators Apart from the binary and the unary arithmetic operators, we also have compound assignment operators. These are +=, -=, *=, /=, %=. Using these op

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec