Question: 1. Write a class called BarChart that compares the data using a bar graph representation. Allow the parameters to the constructor to specify the bar's width and height. Every bar in the graph must have the same color for clear representation of the data. Create a program that draws bars of random size.
2. Create a class called Marble that represents one marble of a particular color and diameter. Write a program that draws a few marbles on the floor.