Question: I would like to know whats the most efficient way to write the code for C + + about asking the end user to enter

I would like to know whats the most efficient way to write the code for C++ about asking the end user to enter data, but if the user enters the incorrect data then having a loop until the correct data is entered. ThanksWrite a program in C++ to ask user to enter today's sales amount for five stores.
The program should then display bar graph for each store's sale amount. The bar
graph will used asterisks (*) where each asterisk represents $100 of sale. Input
must be greater than 0.
Note: There are only five stores so you may have variables such as salestore1,
salestore2, salestore3, salestore4 and salestore5.
Don't worry if some of the code looks repetitive. We will make it better later
after covering arrays.
Also, limit the sales amount entered to 25000. A simple assumption so that the
*'s printed will fit in one line.
 I would like to know whats the most efficient way to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!