02-27-2021, 04:37 PM
(02-27-2021, 02:30 AM)LevelUP Wrote:(02-26-2021, 09:59 PM)Pats20 Wrote: In I am working on the assignment for study.com data structures. I’m confused on what they’re asking for. 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.
- display the array of 50 states and their capitals.
- confused here, what am i bubblesorting?
- also confused , is the prompt suppose to ask for the capital or the state? thanks
You think the Data Structures assignment is hard, wait till you get to Computer Architecture.
Example of the Computer Architecture assignment:
"This assignment is for the Computer Architecture course though off-topic let's talk about Chinese and how there are 100,000 different symbols to the Chinese language and that the Chinese have a rich culture and unique clothing.
Now that you read the above sentence, you should now be fluent in Chinese so please make a 10 minute speech in Chinese talking about Computer Architecture while dressed in Chinese clothing that you custom made by hand. And just for fun do some authentic Chinese dances."
LOL yeah pretty much, that one I stopped and will come back to last. I'm also currently working through the Data Structures assignment, I am at the bubble sorting part too. I can partly answer your question so far.
2. You were supposed to have already added the states and capitals to the array ordered alphabetically by state, so you are re-sorting the array alphabetically by capital now (this is what I am working through now trying to figure out how to do this with bubble sort)
3. The prompt is supposed to ask the user for the capital, not the state.
Thomas Edison State University:
BA in Computer Science - Currently Pursuing (114/120 Credits)
ASNSM in Computer Science - Graduated 6/5/2020
BA in Computer Science - Currently Pursuing (114/120 Credits)
ASNSM in Computer Science - Graduated 6/5/2020