02-15-2020, 11:09 AM
(02-15-2020, 03:58 AM)Merlin Wrote:(02-14-2020, 09:08 PM)JayAllDay Wrote:(05-30-2019, 06:18 PM)armstrongsubero Wrote: Just finished the data structures with study.com and I am amazed with the quality abd amount of information. I really liked it, it wasnt too easy but an awesome course overall and I highly recommed it. As soon as they are finsihed reviewing the video and giving my score for the assignment I'll be done! Thank you study.com for intro to programming and data structures as soon as TESU accepts them I'll be done with my CS degree.
Hey, I know this thread is a little older but I'm trying to get a little bit of clarification on the assignment.
I emailed SDC and even used one of my "ask a tutor" questions and still haven't heard back.
Please tell me if I'm interpreting the first part correctly...
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.
1. The user is to enter the capital for each state (50 prompts)
2. Print out the content of the array, in other words, all the states and their capitals (50)
3. Bubble sort array by capital
4. User to enter answers for all capitals (50 prompts)
5. Display how many answers user got correct
It sounds like the 2d array with the capitals is static data that is pre-entered, not prompted, but the rest seems right. I was going to call out the case insensitive string comparison requirement, but MrBossman already noted that.
This sounds like a pretty straight forward data structure/algorithm question. Out of curiosity, is this the only problem to solve, or are there others? I need to bone up on some of my old school DS&A fundamentals and I am considering picking up some of these new CS courses at SDC for some extra credits. Might come in handy if I ever decide to go back for a CS degree or something.
Thanks Merlin. Yeah I also understood it to be that all the data is pre entered, the part that was kind of not clear was whether you need to ask the user 50 times to 'enter a capital for a state'.
There is a second part to solve. The actual programming for their assignments is not hard, they're just poorly worded in my opinion, and unfortunately when you submit an assignment, the feedback they give is very generic, for example "Program does not meet specifications". They have a "ask the tutor" feature but that is equally poor.