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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!