Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer in java and can you make sure I can copy and paste it 10. Largest and Smallest Write a program with a loop

image text in transcribed

please answer in java and can you make sure I can copy and paste it

10. Largest and Smallest Write a program with a loop that lets the user enter a series of integers. The user should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered. The value -99 is not to be counted as part of the series. SAMPLE RUN #4: java LargestAndSmallest Interactive Session Hide Invisibles Enter an integer.(-99.to stop):1 Enter an integer. (-99.to stop):1- Enter an integer. (-99.to stop): 2- Enter an integer.(-99.to stop):3- -Enter an integer.(-99.to stop): 5- - Enter an integer. (-99.to stop): 8- Enter an integer. (-99.to stop):13- Enter an integer.(-99.to stop):21- - Enter an integer. (-99-to.stop): 34- Enter an integer. (-99.to stop):55- Enter.an integer:(-99.to stop):-99- The smallest number.was:1 The largest number.was: -552

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

=+What do they need to hear?

Answered: 1 week ago

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago