Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Geethanjali Vidyalaya: Investigatory Project Computer Science Marks Mangement

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

GEETHANJALI VIDYALAYA

INVESTIGATORY PROJECT
COMPUTER SCIENCE
MARKS MANGEMENT

NAME - ABHIRATH S PADMAN


CLASS - XII-A
ROLL NO -
CERTIFICATE
This is to certify that ABHIRATH S PADMAN of class XII of
GEETHANJALI VIDYALAYA, BANGALORE, KARANATAKA;
has successfully completed his computer project file.

I certify that this project is up to my expectation and as per the


guidelines issued by the CENTRAL BOARD OF SECONDARY
EDUCTION (CBSE) of All India Senior School Certificate
Examination (AISSCE) 2019-2020

EXTERNAL EXAMINER INTERNAL EXAMINER

INSTITUTION STAMP
INDEX
 Acknowledgement

 Introduction

 System Requirements
 Salient Features
 Scope Of Improvement
 Code

 Output

 Bibliography
ACKNOWLEDGEMENT

I would like to sincerely and profusely thank my


computer teachers Mrs. LEKSHMI P NAIR and Mrs.
KANIKA KATNA for her able guidance and vital
support in completing my project. Her suggestion
and her instruction have served as the major
contributor towards the completion of the project.
We owe a great many thanks to many people who helped
and supported us during the completion of this project.
We would also thank our institution and our faculty
members without whom this project would have been a
distant reality. We also extend my heartfelt gratitude to
my family and well-wisher.
INTRODUCTION
The following program creates a data type student
which includes the following members:
1. Name
2. Roll No.
3. Marks in 5 subjects
4. Total
5. Average
6. Grade
It arranges the students in ascending order of total
marks obtained.
It also finds the subject toppers and overall topper.
SYSTEM REQUIREMENTS
1. Main processor: Pentium III and above.
2. Hard disk: 1GB.
3. RAM: 1GB.
4. Operating system: Windows XP and above.

5. Compiler: Turbo C++/Dev C++/Code blocks


etc.
6. Language: C++.
SALIENT FEATURES
1. The program is compact.
2. The program is edited for errors.
3. The program can be run on many
platforms.
4. The program is structural.
5. The program is user friendly.

SCOPE OF IMPROVEMENT
1. The program can be made simpler.
2. Comments can be used in the program.
3. The statements in the program can be
indented.
4. Blank lines and blank spaces can be used in
the program.
CODE
#include<iostream.h>
#include<conio.h>
int n;
struct student
{charname[20];
int rollno;
int marks [5];
int total;
int average;
char grade;
};
int calctotal(student s1)
{
int i,sum=0;
for(i=0;i<5;i++)
{ sum+=s1.marks[i];
}
return sum;
}
int calcavg(student s1)
{
int avg=s1.total/5; return avg;
}
char calcgrade(student s1)
{if (s1.total>400) return 'A'; else
if(s1.total>300) return 'B'; else
if(s1.total>200) return 'C'; else
if(s1.total>100) return 'D'; else return
'E';
}
int main()
{ clrscr();
student s[20],tmp;
int i,j,k,q,z,index[5],max[5]={0,0,0,0,0};
cout<<"Enter the number of
students:"<<endl; cin>>n; for(i=0;i<n;i++)
{
cout<<"Enter the details of
student"<<i+1<<"\n";
cout<<"Name:"; cin>>s[i].name; cout<<"Roll
number:"; cin>>s[i].rollno; cout<<"Marks:-
"<<endl;
for(j=0;j<5;j++)
{
cout<<"Subject"<<j+1<<":";
cin>>s[i].marks[j];
}
s[i].total=calctotal(s[i]);
s[i].average=calcavg(s[i]);
s[i].grade=calcgrade(s[i]);
}
for(i=0;i<n;i++)
{ for(k=0;k<5;k++)
{ if(s[i].marks[k]>max[k])
{ max[k]=s[i].marks[k]; index[k]=i;
}
}
}
for(j=0;j<n-1;j++)
for(i=0;i<n-1-j;i++)
{ if(s[i].total<s[i+1].total)
{ tmp=s[i]; s[i]=s[i+1]; s[i+1]=tmp;
} }
cout<<"The sorted list is:-\n";
for(q=0;q<n;q++)
{
cout<<"Student"<<q+1<<"details:\n";
cout<<"Name:"<<s[q].name<<endl;
cout<<"Roll number:"<<s[q].rollno<<endl;
cout<<"Marks attained:-\n";
for(z=0;z<5;z++)
cout<<"Subject"<<z+1<<":"<<s[q].marks[
z]<<endl;
cout<<"Total="<<calctotal(s[q])<<endl;
cout<<"Average="<<calcavg(s[q])<<endl;
cout<<"Grade="<<calcgrade(s[q])<<endl;
}
cout<<"The toppers are:-"<<endl;
for(i=0;i<5;i++)
{
cout<<"Subject"<<i+1<<":";
cout<<s[index[i]].name; cout<<endl; }
cout<<"The overall topper is
"<<s[0].name<<endl; getch();
return 0;
}
OUTPUT
BIBLIOGRAPHY
1. www.google.com
2. www.wikipedia.com
3. Computer science with C++ by Sumita Arora for
class 12.

You might also like