Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone please help me code this I was sick and did not come to class it should match the results that are posted in

can someone please help me code this I was sick and did not come to class
it should match the results that are posted in 2nd pic
image text in transcribed
image text in transcribed
.0000 Sprint 2:27 PM 34% Back Hw07B Useful Classes.pdf For this assignment, you will esercise several of the static and uyclasses discussed in the Useful Random is a typical object class, which requires creation of an object before its methods can be Moth is now a gatic class, and all its methods and comstants are called gatically using the name of the class instead of any objects Nothing tricky, just practice with some individual capablnies you'll need to be familiar with later on Java Objectives ) Extending the Java language thru the import of other classes [CSLO-3 2) Using the Scanner class for command line ingut ICSLO 4 3) Using the Random class for random number generation CSL0-4 4) Using methods and constants of the Math class [CSLO-4] 5) Using static classes and constants iCsLO 21 6) Using Java to solve some real world problems [CSLO 4 Prelminaries As always, begin by first reviewing ALL the available weekly lecture materials, videss, and esamples, which should answer many quesions (in particulat, Randomxamples java and MathExamples javal Same general guidelines as for all programs (observe all standard good coding conventions * Declare any needed variables and objects upfront in your program * Use good variable naming conventions camelCase for variables, ALL CAPS for constants Comment the sections of your code briefly as you write it, and clearly label al outputs For this assignment, you only need the one mainD0 method, no other methods are needed variables for EVERY calcuation If it's s not a result you preserve for a later step, you might be able to simply incorporate the resuilt into your printi tatement keep things simple if possible. Begin by creating the file to update the comment block accordingly Before proceeding with the following steps, set up one Scanner object for aa user ipts Use thi common Scanner object for all command line inputs. Use its next 0 methods as needed Use your template as a starting point. Don't forget 1. 4 Random numbers: a Using Scanner, prompt for 2 integer variables as min/max random number values. They should have a range of at least 100 or b. Create a new Random object with which to generate random numbers e. Use the Random obiect's nextintil method. and the random number ranee aleorithm. to 4 35 Courses To Do Notifications Messages Profile

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

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

WHAT is the quantity of data to be transmitted or received?

Answered: 1 week ago