Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sales Bar Chart Write a program that asks the user to enter today's sales for 5 stores. The program should then display a bar graph

Sales Bar Chart Write a program that asks the user to enter today's sales for 5 stores. The program should then display a bar graph comparing each store's sales. Create each bar in the bar graph by displaying a row of asterisks. Each asterisk should represent $100 worth of sales. Perform input validation that the sales are non-negative values. Make a loop that forces the user to enter valid information to continue the program.

For example, here is a sample run

Enter today's sales for store 1: 1000 [Enter] Enter today's sales for store 2: 1200 [Enter] Enter today's sales for store 3: 1800 [Enter] Enter today's sales for store 4: 800 [Enter] Enter today's sales for store 5: 1900 [Enter]

SALES BAR CHART

(Each *= 100)

Store 1: **********

Store 2: ************

Store 3: ******************

Store 4: ********

Store 5: *******************

using dev C++; no complicated script please just if statements no arrays

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

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago