Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a complete C++ program for a small store that contains the store goods and their prices as follows: Create two arrays the first one

Write a complete C++ program for a small store that contains the store goods and their prices as follows:

Create two arrays the first one for goods, the second one for its price. ( 1 mark). {eggs , chees , milk , beans, rice} (20 , 15.5 , 10 , 5.25 , 18 } Ask the user to enter one element to search if its available in the store or not. ( 1 mark). (What do you want to buy from our store?) .. the item available, its price . OR sorry, we dont have this item in our store. Delete the selected Item and its price for your arrays, then shift the rest. ( 1 mark). Print the store goods after deletion. ( 0.5 mark). Ask if the user needs to buy another item. ( 0.5 mark). (Do you need to buy another item? Enter one item or X to exit). Find the total price for all goods. ( 0.5 mark). Take a screenshot of the output. ( 0.5 mark).

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

Real Time Database And Information Systems Research Advances

Authors: Azer Bestavros ,Victor Fay-Wolfe

1st Edition

1461377803, 978-1461377801

More Books

Students also viewed these Databases questions