Computer Science, asked by aiyadrathor5713, 7 months ago

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

Answers

Answered by niranjan1739
1

Explanation:

bro cut short the question and ask bro

If you mark me as brainliest I will I will follow you

Answered by s06002
0

Answer:

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

Similar questions