Answered step by step
Verified Expert Solution
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!
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started