Question: Please use C language Q1: At a grocery store, certain categories of products sold have been established, and this information is to be computerized. Write
Please use C language
Q1: At a grocery store, certain categories of products sold have been established, and this information is to be computerized. Write a function to scan and store information in a structure variable whose data type is one you define- a type that includes a component that has multiple interpretations. Also write an output function and a driver function to use in testing The data for each item consists of the item name (a string of less than 20 characters with no blanks), the unit cost in cents(an integer), and character indicating the product category ('M' for meat, 'P' for produce, 'D' for dairy, 'C' for canned good, and 'N' for non-foods). The following additional data will depend on the product category Product Categor)y Additional Data character indicating meat type ('R' for red meat, 'P' for poultry, 'F' for fish) date of packaging expiration date character 'F' for fruit or 'V' for vegetable data received expiration data expiration date (month and year only), aisle number(an integer) aisle side(letter 'A' or 'B') character indicating category (C for cleaning product, 'P' for pharmacy, ?, for other), aisle number (an integer), aisle side(letter 'A' or 'B') Meats Produce Dairy Canned goods Nonfoods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
