Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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.

Java, Programming

  • Category:- Java
  • Reference No.:- M91784673
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Java

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

In ruby the hash class inherits from enumerable suggesting

In Ruby, the Hash class inherits from Enumerable, suggesting to a programmer that Hashes are collections. In Java, however, the Map classes are not part of the JCF (Java Collections Framework). For each language, provide ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Answer the following question whats the difference public

Answer the following Question : What's the difference public inheritance and private inheritance? What can derived classes inherit from base classes? What cannot be inherited from base classes?

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As