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

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 1
Reputation: sowmya nair is an unknown quantity at this point 
Solved Threads: 0
sowmya nair sowmya nair is offline Offline
Newbie Poster

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

 
0
  #1
Apr 7th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2,048
Reputation: Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of 
Solved Threads: 179
Aia's Avatar
Aia Aia is offline Offline
Postaholic

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

 
1
  #2
Apr 7th, 2007
Allow me to help you by guiding you to this
pertinent link
"If it moves, tax it. If it keeps moving, regulate it, and if it stops moving, subsidize it" - Ronald Reagan
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,646
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1498
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

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

 
0
  #3
Apr 7th, 2007
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 14
Reputation: ajaxjinx is an unknown quantity at this point 
Solved Threads: 0
ajaxjinx ajaxjinx is offline Offline
Newbie Poster

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

 
0
  #4
Apr 10th, 2007
Well its pretty simple..


1. Sort the array in ascending order

2. "Position of the Student"/"Total Num of students - 1 " *100
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 3
Reputation: jimmymerchant is an unknown quantity at this point 
Solved Threads: 0
jimmymerchant jimmymerchant is offline Offline
Newbie Poster

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

 
0
  #5
Apr 10th, 2007
[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%
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1389 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC