Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The following is a code for one produce in an extensive cosmetic line: L02002Z62

ID: 3866439 • Letter: T

Question

The following is a code for one produce in an extensive cosmetic line: L02002Z621289. L means that it is a lipstick, 0 means that it was introduced without a matching nail polish, 2002 is a sequence code indicating in what order it was produced, Z is a classification code indicating that the product is hypoallergenic, and 621289 is the number of the plant (there are 15 plants) where the product was produced.

PART A: In the form of a well crafted essay response, please critique the above code by listing the features that might lead to inaccurate data entry. (25 points)

PART B: Write a well crated essay response which explains changes that you have suggested, indicating what data entry problems the change will eliminate. Please include your version of the revised code in your response. (25 points)

(This must be a minium of 500 words for each PART A and PART B)

Explanation / Answer

Part A -

The problem with stetergy which is being used here to code the product details are


1. If L indicates the product type then only 26 products having unique ( different alphabets ) name can be manifactured by company. if company introduce 27th product then the data entry should get corrupted
i.e L instacne for Lipstic and company will have one another product that name stats with L then in that case the code parser will not be able to recognize the actual product due to multiple products having same first alphbats in their name.
and same case we have with classification (Z) which comes after sequence.


2. Second problem with second character of code which represents lipstick without matching nail polish. now in this case if we have more then 10 varients way to introduce the same product then we have to fight to add one more character to understand the product varients and that can also creates problem.

Part B solution -


We will have to includes metadata ( data about data ) with this code so that we can identfy that how many characters represents which information so that parser can parse the code accordingly
i.e if i change L02002Z621289 to 11416-L02002Z621289
now first understand the code 11416L02002Z621289 then will come into the points that helps us to unserstand that how this new code will remove the problems given in part1 answer.
I break my whole code into two parts or split the whole string by "-" character so we will have
two substring where one is 11416 and second one is L02002Z621289
first substring suggest to prser or person that how you will understand the product code ( second substring )
so here 11416 indicates that we have 5 different information in product code and each number indicates the length of every information code.
i.e
1. first number (1) says read L02002Z621289 upto 1 length which is nothing but a product name in our case L for lipstic and remaining string would 02002Z621289.
2. secodn number (1) says read 02002Z621289 upto 1 length which is nothing but product varient like without matching nail paint and remaining string would be 2002Z621289.
3. Third number (4) says read 2002Z621289 upto 4 characters which is nothing but 2002 sequence code and remaining string would be Z621289
4. Fourth number (1) says read Z621289 upto 1 length which is Z ( classification in our case ) and remaiing string would be 621289
5. Fifth number (6) says read Z621289 upto 6 length charcater which is 621289 and indicats the number of the plants.

Now by doing this company can add as many as products in their list like L for Lipstic and LA for something else so
i.e if company introiduce one new product which starts with LA the in that case we will have product code like below
21416-LA02002Z621289

Let me know if you face any difficulties to make understanding on above concept.Thanks