Salsa Sales

Write a java program that lets a maker of salsa keep track of sales for five different types of salsa: mild, medium, sweet, hot and zesty. The program should uses three arrays:
1. an array that holds the five salsa names;
2. an array that holds the number of cases sold during the past month for each salsa type; and
3. an array that holds the price per case for each salsa type.
The five salsa names will be stored in a text file that you create and will be loaded into the first array when the program begins. The number and price of cases will be entered by the user as the program runs and stored in the second and third arrays.
Create a menu that includes entries for
1. Input Price;
2. Input Cases Sold;
3. Display Report; and
3. Quit.
Each menu entry should call a method that performs the appropriate function.
Method InputPrice(): Use the salsa names to prompt the user to enter the price per case of that salsa storing the number in the appropriate array.
Method InputCases(): Use the salsa names to prompt the user to enter the number of cases sold for each type storing the number in the appropriate array.
Method DisplayReport(): Once sales data has been entered, this method will produce a report that displays sales for each salsa type, total sales, and the names of the highest selling and lowest selling products. Method Quit(): do any clean up needed and then end the program.
Input Validation: Do not accept negative values for number of cases sold or the price per case.

×
New Download