Question: Write a C++ Menu driven program using pointers, arrays, vectors, functions, and file IO to do the following: 1. Ask the user for an input

Write a C++ Menu driven program using pointers, arrays, vectors, functions, and file IO to do the following:

1. Ask the user for an input file. 2. Read and process data from a file the Grocery Items, quantity, and price 3. Calculate the total for each item, Add them up and calculate the tax (NYC is 8.75%) 4. Print out your shopping receipt (like you get when you get it from the store. 5. Write to a file the output of 5 items, quantity, price, and total for each item, sub-total, tax, and grand total.

Please use the following data to create a text file.

ItemID Name Qty Price
10011 Avocado 3 7.50
10012 Tomato 6 5.75
10013 Orange 9 2.50
10014 Mango 6 5.75
10015 Guava 7 2.50

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!