Question: Write a program in C + + to enter the sales amount for 5 different stores. The program will show the sales for each store

Write a program in C++ to enter the sales amount for 5 different stores. The program will show the sales for each store as a bar graph but the bar graph will use asterisks(*) representing 100 of sales. Of course the input must be greater than 0 and limited to 25000. If the code looks repetitive no worries we will fix it later and you can use variables storeSale1-storeSale5 because we only have 5 stores, one condition you will have to not allow any string charecters to be accepted as input if the user inputs anything other than a integer than display a invalid message and prompt user to input sales of 1-25000.

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!