A community for students.
Here's the question you clicked on:
 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
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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0its been awhile, im very rusty is this like a csc100 class?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0intro to computer programming; Starting out with Java ours is labeled csci2000

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0yeah thats what i meant whats your question

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You could have just posted the question in Comp Sci and waited a bit. I do tend to check in there now and then.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0well 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Sometimes talking to yourself is helpful ;p

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0or 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0haha funny funny LMAO

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You can either post it to dpaste.com (my preference) or attach it to the question.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i 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.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0this is the file on here too

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0When you post to dpaste.com you need to post here with the link to the page.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0sorry never seen this site before

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You 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.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You should have a method called getVotes that reads the votes from a file

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'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.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Sure. But fundamentally it has a name, and a string right?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Johnson 5000 Miller 4000 Duffy 6000 Robinson 2500 Anthony 1800

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i 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

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Ok, 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.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Then you can organize them such that the ith element in the name array corrisponds to the ith element of the votes array.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0so they shouldnt be in the same file?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I'm not talking about the file, I'm talking about your variables.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0oh, before i go and erase all of what i've done, is there any part of it that is correct? that i should keep?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Some of it is, but before you do anything lets talk about what your plan is.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0http://www.dabbleboard.com/draw?b=Guest662530&i=0&c=bb4c6b8835d51e52b82fa4015e989d4d192e8250 Join here so we can also draw some pictures.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Ok so we have 2 arrays. One with names, one with votes.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0okay i am in there under the name twignamanda

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I don't see you anymore

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0i'm here and on that how do i invite you what name?

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0No, just click the link I have above.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0You started your own.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ohhhhh ok my bad i thought i had to be on it so yea i signed up but clicking now
Ask your own question
Sign UpFind more explanations on OpenStudy
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
 Engagement 19 Mad Hatter
 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.