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 file.
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
Step: 1
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