alptium / branko.spalovic

MIT License
0 stars 0 forks source link

Elite Sports Team Selector #5

Open lespabrandzulic82 opened 6 years ago

lespabrandzulic82 commented 6 years ago

hey @valentinacupac ,I have done this task, could you take a look and let me know if I need to make some changes?

valentinacupac commented 6 years ago

@lespabrandzulic82,

  1. There's no need for + '\n', instead use System.out.println (because println means print line, just just have multiple of those statements)
  2. Please check my comments regarding #4
  3. Please write the logic here in plain English too, so that I can verify if it corresponds to the program logic.
lespabrandzulic82 commented 6 years ago

I have changed my code based on comments above. The logic is following: Based on information which each candidates enters(age, position in team, height, number of assistentions, number of jumps and average score per game) system accepts or rejects his application. There are some criteria for each position-for position play: player needs to be older than 25 years, shorter than 200 cm and needs to have more than 6 assistentions per game in last season; for position small forward: player needs to be older than 20 years, taller than 190 cm and needs to have more than 12 points per game in last season; for position center: player needs to be older than 28 years, taller than 205 cm and needs to have more than 7 jumps per game in last season. @valentinacupac

valentinacupac commented 6 years ago

@lespabrandzulic82, it's better now, but still some improvements:

  1. In your logic above, you wrote for example "older than 25 years" which in code is written as "> 25". However, if you wanted it to be ">= 25" then the sentence should be "25 years or older". Please clarify which one you meant, this is really important later for requirements analysis.
  2. Fix formatting "int position= sc.nextInt();" (space issue)
  3. Fix double space "What is your average number"
  4. I still see '\n', please change to System.out.println
  5. Regarding brackets () in your if statement, see https://github.com/alptium/valentina.cupac/wiki/03.-Hello-World
lespabrandzulic82 commented 6 years ago

I have changed my code based on logic above, I put ">" for years now. Regarding other comments, it is corrected, too. @valentinacupac

valentinacupac commented 6 years ago

@lespabrandzulic82:

  1. Space issue needs to be fixed in other parts where there are operators, e.g. Scanner sc= (see https://github.com/alptium/valentina.cupac/wiki/03.-Hello-World comment 15)
  2. Spelling namber, Unfortunatelly, asist
  3. https://github.com/alptium/valentina.cupac/wiki/03.-Hello-World comment 48
lespabrandzulic82 commented 6 years ago

In the basketball dictionary, it says assist, but I have put in the assistance's. What do you mean spelling number ? @valentinacupac

valentinacupac commented 6 years ago

@lespabrandzulic82, thanks for the clarification and update.

Remaining points:

lespabrandzulic82 commented 6 years ago

Ok, I corrected it. Can you see the version with OOP, if it needs to be done differently? I had a dilemma about the scanner, should It go to the Player class maybe...? @valentinacupac

valentinacupac commented 6 years ago

@lespabrandzulic82, correct now, closing ticket.

P.S. For OOP version, that should be a separate ticket.

valentinacupac commented 6 years ago

Hi @lespabrandzulic82,

I've added a new requirement for this task for everyone, add support for multiple candidates, so usign ArrayList.

Thanks, Valentina

lespabrandzulic82 commented 6 years ago

I have made array list for this project and merged two projects in one. Please take a look. Thanks. @valentinacupac

valentinacupac commented 6 years ago

@lespabrandzulic82, as can be seen here https://github.com/alptium/branko.spalovic there are now 3 projects for Elite Sports Selector, please re-check your merge.

lespabrandzulic82 commented 6 years ago

now i have just one project !@valentinacupac