Question
A small, non-profit school needs help taking data about its courses and breaking it into different pieces of information that the school needs. The course
A small, non-profit school needs help taking data about its courses and breaking it into different pieces of information that the school needs. The course data they receive has the following component parts: course id, department, course number, section, number of credits and course name. The String will be in the following format: courseId department-courseNumber-section credits-courseName for example: 18169 CSC-120-G1 4.0-Computer Science I 7531 MATH-1001-T11 4.25-Mathematical Reasoning Everything before the first space is the course id. The part between the first and second space is the department-courseNum-section. These parts are separated by hyphens. After the second space is the number of credits, followed by a hyphen and then the name of the course. Each of the parts can vary in length, for example, you cannot assume that the course id will always be 5 numbers or that the section will only be 2 characters.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started