+ 1

How to solve this problem by using c?

A new logistic company comecomevan has used an ID string for identification of each item for delivery. The ID string is in the format A-S-D-NNNNNN. Betsy has found out that some in information is actually encoded in the ID:A is the type of item (a single uppercase letter), S is the source location (consisting of 1 to 4 numeric digits), D is the destination location (again consisting of 1 to 4 numeric digits) and N is a serial number (6 numeric digits). Write a program that reads in a ID string in the above format and then print out the item type, source location, destination location, and serial number in separate lines. Your program should follow the example given below. A similar program is given to you that can read a time in "HH:MM" (hour and minute) format. Enter ComeComeVan Item ID (A-S-D-NNNNNN format) :B-1-324-533234 Item Type :B Source Code :1 Destination Code :324 Serial Number :533234

30th Sep 2018, 9:03 AM
Wilsom Hapol
Wilsom Hapol - avatar
2 Answers
+ 1
Your answers is very well.
30th Sep 2018, 10:04 AM
Wilsom Hapol
Wilsom Hapol - avatar