Thread Rating:
  • 10 Vote(s) - 4.6 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The official guide to courses by Straighterline, Study, et al: We want YOUR input!
Provider: Study.com
Course: Computer Science 201: Data Structures & Algorithms
Course content: There're some videos but a large content of the course was text-only and some diagrams to supplement the text content but does a bad job because of layout.
Final exam format: IIRC 100 MCP
Final exam content vs course content/practice exams: Probably 40% or maybe even less were the exact same questions in the quizzes. The rest of the questions required some understanding of the content.
Time taken on course: A week or so
Familiarity with subject before course: Did something similar 20+ years ago
Pitfalls, high points, things others should know: You'd likely have to use other websites/videos to try to understand some of the content in this course.
1-10 Difficulty level: 7 to fully understand the content. 5 if you just want to pass.
Assignment: The assignment has 2 parts and is worded ambiguously. I managed a perfect score so I'll share what my input/output and the feedback from the grader. Make sure your code can work in https://www.jdoodle.com/online-java-compiler/ with the 'Interactive' option disabled. The grader is probably going to paste your code into the editor and the inputs into the "Stdin Inputs" box and click on 'Execute'.

Part 1
1. You're expected to display a 2D array before the bubble sort. Just printing the array would do, don't have to loop through it and display the elements of the array.
2. Prompt the user 50 times, each time you display the State, the user will provide the Capital.
3. Display how many were answered correctly.

It should look something like this:
Code:
[[alabama, montgomery], [alaska, juneau], [arizona, phoenix], [arkansas, little rock], [california, sacramento], [colorado, denver], [connecticut, hartford], [delaware, dover], [florida, tallahassee], [georgia, atlanta], [hawaii, honolulu], [idaho, boise], [illinois, springfield], [indiana, indianapolis], [iowa, des moines], [kansas, topeka], [kentucky, frankfort], [louisiana, baton rouge], [maine, augusta], [maryland, annapolis], [massachusetts, boston], [michigan, lansing], [minnesota, st. paul], [mississippi, jackson], [missouri, jefferson city], [montana, helena], [nebraska, lincoln], [nevada, carson city], [new hampshire, concord], [new jersey, trenton], [new mexico, santa fe], [new york, albany], [north carolina, raleigh], [north dakota, bismarck], [ohio, columbus], [oklahoma, oklahoma city], [oregon, salem], [pennsylvania, harrisburg], [rhode island, providence], [south carolina, columbia], [south dakota, pierre], [tennessee, nashville], [texas, austin], [utah, salt lake city], [vermont, montpelier], [virginia, richmond], [washington, olympia], [west virginia, charleston], [wisconsin, madison], [wyoming, cheyenne]]

What is the capital for new york: albany
That is correct.

What is the capital for maryland: augusta
That is incorrect.

.
.
.
You answered 49 correctly

Part 2
1. Display your hashmap. Just like the 2D array, just printing it will do.
2. This time, you prompt the user to enter a State name and you'll display the Capital name. Also do this 50 times. I only did it once because the assignment said so but the grader's feedback was to do this 50 times as well.

The input/output should look like this
Code:
{florida=tallahassee, arkansas=little rock, nebraska=lincoln, texas=austin, ohio=columbus, missouri=jefferson city, georgia=atlanta, alaska=juneau, massachusetts=boston, delaware=dover, california=sacramento, oklahoma=oklahoma city, new hampshire=concord, north carolina=raleigh, alabama=montgomery, louisiana=baton rouge, kansas=topeka, south carolina=columbia, pennsylvania=harrisburg, utah=salt lake city, minnesota=st. paul, virginia=richmond, oregon=salem, washington=olympia, iowa=des moines, arizona=phoenix, maryland=annapolis, illinois=springfield, rhode island=providence, tennessee=nashville, west virginia=charleston, new jersey=trenton, montana=helena, idaho=boise, kentucky=frankfort, wisconsin=madison, maine=augusta, nevada=carson city, hawaii=honolulu, michigan=lansing, connecticut=hartford, new york=albany, north dakota=bismarck, wyoming=cheyenne, colorado=denver, south dakota=pierre, vermont=montpelier, mississippi=jackson, new mexico=santa fe, indiana=indianapolis}

Please enter a State name: new york
new york's Capital is albany

Remember to prompt 50 times for state name as well.

Tips:
1. Use lowercase in your 2D array to avoid case conversion here and there but make sure when you're comparing the user's input, expect the user to enter in any case they want. NeW yOrK should also be acceptable.
2. Prepare a list of 50 capital names and 50 state names to paste into "CommandLine Arguments". That's probably how the grader does it.
3. Add comments to your code referencing the javadoc style
4. Start with a smaller array of 2 - 3 state and capital name pairs during development when testing your code
5. It is possible to have part 1 and 2 in a single program. Just display 2D array, prompt 50 times, display score, display hashmap, prompt 50 times
6. Not sure if it matters but expect that the input may be invalid. When you prompt the user for a state and s/he enters 'Russia', your program should handle that gracefully.
7. Name your variables and arrays appropriately so that the entire program reads well. E.g. the count variable for the score, should be named 'score' or 'correctCount'.
8. When testing your code in jdoodle with the smaller 2D array, enable 'Interactive' if you want to just type in the answers.
[-] The following 4 users Like celerius's post:
  • AnandB, doom, Pikachu, StudentOLife
Reply


Messages In This Thread
RE: The official guide to courses by Straighterline, Study, et al: We want YOUR input! - by celerius - 01-08-2021, 01:42 AM
Bus 311 Project Mgmt - Study.com - by khwaja1924 - 01-26-2022, 05:41 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Current Study.com Coupon Codes pws 69 45,451 Yesterday, 06:41 PM
Last Post: bjcheung77
  Study.com College Saver - 30% off 3 months portals 42 7,582 Yesterday, 06:32 PM
Last Post: bjcheung77
  Study.com History Courses lawqueen04 4 237 09-16-2024, 02:05 PM
Last Post: Duneranger
  Straighterline Open Book Finals cookiecandle 15 10,870 09-16-2024, 12:24 AM
Last Post: VanillaBean
Lightbulb Study.com 5 Exam Limit per Month Clarification Jaymes 2 291 09-13-2024, 08:06 PM
Last Post: bjcheung77
  Study.com non-proctored final exams Tsanchez123 6 644 08-30-2024, 06:17 PM
Last Post: wow
  Fastest Saylor courses? evadne 3 397 08-25-2024, 02:16 PM
Last Post: bjcheung77
  Study.com renewal discount Tsanchez123 1 244 08-25-2024, 10:53 AM
Last Post: bjcheung77
  Question re: Straighterline ACC150 ExcellentPhoto 3 326 08-16-2024, 11:49 AM
Last Post: bjcheung77
  Which order should I take these Study.com Classes from easiest to most difficult? mohelena02 9 3,246 08-16-2024, 11:36 AM
Last Post: bjcheung77

Forum Jump:


Users browsing this thread: 16 Guest(s)