13. Consider a freight company. This company may deliver packages around the world. Each package has a tracking code which consists of a string in the following format: destination, country code, a suburb location code 16 which is an integer number, the character 'C', an integer number represent- m ing the customer id code, the character 'W', followed by an integer which di contains the weight of the package. An example of a tracking code in this format is AU2010C42W74. Write a program which reads a tracking code ln from the console and uses regex to determine if the tracking code is valid.

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter11: Operating Systems
Section: Chapter Questions
Problem 14VE
icon
Related questions
Question

can you help me to do no.13 in c++?Thanks

 

std::this_thread::sleep_for(Slu..Um
\ E.A To
While the counter thread is running, your main thread should allow
to input a number. If the number entered is less than or equal tou
counter's value, then the program should stop.
bluode (e)gsm woY JuquO ari sisluls) of egsm olgislum 10 gsm 92
12. Write a program that uses regular expressions to validate a date in the for
arh mat MM/DD/YY. YY must always be two digits, but MM could possibly be
a single digit from 1 to 9 (e.g., 1 for January rather than 01) or two digits
from 01 to 12. The digits in MM should not exceed 12, for example, 13
mis an invalid month Similarly, DD could also be a single digit from 1 to
9 or two digits from 01 to 31. The digits in DD should not exceed 31, for
example, 32 is an invalid day. Don't worry about months with fewer than
31 days. For example, February 31 is an invalid date but for this problem
you can consider it to be valid.
ng Project 8 fro
14.
13. Consider a freight company. This company may deliver packages around
the world. Each package has a tracking code which consists of a string in
the following format: destination, country code, a suburb location code
(16 which is an integer number, the character 'C', an integer number represent-
m ing the customer id code, the character 'W', followed by an integer
which
odi contains the weight of the package. An example of a tracking code in this
format is AU2010C42W74. Write a program which reads a tracking code n
from the console and uses regex to determine if the tracking code is valia.
Transcribed Image Text:std::this_thread::sleep_for(Slu..Um \ E.A To While the counter thread is running, your main thread should allow to input a number. If the number entered is less than or equal tou counter's value, then the program should stop. bluode (e)gsm woY JuquO ari sisluls) of egsm olgislum 10 gsm 92 12. Write a program that uses regular expressions to validate a date in the for arh mat MM/DD/YY. YY must always be two digits, but MM could possibly be a single digit from 1 to 9 (e.g., 1 for January rather than 01) or two digits from 01 to 12. The digits in MM should not exceed 12, for example, 13 mis an invalid month Similarly, DD could also be a single digit from 1 to 9 or two digits from 01 to 31. The digits in DD should not exceed 31, for example, 32 is an invalid day. Don't worry about months with fewer than 31 days. For example, February 31 is an invalid date but for this problem you can consider it to be valid. ng Project 8 fro 14. 13. Consider a freight company. This company may deliver packages around the world. Each package has a tracking code which consists of a string in the following format: destination, country code, a suburb location code (16 which is an integer number, the character 'C', an integer number represent- m ing the customer id code, the character 'W', followed by an integer which odi contains the weight of the package. An example of a tracking code in this format is AU2010C42W74. Write a program which reads a tracking code n from the console and uses regex to determine if the tracking code is valia.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning