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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education