02-26-2020, 12:51 PM
I have a couple of questions about the final assignment. Not the coding part but more the format/structure that they would like it in. The description is very ambiguous or maybe I'm just missing something.
I've submitted multiple support tickets asking for clarification but still have had no reply. That was 2 weeks ago.
I decided to submit my assignment as one program that first stored the data in the 2D Array and then after prompting user, displaying data etc, it went on to transferring that data into a Hashmap for part 2 etc.
I got a very low grade with very generic feedback along the lines of 'incorrect solution'. Of course, I've asked for further clarification but I'm not holding my breath.
If anyone could give insight on how you think this assignment should be submitted (especially if you've completed the course), that would be very helpful. Again, I'm not seeking help with the programming or the code, just the format or structure. Should I be submitting two completely separate programs, i.e two different java projects?
Project spec below:
Thanks in advance
I've submitted multiple support tickets asking for clarification but still have had no reply. That was 2 weeks ago.
I decided to submit my assignment as one program that first stored the data in the 2D Array and then after prompting user, displaying data etc, it went on to transferring that data into a Hashmap for part 2 etc.
I got a very low grade with very generic feedback along the lines of 'incorrect solution'. Of course, I've asked for further clarification but I'm not holding my breath.
If anyone could give insight on how you think this assignment should be submitted (especially if you've completed the course), that would be very helpful. Again, I'm not seeking help with the programming or the code, just the format or structure. Should I be submitting two completely separate programs, i.e two different java projects?
Project spec below:
Code:
Part 1: Sorting Arrays
Develop a program that asks the user to enter a capital for a U.S. state. Upon receiving the user input,
the program reports whether the user input is correct. For this application, the 50 states and their
capitals are stored in a two-dimensional array in order by state name. Display the current contents of
the array then use a bubble sort to sort the content by capital. Next, prompt the user to enter answers
for all the state capitals and then display the total correct count. The user's answer is not case-sensitive.
Part 2: Sorting & Searching HashMap
Now revise the code to store the pairs of each state and its capital in a Map using the HashMap function.
Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree
for storage. Next, your program should prompt the user to enter a state and it should then display the
capital for the state.
Thanks in advance