View the step-by-step solution to:

Question

Hello,


I am trying to finish up a program I created that is supposed to represent US Crime Data

found in a .csv file. I have written the code and it has no syntax errors, but I am having runtime errors and can't figure out what's happening. The user is prompted with multiple questions regarding the stats about different rates of murder and robbery in the US, but it all comes out as null. I know that there is something wrong with accessing the file, but I am not sure what it is. My code for each class is below:


Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes