Results 1 to 1 of 1
- 03-24-2009, 02:27 AM #1Member
- Join Date
- Mar 2009
- Rep Power
Can somebody help me in my assignment
hi can some one get me the codings for the problem below.Its an assignment
create a class containing a number of static methods for processing an array of marks which are scores ina test.each mark is an integer in the range 0 to 100
you will be provided with a class marks which has a method getmarks that returns an array for you to use in testing.
The class processmarks that you create will have the methods specified below.most will accept an array of marks as an arguement one will accept an array of characters.The return type should be appropriate for the returned value.
The max ,min and range methods will return the maximun mark,the minimum mark and the difference between the maximum and minimum marks respectively
The mean and stddev methods will return the mean and standard deviation of the set of marks .
The median method will return the median value of the set of marks.the medianvalue is the middle one when the values are placed in order.to obtain an ordered version of the marks you may use an appropriate sort method of the javas api's array class.if there is an even number of marks ,the middle value is taken as the average of the two values that are nearest to the middle
The mode method will return the mode of the set of marks ,which is the most commonly occuring mark.To find the mode,use an ordered version of the set of marks,as used for finding the median.if there is more than value that is most common,anyone of the most common values will do for the mode.
The grades method will return an array of characters,which are the grades corresponding to the integer marks in the array of marks.The grades are to be assigned using the following lower boundaries for the corresponding marks:for grade A,the lower boundary is 85;for grade B ,its 75;for gradeC;its 65,
for grade D,its 50 and E is the grade for all other marks.
the gradeDistn method will accept an array of characters which are the grades assigned for the array of marks,such as returned by the grades method.The gradeDistn method will return an array of integer values containing the distribution of grades ,which is the number of occurences of each grade in the assigned grades.The characters used for grades are fixed.The return array should provide the distribution inorder from grade A to grade E.
Test your processmarks class,either by providing test codein main method within that class or in separate class.The grades would be displayed 30 perline with a apace separator between grades.The grade distribution should be displayed in the form:
thanks ...can somone send me the solution ASAP
- By nanoo51969 in forum New To JavaReplies: 1Last Post: 03-23-2009, 10:41 PM
- By murr0508 in forum New To JavaReplies: 1Last Post: 02-26-2009, 10:31 PM
- By ljk8950 in forum AWT / SwingReplies: 2Last Post: 08-01-2008, 05:23 AM
- By ljk8950 in forum New To JavaReplies: 1Last Post: 07-31-2008, 08:29 AM
- By assamhammad in forum New To JavaReplies: 1Last Post: 11-06-2007, 09:35 PM