Online Degrees and CLEP and DSST Exam Prep Discussion
Data structures and algorithms - Printable Version

+- Online Degrees and CLEP and DSST Exam Prep Discussion (https://www.degreeforum.net/mybb)
+-- Forum: Main Category (https://www.degreeforum.net/mybb/Forum-Main-Category)
+--- Forum: Saylor.org, Straighterline, Study.com, OnlineDegree.com, Sophia.Org Discussion (https://www.degreeforum.net/mybb/Forum-Saylor-org-Straighterline-Study-com-OnlineDegree-com-Sophia-Org-Discussion)
+--- Thread: Data structures and algorithms (/Thread-Data-structures-and-algorithms)



Data structures and algorithms - Pats20 - 02-26-2021

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



RE: Data structures and algorithms - Dorothy44 - 02-26-2021

Someone else had this same question in a different thread. https://www.degreeforum.net/mybb/Thread-SDC-Data-Structures-Assignment?highlight=Data+Structures


RE: Data structures and algorithms - LevelUP - 02-27-2021

(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."


RE: Data structures and algorithms - BadBradsBBQ - 02-27-2021

(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.


RE: Data structures and algorithms - Pats20 - 02-27-2021

That’s what I was thinking. You should write the assignment instructions for sdc. Lol.


RE: Data structures and algorithms - posabsolute - 02-28-2021

lol, I still remember the pain I had on the computer architecture assignment. Honestly, I really loved my experience with study.com, for business courses it's perfect, but man some of their CS courses are just not on point with the assignment.


RE: Data structures and algorithms - Raftingdon2 - 07-07-2022

I also have no clue what they want to be done with the "bubble sorting" portion of this question.  The rest of it is pretty straight forward.  But what is there to bubble sort?  I'm just going to throw a bubble sort in the end?  I was planning on basically creating a quiz game where it asks the user the state and quizzes them on the capital, but not really sure on what needs to be bubble sorted.  I'm just going to at the end of the game, bubble sort all the capitals of the states alphabetically, then go through the game and ask the state.  Just to show a  bubble sort.  

But I agree.  The CIS classes to this point have been very disappointing.  I have this and Computer Architecture left and I finish my degree 100%.  I've had to do more external studying for this outside of Study.com just to feel comfortable with the material and the assignment is a 100% crapshoot to what they really want.


RE: Data structures and algorithms - Pats20 - 07-07-2022

Best I can remember. You bubble sort alphabetically by state and then by capital. I may be wrong though.


RE: Data structures and algorithms - jsd - 07-07-2022

When you build your 2d array for states, capitals, it's supposed to start in alphabetical order by state. The bubble sort is to change to alphabetized by capital.


RE: Data structures and algorithms - LevelUP - 07-08-2022

(07-07-2022, 04:53 PM)Raftingdon2 Wrote: I also have no clue what they want to be done with the "bubble sorting" portion of this question.  The rest of it is pretty straight forward.  But what is there to bubble sort?  I'm just going to throw a bubble sort in the end?  I was planning on basically creating a quiz game where it asks the user the state and quizzes them on the capital, but not really sure on what needs to be bubble sorted.  I'm just going to at the end of the game, bubble sort all the capitals of the states alphabetically, then go through the game and ask the state.  Just to show a  bubble sort.  

But I agree.  The CIS classes to this point have been very disappointing.  I have this and Computer Architecture left and I finish my degree 100%.  I've had to do more external studying for this outside of Study.com just to feel comfortable with the material and the assignment is a 100% crapshoot to what they really want.

I think the Computer Architecture course is a bit easier now that they added the extra assignment.  I would do the exam first, then the binary assignment. By that point, you should know how points you need on the APU assignment to pass which shouldn't be much. 

Then you have the option to
  1. Spend 10hrs or less on the APU assignment, take a low grade, and move on with life. 
  2. Spend as much time as you want, and try to go for a high grade which could require 40-80hrs of work. 
The assignments for Data Structures and Computer Architecture do require studying outside Study.com.  The UL Database Management you shouldn't need much outside help other than a convenient list of SQL commands