944,110 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1633
  • C RSS
Apr 7th, 2007
0

can anyone help me with this progam,and write the code for this problem?

Expand Post »
the problem is as follows:
write a program:the array of integers indicating the marks of the students is given.u have to calculate the percentile of the student according to this rule:the percentile of a student is the % of number of student having marks less than him.for example:
student marks
A 12
B 60
C 80
D 71
E 30
F 45
percentile of C=5/5*100=100
plz help me with the code,if u can code this,email me at << email snipped >>
Last edited by ~s.o.s~; Apr 7th, 2007 at 2:40 pm. Reason: Keep it on site.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sowmya nair is offline Offline
1 posts
since Apr 2007
Apr 7th, 2007
1

Re: can anyone help me with this progam,and write the code for this problem?

Allow me to help you by guiding you to this
pertinent link
Aia
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Aia is offline Offline
2,304 posts
since Dec 2006
Apr 7th, 2007
0

Re: can anyone help me with this progam,and write the code for this problem?

Aia is absolutely and positively correct. If we write the program for you then (1) we will not get the grade, you will and (2) you will learn nothing.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,961 posts
since Aug 2005
Apr 10th, 2007
0

Re: can anyone help me with this progam,and write the code for this problem?

Well its pretty simple..


1. Sort the array in ascending order

2. "Position of the Student"/"Total Num of students - 1 " *100
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ajaxjinx is offline Offline
14 posts
since Apr 2007
Apr 10th, 2007
0

Re: can anyone help me with this progam,and write the code for this problem?

[quote=sowmya nair;340340]the problem is as follows:
write a program:the array of integers indicating the marks of the students is given.u have to calculate the percentile of the student according to this rule:the percentile of a student is the % of number of student having marks less than him.for example:
student marks
A 12
B 60
C 80
D 71
E 30
F 45
percentile of C=5/5*100=100
plz help me with the code,if u can code this,email me at << email snipped

hey dude i cant write the source code for u but can definitely tell u the logic:
m sure u must be knowing th ebasics of c!
here goes:
first input all the marks in a array then, u can compare each key with the highest marks in the class(thats how percentile is calculated)(in this case its marks of student c) n then print each perwsons mark!
that for example would be percentage of b wud be60/80)*100=75%
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jimmymerchant is offline Offline
3 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: getche()
Next Thread in C Forum Timeline: i need to know





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC