Question: Python program help! CS 177 - Programming with Multimedia Objects - Spring 2021 Review Question 3: A bar chart or (bar graph) presents grouped data

 Python program help! CS 177 - Programming with Multimedia Objects -

Python program help!

CS 177 - Programming with Multimedia Objects - Spring 2021 Review Question 3: A bar chart or (bar graph) presents grouped data with rectangular bars with lengths proportional to the values that they represent. The bars are plotted horizontally and shows comparisons among categories. One axis of the chart shows the specific categories being compared, and the other axis represents discrete values. You need to display a bar graph of the series logarithmic function: y = A log(x) and need to give the user control over the series of values in the graph including the starting value, number of values, the multiplier (A) and the step (or interval) for the series value x. Write a program including at least one function named main() that prompts the user for the following values: Number of values for x Starting value for x Step (or interval) for x Your main() function should use a for loop and print() statements to display a header and bar chart (see examples below) of the corresponding values for y based on the logarithmic function shown above. This bar graph plots the function y-Alogx) based on a range of values specified by the user A.log(x) Value for A: 5 How many values for x in the range: 10 Starting value for x: 1 Step value for x: 1 This bar graph plots the function y = A * log(x) based on a range of values specified by the user IX: value for A: 6 How many values for x in the range: 7 Starting value for X: 8 tot Step value for x: 3.25 Value for A: 6.3 ***** How many values for x in the range: 12 ...... A.log(x) Starting value for x: 35 ........ Step value for x: 12.5 ...... 18 01.. 11.25 .............. 9 14.5 .***.sec....... A.log(x) X: 10 17.75 21.9 35 24.25 47.5 ************************ 27.5 ****************** 60.0 *....******************** 72.5 **************** 85.0 ************************** 97.5 **************************** 119.9 ***************************** 122.5 135.0 ****************************** 147.5 ******************************* 160.0 ******************************* 172.5 ******************************** Page 74 of 197

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!