Need help getting started on a program
Im new to Java programming and new to the forum.
I have a practice program in preparation for an exam and I need some help. My main problem when Im programming is usually the logic behind what needs to be done and how to start it.
Here is the task:
Basically I have a txt file with the following information:
(state, name of candidate1, pledged delegates for candidate1, candidate 2, pledged delegates for candidate 2).
The file is 44 rows and 5 columns. I have to prepare a report with the following information:
1.Read and display the contents of the file.
I have completed this part
2.Compute and display the total delegates per candidate.
3. Determine and list the states won by each candidate based on the delegates.
4.Determine and display any states where there were ties.
5.Compute the number of delegates each candidate needs to become the democraetic nominee for president
6. arrange each candidate's delegates in order from highest to lowest delegate count and display the state and number of delegates. Be sure to label the information by candidate.
7.Determine and display the candidate with the most delegates.
If i could just get a simple jumpstart on how to tackle each of these i would greatly appreciate it