Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ program: Shopping List Write a program that checks if shopping.txt exists. If it doesnt exist, then the program creates a shopping list. Use an

C++ program: Shopping List

Write a program that checks if shopping.txt exists.

If it doesnt exist, then the program creates a shopping list. Use an array of strings. We dont know how many items will be on the list. The user tells us how many items are on the list, and then tells you the items names. You display the items for the user. Write the shopping list to the text file called shopping .txt.

If the shopping.txt exists, then the program should read the text file into an array and display to the user. The user then tells you how many more items to add to the list, and tells you the items names. You display all the items for the user. At the end of the program, write the shopping list to the shopping.txt text file.

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions