Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Java programming Language , without using Arrays can someone solve it right You need to write a program to create random values as input

using Java programming Language , without using Arrays
can someone solve it right image text in transcribed
You need to write a program to create random values as input for a different program that needs to be tested before it is implemented by your organization. Your boss asks you to have it create some statistics for you at the same time. You realize you are going to have to do some work with random numbers and the math class. You also know that you are going to be working with a system that sometimes has different inputs into the jobs it does...so that means you are going to have to read overloaded methods...and the best way to review something is to write a test program with it, so you decide to work it in. Create a program with the following requirements: 1. It must have 6 randomly generated numbers in main. (These numbers should have values in the range 1-20. 1.a. Make sure to print their values for the user. This is the way to test and see what they are. 2. You must write a custom method to find the average of all 6 random number (taking their variables as parameters) and prints this average for the user 3. Write an overloaded version of the same method (with the same name..it's an overloaded method) that takes only 3 numbers (taking their variables as parameters.) This second one should print a message that its only using the first three numbers and then print this average for the user 2.a Write test code to call each method from main. Test the first one with all six random numbers and report the results. Then test the second one passing the first three random numbers. -just to be clear, you are writing an overloaded method that takes 6 numbers as parameters. a same method that takes 3 numbers. If you do not have both of these methods and if they are not both the exact same name...here will be deductions on this program. [It's an exercise to get you to write an overloaded method. Not just to do the task.] ust to be clear, you are writing an overloaded method that takes 6 numbers as parameters...and a second version of the 3. Use techniques you know and the Math class functions to report the smiallest value of your six numbers. (You might want to write a separate method to do this. The min method can only check tvo of them at a time in this language. You will have to do a series of themin some way to find the minimum of all six and retum it.)

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

Students also viewed these Databases questions