Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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