Question: An ICT module code starts with ICT, followed by the numbers 1 or 2 or 3 to indicate the year in which the module is

An ICT module code starts with ICT, followed by the numbers 1 or 2 or 3 to indicate the year in which the module is offered, followed by 5 or 6 or 7 to indicate the NQF level of the module, and ends with any two digits.
Write a program that accepts a string and checks if the string adheres to the ICT module code as explained above. If the string is a valid ICT module code, the program displays a Pass; otherwise a Fail. Make use of a regular expression to code the requirements of the ICT module code.

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 Databases Questions!