Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

YOU ARE TO USE C-PROGRAMM, PLEASE. The NAFDAC law requires that food product manufacturers place expiry date on their products, but there is ambiguity in

YOU ARE TO USE C-PROGRAMM, PLEASE.

The NAFDAC law requires that food product manufacturers place expiry date on their products, but there is ambiguity in the law: it does not require the expiration date to be in any particular form. So, it can be written in any other language and still be legal.

A self-appointed Food Quality Spy has learned that many food product manufacturers have started encoding the product expiration dates to keep customers from knowing how old the stuff is.

But the encoding does allow retailers to figure out the expiry date if for some reason, they want to.

One popular encoding method: Encode the months from Jan to Dec as 'A' through 'L' Encode each digit of the date as 'Q' through 'Z' Encode the year as 'A' through 'Z' meaning 1 through 26 which is then added to 2000.

The spy found a particularly questionable loaf of bread with this date: ARZM. Write a C-Program to determine the date.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2022 Grenoble France September 19 23 2022 Proceedings Part 4 Lnai 13716

Authors: Massih-Reza Amini ,Stephane Canu ,Asja Fischer ,Tias Guns ,Petra Kralj Novak ,Grigorios Tsoumakas

1st Edition

3031264118, 978-3031264115

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago