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
Lightbulb Study.com 5 Exam Limit per Month Clarification Jaymes 5 673 Yesterday, 05:17 PM
Last Post: Avidreader
  Study.com Free Degree Planning + First Month of College Saver bjcheung77 1 366 Yesterday, 08:07 AM
Last Post: axl3
  Straighterline lab resubmissions introthrive 0 83 11-25-2024, 02:04 PM
Last Post: introthrive
  Which courses from Sophia.org can be transferred to UoPeople ayman003 49 14,673 11-24-2024, 09:08 PM
Last Post: Avidreader
  Recent Study.com Promo Offer - 4 classes/month, 30% off for 3 months bjcheung77 9 1,240 11-20-2024, 02:19 AM
Last Post: bjcheung77
  Study.com Failed Exam BSBRose21 7 3,711 11-14-2024, 04:10 PM
Last Post: LevelUP
  Statistics.com expired courses homeschoolmom1 1 306 10-16-2024, 03:57 PM
Last Post: LevelUP
  Study.com Biol101L Final Help!! Clepper43 11 2,898 10-02-2024, 10:00 AM
Last Post: bjcheung77
  Does Sophia have any 300/400 level courses? ecomony 7 833 10-01-2024, 01:17 PM
Last Post: ecomony
  Current Study.com Coupon Codes pws 69 47,532 09-24-2024, 06:41 PM
Last Post: bjcheung77

Forum Jump:


Users browsing this thread: 1 Guest(s)