Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Data structures and algorithms
#4
(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.

  1. display the array of 50 states and their capitals.

  2. confused here, what am i bubblesorting?

  3. 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
Reply


Messages In This Thread
Data structures and algorithms - by Pats20 - 02-26-2021, 09:59 PM
RE: Data structures and algorithms - by Dorothy44 - 02-26-2021, 10:15 PM
RE: Data structures and algorithms - by LevelUP - 02-27-2021, 02:30 AM
RE: Data structures and algorithms - by BadBradsBBQ - 02-27-2021, 04:37 PM
RE: Data structures and algorithms - by Pats20 - 02-27-2021, 04:52 PM
RE: Data structures and algorithms - by LevelUP - 07-08-2022, 02:03 PM
RE: Data structures and algorithms - by Pats20 - 07-07-2022, 05:33 PM
RE: Data structures and algorithms - by jsd - 07-07-2022, 09:48 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
Question Speedrunning SDC Data Structures and Computer Architecture advice? Randyb100 15 1,727 04-09-2024, 06:36 PM
Last Post: bjcheung77
  DATA STRUCTURES & ALGORITHMS gams007 17 3,490 03-14-2022, 04:20 PM
Last Post: jsd
  Udacity: Data Analyst NanoDegree review/material Seraphgrim 8 2,968 02-24-2022, 11:31 PM
Last Post: Seraphgrim
  Computer Science 201 | Data Structures & Algorithms akr680 2 2,028 08-31-2021, 10:50 AM
Last Post: Pats20
  Study.com Data Structures Review armstrongsubero 17 5,197 03-27-2021, 12:35 AM
Last Post: bjcheung77
  SDC Data Structures Assignment Turkish 10 3,207 02-08-2021, 08:07 PM
Last Post: LevelUP
  Statistics.com ? BS Data Science and Analytics TESU abs_co 7 2,122 07-07-2020, 02:02 PM
Last Post: akr680
  Confirmation SDC transfers TESU Data Structures armstrongsubero 33 6,391 04-07-2020, 11:23 AM
Last Post: bjcheung77
  Study.com Data Structures and Algorithms udi 8 3,178 06-10-2019, 03:24 PM
Last Post: akr680
  Has anyone completed data structures yet? udi 9 2,657 05-28-2019, 02:48 PM
Last Post: NolaRice

Forum Jump:


Users browsing this thread: 1 Guest(s)