Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me code the following in JAVA! Full points will be rewarded, thanks in advance! b. Write a program in main that asks the

Please help me code the following in JAVA!

Full points will be rewarded, thanks in advance!

image text in transcribed

b. Write a program in main that asks the user of your program to first enter his or her name followed by 3 real numbers (that is, any number from-oo to Your program should sort the three numbers in descending order, then print to the screen a greeting to the person and the sorted numbers. For example (your input in blue), Please enter you name followed by three numbers (space separated) Leonardo-22.3 12.2 2.3 Hi there, Leonardo! Here are the numbers you entered in descending rder: 12.2 2.3 and-22.3 hank you for using the ehree-number-sorting ayetem! Good-bye. Note: You must use the Math.max and Math.min methods introduced above. The class has not covered conditionals, so please avoid using conditionals! Make sure to run your program several times and test it with several inputs of different orderings

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

More Books

Students also viewed these Databases questions

Question

How to find if any no. is divisble by 4 or not ?

Answered: 1 week ago

Question

Explain the Pascals Law ?

Answered: 1 week ago

Question

What are the objectives of performance appraisal ?

Answered: 1 week ago

Question

Perform an Internet search. Discuss a company that uses EPLI.

Answered: 1 week ago

Question

How do you feel about employment-at-will policies? Are they fair?

Answered: 1 week ago