A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • 5 years ago

if anyone knows how to use Java please let me kno. there is noone in the chat for comp sci and i'm a math major with this for a prereq

  • This Question is Closed
  1. dumbcow
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    its been awhile, im very rusty is this like a csc100 class?

  2. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    intro to computer programming; Starting out with Java ours is labeled csci2000

  3. dumbcow
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yeah thats what i meant whats your question

  4. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You could have just posted the question in Comp Sci and waited a bit. I do tend to check in there now and then.

  5. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    well there was literally NOONE in there so i felt i would be talking to myself but hold on and i will copy and paste it

  6. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Sometimes talking to yourself is helpful ;p

  7. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    or do you have something to open it if i send the java file and i'll copy and paste what were doing. i dont kno what i'm doing wrong

  8. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    haha funny funny LMAO

  9. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You can either post it to dpaste.com (my preference) or attach it to the question.

  10. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i posted it there under my screenname on here.... the instructions are Your program should output each candidate’s name, the number of votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the competition. Sample output is as follows: Finalist Votes Received % of Total Votes Johnson 5000 25.91% Miller 4000 20.72% Duffy 6000 31.09% Robinson 2500 12.95% Anthony 1800 9.33% Total 19300 The winner of the competition is Duffy. Specifications and Notes: Use the file specified above for input and the console for output. Main should primarily call methods to perform tasks. You should AT A MINIMUM have methods that do the following: 1. getVotes which reads the names and votes into parallel arrays 2. sumVotes which accepts the array of votes, a count of how many competitors were read in and returns the total votes 3. processVotes which accepts the array of votes, a count of how many items are in the array, an integer representing the total votes and fills a second array with the percentage votes for each finalist 4. determineWinner which determines the winner of the competition – you decide what needs to be sent in and returned.

  11. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    this is the file on here too

  12. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    When you post to dpaste.com you need to post here with the link to the page.

  13. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    http://dpaste.com/535088/

  14. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks =)

  15. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    sorry never seen this site before

  16. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    No thank YOU!!!!!

  17. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You don't seem to have any of the methods they describe above, and you're not actually storing the votes as you read them in.

  18. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You should have a method called getVotes that reads the votes from a file

  19. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'm not sure what your input file looks like so I can't tell if you're doing that right, but it seems as though you are except you're not doing anything with the number you read in from the file.

  20. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i kno the way it is is the only way i could get it to print the stuff from the file. i can copy and paste the plain file text

  21. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Sure. But fundamentally it has a name, and a string right?

  22. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Johnson 5000 Miller 4000 Duffy 6000 Robinson 2500 Anthony 1800

  23. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    err name and number

  24. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i completely suck at this and have no idea how i have gotten as far as i have in this class with a b but methods and arrays(ie these last two sections ) are kicking my butt

  25. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok, well you can think about arrays as variables that hold many values. In this case you'll want to have 2 arrays one for the name, and the other for the number of votes that candidate recieved.

  26. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Then you can organize them such that the i-th element in the name array corrisponds to the i-th element of the votes array.

  27. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so they shouldnt be in the same file?

  28. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'm not talking about the file, I'm talking about your variables.

  29. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    oh, before i go and erase all of what i've done, is there any part of it that is correct? that i should keep?

  30. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Some of it is, but before you do anything lets talk about what your plan is.

  31. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    http://www.dabbleboard.com/draw?b=Guest662530&i=0&c=bb4c6b8835d51e52b82fa4015e989d4d192e8250 Join here so we can also draw some pictures.

  32. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ok

  33. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok so we have 2 arrays. One with names, one with votes.

  34. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    okay i am in there under the name twignamanda

  35. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I don't see you anymore

  36. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i'm here and on that how do i invite you what name?

  37. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    No, just click the link I have above.

  38. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    You started your own.

  39. anonymous
    • 5 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ohhhhh ok my bad i thought i had to be on it so yea i signed up but clicking now

  40. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.