Question: Using Java: One-Dimensional Arrays - A store that sells 3 types of pies, and will like to know their daily sales for all their products.

Using Java:

One-Dimensional Arrays - A store that sells 3 types of pies, and will like to know their daily sales for all their products. The store owner wants to know the total sales each day and for the whole week. Using a method, write a program that allows the user to input daily worth of data for each product. The purchase price of each product is

Apple Pie: $3.0 Cherry Pie: $4.0 Blueberry Pie: $2.0

Create an array for each day, the store opens 5 days a week. Each array length is 3 since the store sells types of product..

Based on the user inputs for each product --print out the total sales for Monday, Tuesday, ...

Sample input Enter the number of Apple, Blueberry, and Cherry on Monday: 14 21 5 Enter the number of Apple, Blueberry, and Cherry on Tuesday: 14 21 59 Enter the number of Apple, Blueberry, and Cherry on Wednesday: 14 21 20 Enter the number of Apple, Blueberry, and Cherry on Thursday: 14 21 27 Enter the number of Apple, Blueberry, and Cherry on Friday: 14 21 31

Sample output Total sales for Monday was: $243.00 Total sales for Tuesday was: $540.00 Total sales for Wednesday was $192.00 Total sales for Thursday was $192.00 Total sales for Friday was $192.00 Your combine total sales was $975.00

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!