Chat with us, powered by LiveChat Program files for the sales tracking program: | Writedemy

Program files for the sales tracking program:

Program files for the sales tracking program:

Question

1
2
3

4

Deliverables
Program files for the sales tracking program: SalesTracking.java
At the beginning of all your programs, put a comment box that
includes the program name, your name, and a brief description of the
program.
Example:
/
***************************************************
********************
Program Name: ProgramName.java
Programmer’s Name: Student Name
Program Description: Describe here what this
program will do
***************************************************
********************/
How to submit your assignment:
The program must have the same name as the assignment title
(SalesTracking.java).
The Java source file (*.java) must include a corresponding class file
(*.class) program as evidence of success.
In addition to the program source code file and byte code
file, complete a LAB REPORT (see template in doc sharing) that
includes information about your design process as well as testing and
results (with screen shots of your program output).
You must use a zipped folder to send your weekly assignment to the
Dropbox. Do not send subfolders within your zipped folder.
Place all of the .java and .class file for the week into the one zipped
folder. The zip folder should be named
CIS355A_YourLastName_iLab_Week1, and this zip folder will contain
all the weekly programming assignments.
Required Software
Eclipse
Access the software at https://lab.devry.edu.
iLAB STEPS
STEP 1: SalesTracking.java
Back to Top
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.
getSales(monthArray, monthlySales): This method receives the
monthArray and monthlySales arrays as arguments. It prompts the
users for the sale for each month. This amount should be stored and
returned into the corresponding location in the monthlySales array.
For example, January sales should be stored in the first location,
February sales should be stored in the second location, and so forth.
computeTotalSales(monthlySales): This method receives the monthly
sales array as an argument and returns the total sales of the year.
computeAverageSales(monthlySales): This method receives the
monthly sales array as an argument and returns the average sales for
the year.
computeHighestMonth(monthlySales): This method receives the
monthly sales array as an argument. This method will search and
compare the values of the monthly sales array for the highest value.
The method will return the index(or location in the array) of the
month with the highest value.
computeLowestMonth(monthlySales): This method receives the
monthly sales array as an argument. This method will search and
compare the values of the monthly sales array for the lowest value.
The method will return the index (or location in the array) of the
month with the lowest value.
displaySaleInfo(totalSales, averageSales, highestMonth,
highestSales, lowestMonth, lowestSales): This method will receive
the total yearly sales, average monthly sale, the month with the
highest sales, as well as the sales for that month and the month with
the lowest sales. This method will display all of the data it received as
arguments.
All methods should be STATIC therefore no object will need to be
instantiated to call them. All methods must be called from the main
method. Sales amounts should be rounded to two decimal places. .
Your monthArray should have the following values.

monthArray
JANUARY
FEBRUARY
MARCH
…..
You should demonstrate the use of loop and decision structures also.
Use the lab forum to ask questions about this lab.
SalesTacking
Points
Standard header included
1
and Lab Report
Lab Report
9
Use of methods

24

Use of arrays
Subtotal

6
40

…..

D
M
na
La
Im
po
Im

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order