Problem 59658. Update course numbers and abbreviations
Suppose that the educational institution where you teach purchases new software to handle many essential functions, including course management. For some reason, the software changes the numbers of courses and their subject abbreviations by adding a zero at the end of each course number and removing spaces from the subject abbreviation.
For example, the course COM S 227 Object-Oriented Programming would change to COMS 2270 Object-Oriented Programming and the course A M D 305 Quality Assurance of Textiles and Apparel would change to AMD 3050 Quality Assurance of Textiles and Apparel. Some course numbers are followed by letters (e.g., CYB E 436X Digital Forensics); in those cases, the extra zero precedes the letter (CYBE 4360X Digital Forensics.)
Write a function to change course numbers and abbreviations to conform to the new software.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Given two arrays, find the maximum overlap
1488 Solvers
-
1370 Solvers
-
Increment a number, given its digits
645 Solvers
-
Sum the entries of each column of a matrix which satisfy a logical condition.
160 Solvers
-
Factorions: Numbers that equal the sum of the factorials of their digits
70 Solvers
More from this Author271
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!