Question: 2. Create a Java program (Greatest) that will allow the user to enter series of positive integers until the user enters a value of

2. Create a Java program (Greatest) that will allow the user to

2. Create a Java program (Greatest) that will allow the user to enter series of positive integers until the user enters a value of -999. The program will then output an appropriate message stating the highest number entered. (25 marks) Output: Enter a number (-999 to exit): 23. Enter a number (-999 to exit): 346 Enter a number (-999 to exit): 2 Enter a number (-999 to exit): 99 Enter a number (-999 to exit): 527 Enter a number (-999 to exit): -999 The highest number entered was: 527

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner Import the Scanner class clas... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!