Question: In this homework assignment, you will build upon this idea and compare a set of items from HyVee with the same items from Costco (you






In this homework assignment, you will build upon this idea and compare a set of items from HyVee with the same items from Costco (you will not have to account for membership costs in this assignment, although this is obviously an important factor overall). The items to be compared will appear in an input file named which contains an alphabetized list of items you are considering purchasing from HyVee. An example input file appears below: 11 applesauce_pouch 4 ct 2.69 bananas 3 lbs 1.77 cheerios 10.8 oz 2.67 cheese_shredded 8 oz 2.00 cookies_pepperidge_farm_milano 6 oz 1.88 crackers_graham 14.4 oz 3.29 crackers_ritz 20.6oz3.68 eggs_organic 12 ct 4.89 oatmeal 42 oz 4.79 peanut_butter_jif 40 oz 5.69 rotisserie_chicken 1 ct 6.99 In this particular example, there are 11 items you are considering purchasing from HyVee. The first line of the file contains the number of items and each subsequent line contains an item name (e.g., I as a string, a quantity as a double (e.g., 4 ), a unit (e.g., as a string, and a price in dollars (e.g., 2.69). For each item in this file, you would like to know what the "equivalent" price of the item would be if you would purchase it at Costco (and could somehow match the HyVee quantities, perhaps by splitting with a friend or making fewer trips). Thus, you also are given an input text file named containing an alphabetical list of the quantities and prices of a number of Costco items (including the items on the HyVee list, but also including additional items that you will need to ignore). The example contents of a file follows: 19 applesauce_pouch 24 ct 9.99 bananas 3 lbs 1.49 cashews 40 oz 15.99 cheerios 55 oz 7.99 cheese_shredded 48 oz 10.99 cookies_pepperidge_farm_milano 22.5 oz 8.99 crackers_goldfish 58 oz 8.99 crackers_graham 57.6 oz 7.99 crackers_ritz 61.65 oz 8.89 deodorant_dove 10.4 oz 13.99 diapers_huggies 198 ct 45 . eggs organic 24 ct 6.39 oatmeal 160 oz 8.29 paper_towels 1026 sqft 16.49 peanut_butter_jif 96 oz 9.59 rotisserie_chicken 1 ct 4.99 sunscreen_neutrogena_ultra_sheer 8 oz 13.99 trash_bags_kitchen 200 ct 14.99 ziploc_gallon_bags 152 ct 14.89 Given these two files, note that you only can purchase applesauce pouches in quantities of 24 at Costco rather than 4 as you can at HyVee. Based on in this example, 24 applesauce pouches costs 9.99 dollars (resulting in a cost of 0.41625 dollars, or approximately 42 cents, per pouch). The corresponding equivalent Costco cost of a fourpouch pack (the quantity as you would purchase at HyVee) would be 1.665=1.67 dollars rounded to the nearest cent (0.416254). This is less expensive than the 2.69 dollars four pouches costs at Hy Vee and you would save 1.02 dollars per set of four applesauce pouches by purchasing them at Costco (assuming you are okay with actually having to purchase 24 at a time). Your specific task will be to write a program that reads the and files and, for each item in the file, outputs the HyVee cost (as given in the file), and the Costco "equivalent" cost (pretending, for purposes of comparison, that Costco allowed you to purchase items in HyVee quantities). You also should print a statement that states which store has the better value (note that frequently this will be Costco since you are adjusting the costs to match the price per unit quantity). You should also print the total overall cost of the items at HyVee, the total overall cost equivalent of these items at Costco, and how much you would expect to save by purchasing the items at the store with the lower cost (you may assume this will be Costco). An example expected output for the two input files provided follows: Note that in practice it would be up to the user (i.e., the person running your program) to decide if the amount saved at Costco (assuming Costco provides the lower overall cost) is worth the $60 regular membership fee, depending on the expected frequency of shopping trips, etc. This is not explicitly estimated as part of this assignment. You may assume that every item in the file is also listed in the file. However, the reverse is not true. For example, because cheerios appears as an item in the fin2 are two input file streams only containing strings) to illustrate example syntax related to using strings (note that copying this exactly will not work in your program as each row in your files contains more than just strings): string string1; fin1 > string1; // string from file 1 // get matching string from file 2 string string =;// start with empty string while (string1 != string2) \{ // read next string from file 2 fin2 string2; \} cout "We found a match!" endl; In addition, you may also assume the string-based description of the units ("oz", "ct", etc.) for a particular item type will be same across input files (thus, conversions between different unit types will not be required). For a simpler version of the assignment (note that you will lose 10 points based on the rubric), you may use the file which the contains the same items as the file (and no extra items) in the same order. To use this version, open the file rather than in your code. This simplifies your logic so that you don't have to worry about skipping over items in the file. Please keep in mind that the files provided are only sample input files. Your program should still work if the content (e.g., number of items, item names/costs, etc.) within the input files is different (and you can expect that we will use input files with different content for purposes of grading). Thus, please do not hard-code any of the information available in the input files into your program as this information may change