Starting from:
$21.99

$15.99

SalesTracking Solution

You must create a sales tracking program named SalesTracking.java. This program will use arrays to store and process monthly sales as well as compute average yearly sales, total sales for the year, and which month had the highest sales and which month had the lowest sales.  You should use parallel arrays. Your first array (monthArray) should be initialized with all of the months. This array should have 12 locations of course. Your other array should be named monthlySales. Like your monthArray, this array should be 12 locations that store the amount of sales for each month.

The program should prompt the user for the sales for each month starting with January. The arrays (monthlySales and monthArray) should be created in main and passed to the methods as needed.  Your program should have methods that do the following.

 

This is the error i'm getting:

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
Type mismatch: cannot convert from double[] to int

at getSales.getSales(getSales.java:60)
at getSales.main(getSales.java:36)

 

More products