Design a class called supermarkets that accepts

Assignment Help JAVA Programming
Reference no: EM131596659

Assignment

The management of a certain chain of supermarkets would like to know on a comparative basis the performance of its supermarkets in each city. The data in the following table shows the amount of profit for all of the supermarkets in each city.

City

Profit

Miami

$10,200,000.00

Sunrise

$14,600,000.00

Hollywood

$17,000,000.00

Tallahassee

$$6,000,000.00

Jacksonville

$21,600,000.00

Orlando

$9,100,000.00

Gainesville

$8,000,000.00

Pensacola

$12,500,000.00

Ocala

$2,000,000.00

Sebring

$4,500,000.00

The information required must be presented in the following order:
1. Display the original data set, as shown in the table.
2. The average profit for the supermarket chain.
3. The city with the highest profit.
4. A list of all the cities with profit at, or above the average.
5. The cities and their profit listed in descending order of the profits.

To carryout this exercise:
(a) Design a class called Supermarkets that accepts two arrays - one containing the names of the cities, and the other containing the profits. Write separate methods for each of the five (5) activities stated in the list of requirements.

(b) Design a test class called TestSupermarket that:

i. Reads the data using the class GetData
ii. Creates a Supermarket object using the arrays as arguments to its constructor.
iii. Call the respective methods to carry out the requirements.

NB: You may want to round these numbers to the nearest million.

Reference no: EM131596659

Questions Cloud

Write a phone number generator : Write a phone number generator that asks for the first four digits. The computer must generate a list of all possible phone numbers that meet the new security
Describe the software development methodologies : Explain how a business user could be involved in the core activities of building an information system.
Create a java gui application : Create a Java GUI application that allows the user to perform the tasks below on the books database. The user must be able to enter new data
Discuss the potential areas of vulnerability : McNick's fast food is a multinational organization that sells burgers and fries in nearly every country in the world. The corporation consists of a corporate.
Design a class called supermarkets that accepts : Design a class called Supermarkets that accepts two arrays - one containing the names of the cities, and the other containing the profits.
Write a summary of each of the articles : Write one research summary that uses a quantitative research design.Write a summary of each of the articles.
Achievement of learning outcomes for assignment : Organization: Subheadings should be used to organize your paper according to the questions. The following items will be assessed in particular:
Journalize the transactions for goal services : Sebastian Giavinco is the owner of Goal Services. Required - Journalize the transactions for Goal Services. Only simple explanations are required
What is the purpose of describing the demographic data : : Demographic data are collected for every study. What is the purpose of describing the demographic data?

Reviews

Write a Review

JAVA Programming Questions & Answers

  What situation or problem is that you intend to improve

what you plan to accomplish and why, include an overview of situation or organization and what situation/problem is that you intend to improve - usually 1-2 pages) Cite and support all content appropriately.

  Product ordering system and design

Product Ordering System and Design Document:Select a company and one of its products for which you will be creating an online ordering system. Get your instructor's approval for your selections

  Write a servlet that computes the total cost of the bulbs

Write a servlet that computes the total cost of the ordered light bulbs from above problem after adding 6.2 percent sales tax. The servlet must inform the buyer of exactly what was ordered in a table

  Cascading style sheet to a website

Compare and contrast the process of adding JavaScript and a Cascading Style Sheet to a Website. Determine if they can be used simultaneously in a page.

  Consider an algorithm for computing cubes using addition

You have a computer where multiplication is an enormously expensive operation compared to addition. Consider an algorithm for computing cubes using only addition (FYI: the first 5 cubes are 13 = 1, 23 = 8, 33 = 27, 43 = 64 and 53 = 125). This comp..

  1 give the big o for the followinga n2 6n 32b n 6c

1 give the big o for the followinga. n2 6n 32b. n 6c. analyze the code below for integer n

  Important components of a script

Bash scripting can be a very useful tool to manage Linux servers and workstations. The important components of a script include variables, keyboard input, terminal output, decision making, and loops. Give some simple examples of bash script that i..

  Design and construct a computer program

Design and construct a computer program in one of the approved languages (C, C++, Java, Pascal, etc.) that will illustrate the use of a third-order explicit Runge-Kutta method of your own design.

  Perform an internet search

Perform an Internet search for Java® applets. Explore various websites that feature free Java® applets. Write a 400- to 500-word paper, addressing the following:

  Application that converts u.s. dollar values to euro values

Help with writing an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversio ...there is moreshow problemI need help with this:

  What will the code fragment do

What will the following code fragment do

  Which is not a component of a try block

Which of the following is NOT a component of a try block? In the case where a method might throw more than one exception type, you specify a list of potential exceptions in the method header by separating them with ______.

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