Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions