Question: In this module we will make a bar chart by creating an application that will graph data measurements. As the developer, you have some freedom

In this module we will make a bar chart by creating an application that will graph data measurements. As the developer, you have some freedom in choosing how you go about solving the challenge described below. The important thing is that you select an appropriate programming language (such as C++ or C#) and submit both your source code and proof that your solution works.

Your solution should allow for the following scenario:

When the application loads, the user is prompted to enter a list of numbers as shown in the example below.

The application uses the numbers in the list to output a bar chart as shown below.

The application should handle all numerical values as integers.

Below is an example of input and output. Write a program that asks the user to enter the number of jars sold for five types of salsas: mild, medium, hot, spicy and zesty. The program should then display a bar graph comparing each type of salsas sales. Create each bar in the bar graph by displaying a row of asterisks. Each asterisk should represent 1 jar sold.

Example:

Enter number of jars sold for mild salsa: 10

Enter number of jars sold for medium salsa: 12

Enter number of jars sold for hot salsa: 18

Enter number of jars sold for spicy salsa: 8

Enter number of jars sold for zesty salsa: 19

SALES BAR CHART (Each * = $100)

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

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

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

Store 4: ********

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

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!