Question: Create a new program called MaxSentinel. Use a sentinel while loop that repeatedly prompts the user to enter a number, once - 1 is entered,
Create a new program called MaxSentinel.
Use a sentinel while loop that repeatedly prompts the user to enter a number, once is entered, stop prompting for numbers and display the largest number entered by the user. Note: Consider using one of the Math class methods or use if statements.
Submit java code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
