Computer Science, asked by iqralam1999, 8 months ago

What the program does
We are interested in generating forecasts of sales data based on the three calculations below. Your task
is to write a program called forecast that will take as its arguments the name of a data file and the name
of a product. From these arguments, the program will extract the data needed to perform calculations for
the specified product. You must use the generic ADT List defined above. For the data file, use the
comma-delimited file.

The output of the program, if the product is listed in the data file, should be exactly as below (truncate
values to integers for the output, but not during the calculations, as this would decrease the accuracy of
the results):

Product: Wheel
Simple average: 2491
Slope: 2019
Linear regression: 2148

If the product is not found in the file, the output should be exactly as below:

Product productName not found in fileName

Where productName is the name of the product and fileName is the name of the input file. For
example,
if the product Wheel is not found in the file Forecast, the output should be exactly as below:

Product Wheel not found in Forecast

Answers

Answered by pruthvirajkhuntapale
0

Answer:

jclx;lajaidopmjxjdjisoco8e9d9gi

Similar questions