Question: Description: Write a simple program to output the maximum integer out of a four integer sequence. Input can include any valid integer value and sequences

 Description: Write a simple program to output the maximum integer out

Description: Write a simple program to output the maximum integer out of a four integer sequence. Input can include any valid integer value and sequences of four may contain zero as a valid value, this does not mean the program should terminate. Input: Your program should not prompt with any text whatsoever, just simply begin by waiting for input and continue to accept input until it receives four consecutive zero values. After each fourth value is entered, the program should output the largest value in the sequence and then continue waiting for more data. Output: Largest integer value in each sequence of four values with a return carriage. Packaging: Fully qualified class names are listed below: (Note: the bold is the class itself) edu.ben.homeworks.homework5.Homework5 Submission: Submit your code, as always, to both SVN and WebCAT. Example Execution: (Note: Green text is user input) 1 2 3 4 4. 4 3 2 1 4 121 551 80 100 551 OOOO

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!