Create a sales tracking java program named salestracking

Assignment Help JAVA Programming
Reference no: EM131060280

iLab Overview

Scenario/Summary

In this iLab, you will learn how to write a console application in Java using the Eclipse IDE. The JDK Installation tutorial shows you how to download and install the JDK. The JDK is required for successful completion of this course.

Software Citation Requirements

This course uses open-source software, which must be cited when used for any student work. Citation requirements are on the Open Source Applicationspage.

Please review the installation instruction files to complete your assignment.

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.

How to submit your assignment:

1. The program must have the same name as the assignment title (SalesTracking.java).

2. The Java source file (*.java) must include a corresponding class file (*.class) program as evidence of success.

3. 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).

4. 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.

Lab Steps

STEP 1: SalesTracking.java

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

You should demonstrate the use of loop and decision structures also. Use the lab forum to ask questions about this lab.

Reference no: EM131060280

Questions Cloud

Write a paper about mobile security : Write a paper about mobile security. FIRST: Search using the library search or google scholar for a peer reviewed article using statistical analysis for a topic about mobile security that show some data and details.
What is the estimated standard deviation of the process : Suppose an s chart were to be substituted for the R chart. What would be the appropriate parameters of the s chart?
Usual backpackers accommodation : Jacqueline, exhausted from a long day of travelling around the South Island, decided to check into the Southern Alps Inn, Queenstown for the last three nights of her stay in New Zealand, instead of her usual backpackers accommodation.
How the economy as a whole works : Explain the following to help the committee members understand how markets work: How society manages its scarce resources and benefits from economic interdependence
Create a sales tracking java program named salestracking : 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.
Organizations for examples of mission-vision statements : Research online at least 3 existing health care organizations for examples of mission and vision statements. Use them as a reference point when creating your own strategic plan.
How antitrust may have played into the company decision : Write two paragraphs regarding your impression of the market model you feel the newly formed company fits into.(Black and Decker and Stanley Works completed their merger in 2010)...please detail and support your impression using Economic terminolo..
Change management assignment : "Restructuring as a theme for change can be considered a bit strange because it may not be meaningful as a key strategic objective". Comment on this statement.
Calculate the new maximum number permitted to be carried : calculate the probability that the mean passenger weight would exceed the maximum safe load as determined by the USCG. Two months after the accident, the USCG ordered the operator of the water taxi to reduce passenger load on all its craft by "abo..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Design a java class to represent a 3-d geomtetric shape

Design and implement a Java class to represent a 3-D geomtetric shape of your choice. The class should contain a constructor, appropriate data fields and methods to return the volume of the shape, and the surface area of the shape and any other me..

  Step and size of the screen

How to draw a square spiral with specified initial coordinates, step and size of the screen? Let the spiral start drawing from point with coordinates (startX, startY) in the row: to the right, up, left, down (size of the screen 800x600).

  Write a program that displays a frame window w pixels wide

Write a program that displays a frame window W pixels wide and H pixels high. Use the Scanner to enter the values for W and H. The title of the frame is also entered by the user.

  Following names with an associated phrase

Name game (8 points). Match the following names with an associated phrase. Use each letter once and only once. A. Steve Cook _______ Incompleteness B. Alan Turing _______ Reductions

  Java program to store temperatures in two-dimensional array

Write the Java program which uses two-dimensional array to store highest and lowest temperatures for each month of the year. Program must output average high,average low,

  What is the value of x after x = myary.length

Write a code to initialize myary1 beginning with myary1[0][0] = 1 and adding one for each subsequent array location.

  Creat a class that saves the grades

Creat a class that saves the grades of students in an array, and contains a few methods that do some statistics on these grades. Your task is to create this class, and create client testing class that does all the necessary tests of its methods.

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You can load this data structure with 10 messages of your choosing.

  Prepare executable program and a dictionary program

Prepare executable program and a dictionary Program.

  Write a method called add uneven arrays

Write a method called addUnevenArrays that takes two arrays, a and b, and returns a new array, c, with alength that is the maximum of the lengths of a and b. Each c[i] is the sum of the corresponding elementsof a and b if both elements exist.

  User-defined methods

You will create the ShoutBox class for your Virtual World. Your ShoutBox class will have a shoutOutCannedMessage() method that returns a String type.

  Java class that represents your favorite musical instrument

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 4 private data fields, getters and setters for each private data field, a toString() method

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd