Declare and create an ArrayList of Integers using generic syntax. Create a loop that repeatedly inputs strings until an empty string is input. Each string that is input should have any integers extracted via whitespace delimiting and saved into the ArrayList. Any non-integer input is disregarded. The strings should be processed the need for exception handling. without Once input is complete display (and label) the following information with generous whitespace for max readability. Use whitespace Your name (first and last) The number of integers that were input All of the values input, in ascending order, 10 on a line (severe penalty for using bubble sort, bogosort, or the like) as used in Assignment 4. Use a sort (insertion or selection) The lowest and highest values input The average of all values input (as a double to two decimal places) The mode of the data set and its frequency (generated without a nested loop or external data structure.)

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter14: Exception Handling
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

In Java without exception handling

Declare and
create an ArrayList of Integers using generic syntax.
Create a loop that repeatedly inputs strings until an empty string is input.
Each string that is input should have any integers extracted via whitespace
delimiting and saved into the ArrayList. Any non-integer input is disregarded.
The strings should be processed
the need for exception handling.
without
Once input is complete display (and
label) the following
information with generous whitespace for max readability. Use whitespace
Your name (first and last)
The number of integers that were input
All of the values input, in ascending order, 10 on a line (severe penalty for
using bubble sort, bogosort, or the like)
as used in Assignment 4. Use a sort (insertion or selection)
The lowest and highest values input
The average of all values input (as a double to two decimal places)
The mode of the data set and its frequency (generated without a nested
loop or external data structure.)
Transcribed Image Text:Declare and create an ArrayList of Integers using generic syntax. Create a loop that repeatedly inputs strings until an empty string is input. Each string that is input should have any integers extracted via whitespace delimiting and saved into the ArrayList. Any non-integer input is disregarded. The strings should be processed the need for exception handling. without Once input is complete display (and label) the following information with generous whitespace for max readability. Use whitespace Your name (first and last) The number of integers that were input All of the values input, in ascending order, 10 on a line (severe penalty for using bubble sort, bogosort, or the like) as used in Assignment 4. Use a sort (insertion or selection) The lowest and highest values input The average of all values input (as a double to two decimal places) The mode of the data set and its frequency (generated without a nested loop or external data structure.)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning