Question: Write a program to take in from the user product sales for a week in a single dimension array of doubles. Find the average
Write a program to take in from the user product sales for a week in a single dimension array of doubles. Find the average price and then store the difference of prices compared to the average in another array of doubles. Print the differences to the average, the lowest value. For Example: Input sales for the week: 11.3 14.2 15.5 16.6 13.5 14.7 15.1 The average is: 14.4 The difference array: -3.1 -0.2 1.1 2.2 -0.9 0.3 0.7 lowest: -3.1
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
def main Get the product sales for the week sales while True sale floati... View full answer
Get step-by-step solutions from verified subject matter experts
