Add to Favorites    Make Home Page 2926 Online
 Language Categories
 Source Codes Home Project Ideas New! Interview Questions FAQs Home ASP Home ASP Source Codes ASP Script Directory New! ASP .Net Script Directory New! ASP Interview Questions ASP FAQs ASP How Tos C Home C Source Codes C Script Directory New! C Interview Questions C FAQs C How Tos C++ Home C++ Source Codes C++ Script Directory New! C++ Interview Questions C++ FAQs C++ How Tos Java Home Java Source Codes Java Directory New! Java Interview Questions Java FAQs Java How Tos JavaScript Home JavaScript Directory New! JavaScript Source Codes JavaScript FAQs JavaScript How Tos COBOL Home COBOL Source Codes COBOL FAQs COBOL How Tos Pascal Home Pascal Source Codes Pascal FAQs Pascal How Tos PHP Script Directory New! Python Script Directory New! Perl & CGI Script Directory New! Flash Script Directory New! CFML Script Directory New! Remotely Hosted Scripts New! Tools & Utilities Directory New! XML Script Directory New! Best Programmers Amit Mathur Vishal Bhardwaj Deepesh Jain Vyom NetWork
 Our Services

Home » C++ Home » Beginners / Lab Assignments Home » To calculate percentile

A D V E R T I S E M E N T

Search Projects & Source Codes:

 Title To calculate percentile Author Ravi Mathur Author Email vyomworld [at] vyomworld.com Description Write a program for the problem: the array ofinetegers indicating the marks of the students isgiven, U have to calculate the percentile of thestudents aaccording to this rule: the percentile of astudent is the %of no of student having marks lessthen him. For eg:supposeStudent MarksA 12B 60C 80D 71E 30F 45percentile of C = 5/5 *100 = 100 (out of 5 students 5are having marks less then him)percentile of B = 3/5*100 = 60% (out of 5, 3 havemarkses less then him)percentile of A = 0/5*100 = 0%. Category C++ » Beginners / Lab Assignments Hits 443894 Code Select and Copy the Code #include #include void main() { clrscr(); int a[10],n,i,j; int percent; int count; cout<<" enter the size of array"; cin>>n; cout<<" enter the values"; for(i=0;i<=n-1;i++) { cout<<" a["<>a[i]; } for( i=0;i<=n-1;i++) { count=0; for(j=0;j<=n-1;j++) { if(a[i]>a[j]) { count=count+1; } } percent=(count*100)/(n-1); cout<<" the percentile of"<<"a["<

Related Source Codes

 Script Name Author Moving ball screen saver karlmarx The Classic Game of Snake & Ladder Lakshmi Narayana .A Railway seat reservation question which comes in sapient VyomWorld Send to folder ANIMESH SAHU Analog clock and calendar Nazia & Rida HIGH/LOW GAME MOLLY ARORA Data structure (stack Implimentation) Swapnil B Adsure Memory Game AnirudhSanyal Easy Calc Anirudh Sanyal GK Quiz Anirudh Sanyal Hangman Game Manish Jain Snakeman Manish Jain Full month Calendar Nigi Cursor shapes nigi Animated 3D car Aayush Awasthi,Delhi

A D V E R T I S E M E N T

Subscribe to SourceCodesWorld - Techies Talk
Email:

 Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home