Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a C Language application reflecting a set of product types which you create, such as apparel (shoes, sweats, pants, etc.), media (CD, DVD,
Create a C Language application reflecting a set of product types which you create, such as apparel (shoes, sweats, pants, etc.), media (CD, DVD, book, movie, computer game, etc.), electronics (computers, smartphones, etc.). You will be writing a program to help a business manage the inventory for one of their product types. Select a product type and data and create a Word document listing your dataset with at least 10 records with the following fields (Don't use Food Items since I will be demonstrating using this subject matter). Create a specification and design document. Note: Come up with your own data set. All students should have different data. My Sample Data and CSV: Salad, 3,8.5, Appetizer Burger, 2,5.5, Lunch Hot Dog,4,3, Lunch Roast Beef, 3,9, Dinner Cheese Stick,2,4, Appetizer Sandwich, 6,4.5, Lunch Soda, 5, 2, Drink Fries,4,2.75, Appetizer Iced Tea,3,2,Drink Spaghetti, 3, 12, Dinner Description Salad Burger Hot Dog Roast Beef Cheese Stick Sandwich Soda Fries Iced Tea Spaghetti Quantity Price 8.50 5.50 3.00 9.00 3 2 4 3 2 6 5 4 Category Appetizer Lunch Lunch Dinner Appetizer Lunch 2.00 Drink 4.00 4.50 2.75 Appetizer 2.00 Drink 3 3 12.00 Dinner Requirements: Store all your unique 10 records of data into 4 parallel arrays, recommended that you use initializer lists), you may read from a file. Create the following functions to manipulate the data in the arrays. You can call them each from a menu. 1. (20 Points) Display the data as it is stored in the 4 arrays and 1 calculated column (Ext Price). Calculate the 5th column as the Extended Price (Quantity* Price), formatting the output using printf(). 2. (20 Points) Two functions which filter the data list in two ways, first by category, then by one of the other 3 fields (your choice). Also, produce a short footer output showing the totals and average using the report format below. 3. (20 Points) A function to convert the 4 parallel arrays into an array of structs. Print the data as serialized strings. 4. (20 Points) A function to write the data to a .CSV file, accessing each array using different pointer notation. Turning in your work: Please create and post to the Canva submission link, a zip file containing (1) A Word document with the program output/screenshots: a. Data in Original Order with 5th column. b. Data Filtered two ways and showing the footer report. c. The .CSV file you created for Part 3 d. The .c code file.
Step by Step Solution
★★★★★
3.45 Rating (148 Votes )
There are 3 Steps involved in it
Step: 1
It looks like youve provided a detailed assignment for creating a C language application to manage inventory for a set of product types Below Ill outl...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started