Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java program using this information anf make sure to use methods Using methods, you will generate the report below. table [ [

Write a java program using this information anf make sure to use methods
Using methods, you will generate the report below.
\table[[,Lowes,Amazon,Walmart,Target,Average],[JAN,999.99,999.99,999.99,999.99,999.99],[FEB,999.99,999.99,999.99,999.99,999.99],[MAR,999.99,999.99,999.99,999.99,999.99],[APR,999.99,999.99,999.99,999.99,999.99],[MAY,999.99,999.99,999.99,999.99,999.99],[JUN,999.99,999.99,999.99,999.99,999.99],[JUL,999.99,999.99,999.99,999.99,999.99],[AUG,999.99,999.99,999.99,999.99,999.99],[SEP,999.99,999.99,999.99,999.99,999.99],[OCT,999.99,999.99,999.99,999.99,999.99],[NOV,999.99,999.99,999.99,999.99,999.99],[DEC,999.99,999.99,999.99,999.99,999.99],[,,,,,],[AVG,999.99,999.99,999.99,999.99,]]
Use a random number generator to fill in the price of the stocks as follows. If you have issue using the generating the prices, then simply assign a value to each price.
\table[[Lowes,Price between 101.00 and 114.00],[Amazon,Price between 62.00 and 75.00],[Walmart,Price between 235.00 and 244.00],[Target,Price between 89.00 and 97.00]]
I expect to see a method to generate the prices, the Averages, the header, the detail lines.
To make this program work you will need to keep accumulators for each month as well as each company.
image text in transcribed

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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions