Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  MemberlistMemberlist  UsergroupsUsergroups  Log in  India NewsIndia News  
Keywords
2008 2009 MODEL practical 2011 english question result sample Icse SYLLABUS Exam java class board table 10th computer Results PAPERS maths time programs CHEMISTRY timetable TEST
Latest topics
» optical fibre????
Fri May 18, 2012 8:54 pm by mahnoorbloch

» physics............
Fri May 18, 2012 8:43 pm by mahnoorbloch

» magnetism...........chapter
Fri May 18, 2012 8:33 pm by mahnoorbloch

» ac generator
Fri May 18, 2012 7:46 pm by mahnoorbloch

» Great website for maths
Sun May 06, 2012 9:39 am by mahnoorbloch

» BlueJ prog
Tue Apr 24, 2012 11:53 am by arryaan

» GBTU SEE 2012 22 April
Sat Apr 21, 2012 11:17 am by shreya94

» GBTU SEE or UPTU SEE 2012 Expected cutoff marks
Sat Apr 21, 2012 11:16 am by shreya94

» GBTU SEE 2012 UPTU SEE 2012 Solutions Answer key discussion
Sat Apr 21, 2012 11:15 am by shreya94

Top posters
abhas
 
Anu..i luv icse...:)
 
G-7
 
siya
 
Candy
 
jOhNy
 
Apurva
 
WinRrule
 
ambili
 
saif
 



Search if you can't find it here

Java Programs isc icse bluej questions for practice

View previous topic View next topic Go down
AuthorMessage
STJOHNS SCHOOL




PostSubject: Java Programs isc icse bluej questions for practice Tue Jan 19, 2010 6:55 pm

Q1.
A class
performance is defined, for finding out the mode and the
modefrequency.


mode
= the most frequently occurring mark in the class. If two or more
marks occur equally frequently then the highest of these marks is the
mode


modefrequency:
- frequency at mode



you
can make following assumptions:- the class has 10 students, the
maximum marks anyone can get are 100 and minimum is 0, all the
student marks are whole numbers.


Important:-
You are not allowed to sort the marks.


Some
of the member functions/methods of performance are given below:


Class
name Performance

Data
members : marks[ ] an integer array to store the marks of 10
students. mode – to store the mode


freqatmode-
to store the frequency at node


Member
functions :


Performance()
Constructor


Void
readmarks()

for reading the marks into the array


int
getmode()

for finding and returning the mode


int
getfreqatmode()

for returning the frequency at mode


void
calcmodeandfrequency()

a single function that calculates both mode and


frequency
at mode. Write all the functions and write main() also.
Back to top Go down
View user profile

Java Programs isc icse bluej questions for practice

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: ISC :: ISC 2010 [Class xii] :: ISC 2010 [Class xii]-