Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Design an Input dialog box window which accepts the last year from a drop down menu : Year 2017 2016 2015 For example, if

1. Design an Input dialog box window which accepts the last year from a drop down menu:

Year 2017 2016 2015

For example, if the last year selected is 2017, the SD will be calculated from 2008 to 2017.

MEDIUM. The output message will be Warning Sale Growth.

? If the SD is greater than or equal 58.90, this indicates that the growing of the market is FAST. The output message will be Healthy Sale Growth.

4. Give your answer formatted to two decimal ex: 99.99.

In this assignment you have to write a program in JAVA to create the Standard Deviation (SD) of the sales for the past 10 years. The standard deviation gives the sales manager a full idea of how the market changed in the past 10 years.

Your JAVA program will compute SD according to the formula below:

The standard deviation formula:

Where X is the sale in a specific year (must be a random value in the range 600 - 800). N is the number of years in this case N = 10. S: is the standard deviation that must be calculated, you may change the name to SD. Use a loop to read 10 random sales values for the 10 years.

Your JAVA program must check the calculated Standard deviation (SD) value according to the following criteria:

? If the SD less than or equal 50.90, this indicates that the growing of the market is SLOW. The output message will be Dangerous Sale Growth.

? If the SD is in the range 50.90 and 58.90 (exclusive), this indicates that the growing of the market is

1

5. The output must be in the form of a dialog box window as shown below. For example, if the SD less than or equal 50.90, the output should look like (all in one dialog box window):

Year is: 2017 The sale standard deviation is 50.73 The growing of the market is SLOW Dangerous Sale Growth

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

10:16 AM Sun Jan 29 Answered: 1 week ago

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago