Question: Create a tab-delimited file that contains two columns. The first column holds a product name and the second column has the cost of the product.
Create a tab-delimited file that contains two columns. The first column holds a product name and the second column has the cost of the product. Write a struct that can store a product name and price. Now write a program that reads the files data and stores in an array of the structure that you have created previously. Pass the array to a function that returns the highest priced item to the main function which prints the item name along with its price.
in C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
