Question: Write a c + + function named bar that takes an array of integers and a size as an argument. Each value in the array

Write a c++ function named bar that takes an array of integers and a size as
an argument. Each value in the array represents an amount of sales for a month.
For each value in the array, the function should output a line in a bar graph.
Each asterisk in the output represents a full $100 in sales (fractional amounts
are not represented).
For example, for the array {120,250,595} with size 3 it should output:
*
**
*****

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!