Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use this data for a txt input file. ItemID Name Qty Price 10001 Strawberry 3 7.50 10002 Lemon 6 5.75 10003 Kiwi 9 2.50

image text in transcribed

Please use this data for a txt input file. ItemID Name Qty Price 10001 Strawberry 3 7.50 10002 Lemon 6 5.75 10003 Kiwi 9 2.50 10004 PassionFruit 6 5.75 10005 Melon 7 2.50

Please leave notes so that I'm able to follow along :)

Write a C++ Menu driven program using pointers, arrays, vectors, functions and file 10 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

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

What is meant by separation of duties? Give an illustration.

Answered: 1 week ago

Question

Interpret data for the report reader.

Answered: 1 week ago

Question

How prepared was the organization for the new business strategy?

Answered: 1 week ago