hello.i have a homework in java wich asks to create this program:
there would be n persons who are going to rate songs.
for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs and they are constant.at the end pint the most 10 rated song...
thnx :)
ndrichim 0 Newbie Poster
Recommended Answers
Jump to Postand to be a bit more specific: the amount of help you will receive also depends on how you define "help me build it".
btw, yes, yes we can, but we are not going to spend our time making your teacher believe you know what you are doing without seeing …
Jump to Postbig no.
you can't get info from 'a void'. a method that has void as return type, returns nothing.you'll need to use get- and set-methods, and I assume the names by themselves are quite self-explaining
Jump to Postdo you have any experience with creating objects?
step 1: create an analysis (just write down what your app has to do)
step 2: underline all the nouns with red
step 3: underline all the verbs with bluethe red underlined words are the objects you'll have to create
…
Jump to Postfirst, you need to create an object, it's that object's constructor and method's you're supposed to use.
and no, you can not create methods and constructors within your main method.
Jump to Postusing arrays at all is a terrible design decision... Should use a List or maybe a Set.
All 17 Replies
DavidKroukamp 105 Master Poster Team Colleague Featured Poster
ndrichim 0 Newbie Poster
DavidKroukamp 105 Master Poster Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
ndrichim 0 Newbie Poster
DavidKroukamp 105 Master Poster Team Colleague Featured Poster
ndrichim 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
ndrichim 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
ndrichim 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
Philippe.Lahaie 42 Posting Whiz in Training
stultuske 1,116 Posting Maven Featured Poster
Philippe.Lahaie 42 Posting Whiz in Training
jwenting 1,905 duckman Team Colleague
Philippe.Lahaie 42 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.